Skip to content

pm stack → Supabase phase 1 (#3142): orchestration state into Supabase tables, orchestration.json becomes a generated export #5005

Open

Description

@dezren39

Phase 1 of epic #3142: orchestration state into Supabase

Part of epic #3142 (Long-term: migrate the pm stack into Supabase). This is the implementation issue for phase 1; phases 3, 4 and 5 are filed separately, and phase 2 already has implementation issues (#1744, with #941 in its area).

Scope

  • Move orchestrator tier/classification state and the run log from the local files (orchestration.json / orchestrator-state.json / orchestrator-log.md in the goal workspace) into Supabase tables (automation schema or a dedicated pm schema, per the migration plan).
  • orchestration.json becomes a generated export for the dashboard contract — the impl(aggregator): slice 2 — mobile, needs-Drew/needs-orchestrator tiers, time-granular roadmap, session clarity #898 orchestration shape is preserved; only the backing store changes.
  • Keep the current file-based path working until the DB path is verified, then flip (no big-bang).

Evidence at filing

  • Phase 1 is still file-based at current main: nixos/services/pm-stack/default.nix:238 (ORCHESTRATION_PATH) and pm-stack/aggregator/src/server.ts:1563 (verified by triage task 8194 at origin/main 8912c83).

Dependencies / blocked-by

Done check

Acceptance criteria

  • The phase's "Done check" in the body above is met and demonstrated against live state (not just code-merged): the before/after behavior is shown on the running pm stack.
  • The migration plan preconditions the body names (P0 — pmp_links backup legs in place; P1 — target schema vetted against pm-stack/SHARED-SCHEMA-MAP.md) are verified in place before the flip, and the verification is recorded on this issue.
  • The file-based path keeps working until the DB path is verified; the flip is reversible and no big-bang cutover is required.

Activity

  1. added
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 3, 2026
  2. added
    queue/queuedHas a queued task in the Supabase agent queue
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  3. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    agent-note:v1
    state: reviewed (coverage loop-back)
    Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 8575 (triage, queued, priority 40) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
    Found via: coverage loop-back 2026-11-03

  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    Intake review

    Fleet monitor intake (Duty 2), 2026-11-03. (Posted on a delayed retry: the original comment attempts were rejected by a GitHub secondary rate limit; the label/body enrichment itself landed during the run.)

  5. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 3, 2026
  6. 7 remaining items

  7. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: task 8575 · repo-fleet-monitor run 2026-11-03 20:12 CST
    • Found via: monitor reconciliation
    • Task: Claim evaporated — task 8575 returned to queued and unclaimed in repo-health-code-pilot after the holding run ended without a terminal verb (checkpoint stage: handed_off). Labels reset to the truth: queue/queued + status/needs-triage. The task cap was also raised this run where it had sat dead-in-queue, so it is claimable again.
    • Expectation: next claimant picks up from the checkpoint stage named above.
  8. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued task in the Supabase agent queue
    on Nov 4, 2026
  9. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  10. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1

  11. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: picked_up
    task: 8575 (triage, repo-health-code-pilot; repo-worker-code; OpenChamber scheduled lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
    session: ses_e5e5b125581ffe5FYJfppHLLtG
    state: Claimed for fresh triage. Issue #5005 is OPEN with a complete phase-1 specification, no linked PR, and no hard-stop labels. Parent epic #3142 is OPEN; shared-schema migration plan PR #4881 and schema map PR #4692 are merged. Next: verify P0/P1 migration preconditions, phase-2 conventions/order, and current-main implementation overlap before recording a disposition.

  12. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: triaged
    task: 8575 (triage, repo-health-code-pilot; repo-worker-code; OpenChamber scheduled lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
    session: ses_e5e5b125581ffe5FYJfppHLLtG
    verdict: CONFIRMED live and correctly scoped; no implementation found and no linked PR on #5005.
    evidence: Fresh GitHub main is ac14972 (2026-11-04T05:01:15Z). nixos/services/pm-stack/default.nix:259 still sets ORCHESTRATION_PATH to the goal workspace's hidden_files/orchestration.json; pm-stack/aggregator/src/server.ts:1731-1744 still serves /api/orchestration.json via source.orchestration(). Code search for orchestrator-state.json returned no hits. Thus the phase-1 file-backed orchestration state is not migrated at current main. #5005 remains OPEN, with no linked PR. Scope is distinct from siblings #5006 (fleet-feed), #5007 (backlog), and #5008 (management surface), all still OPEN.
    blockers/order: #3142 and phase-2 issue #1744 remain OPEN/in-progress; coordinate table naming/ownership with #1744 before creating tables. Migration-plan PR #4881 and schema-map PR #4692 are MERGED, but current pm-stack/SHARED-SCHEMA-MIGRATION-PLAN.md still names P1 target-schema vetting/creation (muse-dev2 table groups and column contracts) as a precondition before flip; no repository evidence verifies those tables/contracts are live, so record that verification on #5005 before cutover. The map and plan still say the pmp_links archive manifest has no backup leg; complete and verify all three backup legs before any migration that touches pmp_links (P0 is registry-specific; this phase is orchestration state). Keep the file-backed path working until DB behavior is demonstrated live, then flip reversibly and retain orchestration.json as generated export.
    next: Implementation can proceed as the separately scoped phase-1 slice only after shared-table conventions and target schema are resolved; do not perform the production flip until the issue's P1/live verification is recorded. No code, branch, or worktree changed.

  13. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: done (triaged)
    task: 8575 (triage, repo-health-code-pilot; repo-worker-code; OpenChamber scheduled lane aea12c82-c5af-4e5a-9b66-f8e360f87177)
    session: ses_e5e5b125581ffe5FYJfppHLLtG
    state: Completed triage as CONFIRMED/live and correctly scoped. Current-main evidence and blockers/order are recorded in the triage comment above. No code, branch, or worktree changed.
    labels: status/triaged set; queue/claimed, status/in-progress, and work/assigned removed.
    resume: Implementation may proceed as the separate phase-1 slice after shared-table conventions/target schema are resolved; record live P1 verification before cutover, and land/verify the P0 pmp_links backup before any link-registry migration.

  14. added
    status/triagedTriaged and routed (see agent note)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/lLarge: multi-day or open-ended; expect staged check-inskind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions