Repository navigation
Leave out campaigns that can't be paused or resumed before the confirm - #30
amitl-levi wants to merge 5 commits into
Conversation
Realize refuses to pause or resume a campaign whose own status is Rejected or Terminated, and the MCP's is_active description says so. manage-campaigns now checks status before previewing a pause or resume, names the campaigns it leaves out, and defers to the MCP description for the status list. A pause that still fails this way is not retried, and the post-write check reads is_active instead of status. Adds write scenario W16 and bumps the version to 0.5.6. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6b0c9e2 to
cdda73d
Compare
…campaigns # Conflicts: # .claude-plugin/plugin.json # .codex-plugin/plugin.json # skills/manage-campaigns/SKILL.md # tests/test-scenarios-write.md
Review confirmed the approach: the MCP does not block a pause itself, it passes the backend's error through, so checking before the user confirms is the only way to catch it early. Verifying the write on is_active rather than status is right for the same reason. Two corrections came out of checking the platform source. The refusal is on the campaign's own internal state, not on the status the read returns. Those are different things: status is resolved in a fixed order in which the account and the group outrank the campaign, so a campaign that genuinely cannot be paused can report something else entirely, and a campaign reporting its group's termination may still be pausable. The skill now treats status as a filter rather than a verdict, catching the clear cases and leaving the write as the backstop for the rest. Deleting a campaign group terminates the campaigns in it. So a campaign reported under a terminated group has often been terminated in its own right, and the pause will be refused. It is still not skipped, because the reported status cannot tell the two apart, but the preview now names the group as terminated and says the pause may come back refused. Dropping it and previewing it as routine are both wrong. Merged main: resolved the version and Codex plugin name, folded the pause/resume step into "Scalars only" alongside the campaign-group steps that landed in the meantime, and renumbered the new scenario to W22. Version 0.5.7, after 0.5.6. Checked against the Realize platform and MCP sources at their default branches on 2026-11-07. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Pushed, and merged Thanks for the three points — all confirmed, and checking the platform source behind them turned up two corrections. The refusal is on the campaign's own internal state, not on the Deleting a campaign group terminates the campaigns in it. So a campaign reported under a terminated group has often been terminated in its own right and the pause will be refused. It is still not skipped — the reported status cannot tell the two cases apart — but the preview now names the group as terminated and says the pause may come back refused. Dropping it and previewing it as routine are both wrong, and the first draft did the second. W22 now fails a preview that leaves the warning out. Your other two points needed no change: post-write verification already reads Version 0.5.7. It sits behind #32 at 0.5.6, so that one needs to merge first. #34 follows at 0.5.8. Two review rounds plus a source-verification pass against the platform and MCP sources at their default branches, 2026-11-07. |
The version stays 0.5.5 until the directory review closes, so this entry folds under the existing 0.5.5 heading instead of opening a new one, and all four version files go back to 0.5.5. Also corrects a stale line: a campaign reporting its group's termination "may still be pausable", matching the skill's own wording. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…campaigns # Conflicts: # CHANGELOG.md
What
Before previewing a campaign pause or resume,
manage-campaignschecks the campaign's status. A campaign that can't be paused or resumed is left out and named, so the user never confirms a change that is going to fail.Why
Realize refuses to pause or resume a campaign whose own status is Rejected or Terminated. The MCP already says so on
update_campaign'sis_activefield, and its error says not to retry. But the plugin's preview-then-confirm step runs before the MCP is called, so those campaigns still appeared in the preview and the user confirmed a change that then failed.How
is_activedescription, so the MCP stays the one source of truth.is_active, notstatus: a campaign in a terminated group keeps the group's status after a successful pause.Also
tests/test-scenarios-write.md.## [0.5.5]heading rather than opening a new one.manage-campaigns; there the MCP's own field description and error are the guard.🤖 Generated with Claude Code