GeezerVison is showing github.com — pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only · Issue #10504 · developing-today/code
pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504Description
Implementation follow-on filed by task 14838 (lane any-b) on completion of the #5005 writer cutover.
Sequenced behind: task 14838 (writer cutover for #5005, phase 1 of #3142), whose packet explicitly excluded the reader flip and directed this successor to be enqueued on its completion.
Verified state at filing (2026-11-15, direct read-only checks on Supabase muse-dev2 via the Management API SQL route):
- Migration applied: public.orch_runs + public.orch_items live, RLS enabled on both, grants match the pm-stack/shared-schema/ORCHESTRATION.md contract exactly (orch_runs: service_role {SELECT, INSERT}; orch_items: service_role {SELECT, INSERT, UPDATE, DELETE}; anon/authenticated: none).
- The hourly orchestration pass writes each pass in one transaction (job step 2c, orchestration_writer.py, PR feat(pm-stack): orchestration-state writer for the #5005 cutover #10381 merged 2026-11-14T21:16:04Z; schema contract PR pm-stack: orchestration state schema contract (#5005 phase 1, P1 vetting slice) #8458 merged 2026-11-14T20:54:38Z).
- Dual cycle verified: orch_runs holds the inaugural row plus every scheduled pass since step 2c went live (orch-2026-11-15T021320Z through orch-2026-11-15T111533Z); orch_items parity holds (42 total, all 42 last_seen on the newest run); the newest stored document equals the published orchestration.json exactly.
This issue (the reader flip):
- Point the aggregator/dashboard orchestration read at the latest public.orch_runs.document; orchestration.json stays generated every pass as the export only.
- Verify the dashboard (impl(aggregator): slice 2 — mobile, needs-Drew/needs-orchestrator tiers, time-granular roadmap, session clarity #898 shape) serves unchanged against DB-read state for one full scheduled cycle.
- Fallback: on DB read failure, serve the last good document and surface the failure — never a partial document.
- Rollback rehearsal: pointing the reader back at the file loses nothing (the file is never behind).
Activitydeveloping-today commented on Nov 15, 2026 dezren39 commented on Nov 15, 2026 Pickup — task 17362 (lane code-j)
Reader-flip task picked up from the repo-health-code-pilot queue by the OpenChamber scheduled lane (worker repo-worker-code, lane code-j). Sequenced behind task 14838 (writer cutover, lane any-b, verified live 2026-11-15).
Next: revalidate against fresh GitHub state, then map the aggregator/dashboard orchestration read surface and point it at the latest public.orch_runs.document. dezren39 commented on Nov 15, 2026 🤖 Agent note · picked up
- Agent: repo queue worker, lane code-d (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-code-d run 2026-11-15; task 17362
- Found via: queue claim · task 17362
- Task: task 17362 for issue pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504 (small_fix) — claimed direct. Fresh revalidation: issue pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504 OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit absent), no status/needs-triage. Writer cutover state per the issue's verified filing (task 14838): orch_runs/orch_items live on Supabase muse-dev2, dual cycle verified through orch-2026-11-15T111533Z, newest stored document equals orchestration.json.
- Next: locate the aggregator/dashboard orchestration read, flip it to the latest orch_runs.document with last-good fallback, verify the dashboard shape serves unchanged.
- Links: task 17362 · issue pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504 · issue Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142
dezren39 commented on Nov 15, 2026 🤖 Agent note · done — fixed and merged
- Agent: repo queue worker, lane code-d (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-code-d run 2026-11-15; task 17362
- Outcome: issue pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504 implemented and merged in PR aggregator: reader flip — orchestration section from orch_runs.document (#10504) #10509 (merge commit 1b1022c); issue auto-closed by the PR.
- What landed: the fleet-feed collector's orchestration section now resolves through
src/orchestration-db.ts: latest orch_runs.document first (Management API SQL route, shared structural gate), any DB failure falls back to the orchestration.json export with the failure surfaced via the section's error status, and ORCHESTRATION_SOURCE=file is the no-loss rollback. ORCHESTRATION.md records the flip beside the writer contract.
- Verification: orchestration-db tests 10/10; related suites clean apart from 3 registry failures reproducing identically on pristine main; tsc clean; live
orch_runs latest document byte-identical to the file (run orch-2026-11-15T111533Z); A/B collector runs (main vs flip) identical on the live document; sandbox probe read the DB row through the collector's exact bws + Management API route and the resolver fell back with the failure surfaced, per contract.
- Filed separately: issue aggregator: orchestration section omitted — publisher emits dependency status 'blocked', validator rejects it #10508 — the current published document (both copies) fails the shared structural check because the publisher emits dependency status "blocked", which the validator's DEPENDENCY_STATUSES omits; the section is omitted under both readers until that lands, after which the next collector cycle serves it from the DB with no further change.
- Links: task 17362 · issue pm stack → Supabase phase 1 (#3142): reader flip — aggregator/dashboard reads latest orch_runs.document, orchestration.json becomes export-only #10504 · PR aggregator: reader flip — orchestration section from orch_runs.document (#10504) #10509 · issue aggregator: orchestration section omitted — publisher emits dependency status 'blocked', validator rejects it #10508 · issue Long-term: migrate the pm stack into Supabase — refactor component state into schemas for central management #3142
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|