Repository navigation
Closed
Labels
effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitiveImportant and time-sensitivesource/humanFiled directly by a humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Description
Problem
project-reconcile.sh (org Project #4 "Developing Today" sync, orchestrator is single writer per #910 Stage 4) computes ALL proposals over the full ~200-item Project before writing anything. The proposal computation does not finish inside the run's time budget, so passes die with 0 Project writes:
- 2026-10-27 07:41Z pass — ended incomplete at 540s timeout mid-list; which MOVE writes completed is unverified.
- 2026-10-27 08:12Z pass — exit 124 at 240s, 0 writes (report:
reconcile-2026-10-27-0812.txt, header + KEEP lines only). - 2026-10-27 08:43Z pass — interrupted during proposal computation, 0 writes (
reconcile-2026-10-27-0843.txt, header only). - 2026-10-27 11:14Z pass — dry-run timed out at 240s after proposing on only ~20 of 200 items;
--applynot attempted because it would time out identically.
Four consecutive incomplete passes. The Project board drifts behind actual issue/PR states until this lands.
What works today
The bounded inline pass (2026-10-27 06:23Z) applied 14 updates successfully by working a bounded slice instead of the whole list. The very first Stage 4 pass (2026-10-26) also completed when the Project had 27 items — the approach does not scale to 200.
Fix
Make the bounded pass the standard path in project-reconcile.sh:
- Process items in bounded batches (e.g. oldest / most-blocked first, within the existing ~25-update cap), writing each batch before computing the next.
- A pass that hits its time budget must leave the writes it completed applied and reported — never all-or-nothing.
- The run report must state exactly which writes completed, so the next pass can resume instead of re-deriving state.
- Keep the existing rules unchanged: label-gated auto-add (now/next/epic), status sync signals, single-writer discipline, no new Project fields.
Acceptance
- A full pass over the ~200-item Project completes within the orchestration run's budget, or completes a bounded batch with applied writes and a precise resume point.
- Two consecutive orchestration passes run with no incomplete-reconcile flag in the run log.
Metadata
Metadata
Assignees
Labels
effort/mMedium: expected under 1 day of workMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitiveImportant and time-sensitivesource/humanFiled directly by a humanFiled directly by a humanstatus:donetask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Activity
developing-today commentedon Oct 27, 2026
CODE-499
dezren39 commentedon Oct 27, 2026
Intake review
🤖 Agent note · filed
## AcceptanceRelated: Related: filed from the orchestrator's own run logs after four consecutive incomplete passes (2026-10-27 07:41Z–11:14Z); the orchestrator/single-writer context is #910 Stage 4. The body already carries an
## Acceptancesection, so no criteria were appended — this pass is labels + this note only.Risks / notes: The bounded inline pass at 06:23Z (14 updates applied) is the existence proof. Risk: batching must preserve the single-writer discipline and the ~25-update cap; a pass that reports writes it did not actually apply would be worse than today's honest zero — the report's write list should be verified against the Project after the first landed run.
Suggested approach: Implement the bounded batch loop inside
project-reconcile.shitself (write each batch before computing the next), then watch two consecutive orchestration passes for the incomplete flag.Liveness: searched merged PRs and recent fleet records this run — no merged PR explicitly resolves this issue, so it stays open. Marked
meta/enriched.dezren39 commentedon Oct 28, 2026
Reconcile timeout fixes implemented (all three approved by Drew 2026-10-28 ~06:05 CDT). The hourly orchestration pass remains the single writer — no
--applywas run outside it; the pass picks the new script up on its next reconcile step, and the incremental state file is already primed.1. Incremental proposals —
project-reconcile.shnow persistsproject-reconcile-state.jsonbeside itself: per item, the last proposal plus the signal snapshot it came from (issue state +updatedAt, and a hash of the repo's open-PR/branch signals). An item whose snapshot is unchanged reuses its stored proposal and skips the timeline fetch entirely. Cross-reference events bump the issue'supdatedAt, and any open-PR or branch change flips the repo signal hash, so a stale reuse cannot survive a signal change. Missing/corrupt state, or a new--fullflag, forces a full recompute.2. Batched signal reads — issue state/
updatedAtand timeline cross-references for all ~200 items are now fetched with a few GraphQL queries per repo (aliased issue fields: one light query per repo for every item, one heavy timeline query covering only new/changed items). The per-repo open-PR and branch reads were already batched. If a repo's batched query fails, that repo falls back to the legacy per-item REST path — a GraphQL outage degrades to slow, not wrong. Proposal semantics are unchanged: same signal→status mapping, same ~25-write cap, same Done → In Review → In Progress → Todo apply order. The PR/branch matching logic was lifted verbatim into a shared function used by both paths.3. Step timeout 600s → 1500s — the 600s was not stored anywhere: not in the script, and not in the orchestration-pass job definition (job timeout is 1800s requested / 3600s effective). The pass worker was applying it ad hoc per run (240s in one early run, 600s later). It is now pinned durably in the job body's step-3 HOW line: run the script under
timeout 1500. Verified by diffing the saved job definition before/after — that line is the only body change.Measured (dry-run, same 200 items)
dezren39 commentedon Nov 2, 2026
🤖 Agent note · picked up
17 remaining items
dezren39 commentedon Nov 4, 2026
agent-note:v1
event: done
outcome: already_done; task 7242 was a duplicate coverage-loop triage of work already completed by task 2579 (#6590720979).
verified: fetched origin/main SHA a51be0e contains neither a project-reconcile script path nor any tracked project-reconcile reference (git ls-tree + git grep). #1408 remains OPEN; no open PR references it. The prior triage records the out-of-repository scope and the remaining external check: two orchestration passes with no incomplete-reconcile flag.
disposition: no code fix task can be routed in developing-today/code; do not close #1408 without the two-pass evidence. Claim labels cleared; no files changed.
dezren39 commentedon Nov 6, 2026
Orchestration pass orch-2026-11-06T16:17:44Z — fresh data point on the reconcile timeout: project-reconcile.sh --apply was killed by the 1500s wrapper (exit 124) during the scan/proposal phase, before any writes (0 APPLIED lines in reconcile-1617-apply2.log; log ends mid-scan at item #6298 of 523 items). A first --apply attempt the same run was SIGTERM'd mid-scan by a service restart. The same day's dry-run completed in ~6 min (16:23:38Z→16:29:50Z, pending=262), so apply-mode scanning is now far slower than dry-run scanning and cannot finish inside the cap — the Project backlog (262 pending proposals) is not draining. Full detail in the orchestrator run log (orch-2026-11-06T16:17:44Z, corrections 2-3).
developing-today commentedon Nov 8, 2026
🤖 Agent note · done (triaged)
project-reconcile.sh --applywas killed by the 1500s wrapper (exit 124) during the scan/proposal phase with 0 writes, mid-scan at item id(phase-14): More shells (mobile, native, hardware) — v3 — outline: hardware shell #6298 of 523 items; the same day's dry-run completed in ~6 min with 262 pending proposals — the Project backlog is not draining in apply mode.git ls-tree -r origin/main+ grep find no project-reconcile script or reference in developing-today/code (task 7242 verified the same at a51be0e). The script is the orchestrator's own tooling. (Verification note: two tool outputs this shift named candidate script paths that direct checks refuted; no script home is asserted here because none could be verified — the negative claim, absence from this repo, is the one verified twice independently.)dezren39 commentedon Nov 8, 2026
FIXED 2026-11-08 — reconcile writes again (Drew: "fix it don't just notice it's broken")
A dedicated fixing pass (not the hourly orchestrator) root-caused each failure mode, patched
project-reconcile.shin place, and ran one full real reconcile. Evidence below; the pre-fix script is preserved in the run's backup.Root causes (one per failure mode)
--dry-run, and the hourly orchestration pass invokes the script with no mode flag (its body says only "run it"). Every logged run in history — all of Nov 7 and Nov 8 — wasmode=dry-run. Each pass computed ~262–289 proposals and wrote nothing; the same proposals recurred forever (e.g. code#1063 In Review -> Todo proposed at 09:56Z and again at 16:32Z). The board drifted: 209 of 524 items sat with Status UNSET, 289 changes pending at fix time.fleet secrets get github.project-token). The error handler then discarded gh's real stderr and printed the "(token scopes?)" guess — the same guess that sent earlier passes down the wrong trail.dezren39user token), the bucket the whole fleet shares. When that bucket is exhausted, the batched signal queries fail (thejq: Cannot iterate over nulllines in the logs).project-reconcile-state.jsonstale, because state is only persisted after the proposal phase completes.The fix (all in
project-reconcile.sh)--apply. A bare invocation (what the pass runs) writes;--dry-runremains an explicit opt-in. The 25-writes-per-pass cap, apply ordering (Done first), and label-gated auto-add rules are unchanged.fleet secrets get github.project-token(broker route, per the pass body) instead of the raw Bitwarden CLI lookup; field-list/item-list failures now log gh's real stderr (first 300 chars) instead of the "(token scopes?)" guess.Proof run (2026-11-08, manual, this fix lane as the cycle's single writer)
timeout 1500 ./project-reconcile.sh(no args — the same invocation shape the pass uses, now defaulting to apply)gh project item-listbefore vs after, same token): Done 116 -> 141, UNSET 209 -> 188, Todo 175 -> 171; the item-level diff is exactly the 25 applied writes and nothing else — code#1118, Queue workers: give the non-code queues lane-style long-budget shifts (claim evaporation is a run-budget problem) #1130, Fleet observability: certify shift completion from queue state, not run self-report (uncertified runs) #1131, feat(quota-plane): OpenCode pools consume quota-current — measured placement, rotation, demotion #1157 Todo -> Done, and code#1134–fix(aggregator): quota pools carry no visible per-pool read age - stale manual reads look live #1170 (21 items) UNSET -> Done, all closed issues whose Status had never been set.What remains
mode=apply, applied>0, this issue can close.dezren39 commentedon Nov 12, 2026
2026-11-12 partial failure (milestone writes: "Resource not accessible by personal access token"; 6 applied, 49 pending) — Drew's ruling: board sync should not run on the single Projects-only PAT. Fix direction filed as #8887: a
fleet ghpassthrough that rotates the personal token + the 3 App installation tokens, with project-reconcile.sh rewired onto it.developing-today-fleet commentedon Nov 12, 2026
Both failure modes tracked here are fixed and verified 2026-11-12:
fleet gh(code#8887; PRs fleet gh: passthrough with personal + App token rotation (#8887) #9014 + fleet gh: rotate all three fleet Apps, add tiers probe, platform-verifier TLS roots (#8887) #9054) rotates the personal token and all three fleet Apps' installation tokens; project-reconcile.sh and project-sync-apply.sh now run through it. Verified: the code#8582 milestone write lands both directions; a full pass completed with zero "Resource not accessible" failures; 11 rate-limit-queued writes drained and readback-verified on the board.Also fixed en route: the App leg's HTTPS used webpki-roots and failed with UnknownIssuer behind the sandbox's TLS-intercepting egress proxy; it now validates against the platform root store (PR #9054).
Closing as completed — per-pass verification continues in orchestrator-log.md; any recurrence gets a fresh issue per the file-the-issue rule.