fix(plugin-missions): address review follow-ups

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-22 12:33:41 -05:00
1 parent 786d0e8790
commit 42652bf0a7
3 files changed
+15 -1

No files matched your search

@@ -25,6 +25,14 @@ This package now carries the installable mission workflow surface:
- issue `toolbarButton`
- plugin `settingsPage`
## Alpha Workflow Notes
The mission detail UI exposes command metadata for initialize, decompose,
advance, and waive actions. Initialization is available from the UI in this
package. Decompose, advance, and waive remain intentionally disabled in the UI
until the follow-on workflow tickets land; the worker API routes are present so
agents and integration tests can exercise those flows directly during the alpha.
## Verify
From the repo root:
@@ -10,6 +10,9 @@ CREATE TABLE plugin_missions_8c47c0d099.missions (
updated_at timestamptz NOT NULL DEFAULT now()
);
CREATE INDEX plugin_missions_missions_company_id_idx
ON plugin_missions_8c47c0d099.missions (company_id);
CREATE TABLE plugin_missions_8c47c0d099.mission_findings (
mission_issue_id uuid NOT NULL REFERENCES plugin_missions_8c47c0d099.missions(mission_issue_id) ON DELETE CASCADE,
finding_key text NOT NULL,
@@ -34,3 +37,6 @@ CREATE TABLE plugin_missions_8c47c0d099.mission_events (
updated_at timestamptz NOT NULL DEFAULT now(),
PRIMARY KEY (mission_issue_id, event_key)
);
CREATE INDEX plugin_missions_mission_events_company_id_idx
ON plugin_missions_8c47c0d099.mission_events (company_id);
@@ -113,7 +113,7 @@ export interface MissionWaiveFindingResult {
type PluginIssueOriginKindLike = `plugin:${string}`;
const DEFAULT_MAX_VALIDATION_ROUNDS = 3;
const DEFAULT_MAX_VALIDATION_ROUNDS = 2;
const ACTIVE_AGENT_STATUSES = new Set(["active", "idle", "running"]);
const PAUSED_AGENT_STATUSES = new Set(["paused", "pending_approval", "terminated", "error"]);