GeezerVison is showing github.com — fleet gh step 2: higher-level sync tools on the token rotation · Issue #9016 · developing-today/code
fleet gh step 2: higher-level sync tools on the token rotation #9016DescriptionFollow-on to #8887 (step 2, filed when step 1 landed — PR #9014)
Step 1 gave every fleet gh call one rotation point (fleet gh: personal token, then the developing.today fleet App's installation tokens, failover on rate-limit/permission refusals). Step 2 is Drew's second half of the 2026-11-12 directive: dedicated higher-level tools built on top of the same rotation, so callers stop shelling out to raw gh at all.
Scope candidates (triage to size and sequence):
- Project sync tool — the writes project-reconcile.sh computes (status sets, item adds) as a fleet verb over the rotation, replacing the shell script's per-call
gh project invocations and its outbox file shapes with typed ops.
- Queue/GitHub sync tools — the recurring scripted flows that today compose raw
gh issue/gh pr calls in job bodies (program tending, stewardship verdict posting, pool reviews) moved onto shared verbs with the rotation, the retry-safety rule, and value-free errors inherited.
- A small library surface in the fleet workspace (the gh domain's provider/rotation as a crate other fleet domains can link), if the sync tools justify it.
Acceptance for this issue is the triage output itself: a sequenced step list with per-step issues, each naming its caller set and the raw-gh call sites it retires. Implementation lands under those step issues, not here. Activitydeveloping-today commented on Nov 12, 2026 developing-today-fleet commented on Nov 12, 2026 Scope extension from #9060 (pm stack: multi-board hierarchy + full task genealogy), per Drew's 2026-11-12 16:45 amendment: the fleet gh Metadata superset (design sections 13-16 of the merged design note, PR #9064) extends this issue's step-2 scope. Filed as dedicated sub-issues of #9060 so this issue is not duplicated: #9073 (create-path Metadata stamping + DB insert), #9074 (metadata database + query surface), #9075 (session state), #9076 (dual ingestion/self-healing). dezren39 commented on Nov 13, 2026 Cross-link: #9178 specifies new fleet queue verbs on this tool surface — claim-by-task-ID (including parked / attempt-capped tasks under a recorded owner override), multi-task claim under one session with --take-over, and resume-by-session via a resume_session_id task column. Final verb names should follow the conventions established here. dezren39 commented on Nov 17, 2026
Agent note — triaged, task 18808 for issue #9016 (lane any-e)
Triage output, per this issue's own acceptance (the sequenced step list with per-step issues; implementation lands under the step issues, not here):
- Premise verified fresh (2026-11-17): step 1 is landed — issue fleet gh: one passthrough that rotates personal + App tokens for every fleet gh call #8887 is CLOSED and PR fleet gh: passthrough with personal + App token rotation (#8887) #9014 (fleet gh passthrough with personal + App token rotation) is MERGED. Issue fleet gh step 2: higher-level sync tools on the token rotation #9016 is OPEN, no hard-stop labels. Already-filed scope extensions are NOT duplicated here: the Metadata superset lives in impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073-impl(fleet): dual ingestion — webhook listener + interval sweeper, Metadata backfill, retroactive completion #9076 (under pm stack: multi-board hierarchy + full task genealogy #9060), and the queue-verb spec is cross-linked from fleet queue: resume-by-session, claim-any-task, and manual-only items #9178.
- Step 2.1 — Project sync verb → issue fleet gh step 2.1: Project sync verb on the token rotation (project-reconcile caller set) #10972. Caller set: project-reconcile.sh (hourly orchestration pass, Project Bump build/buck/preludes/buck2-prelude from
3a02ea3 to 9530656 #4 reconciliation; see fix(orchestrator): project-reconcile.sh times out over ~200 items — make the bounded pass the standard path #1408) — retires its per-call gh project invocations and outbox file shapes.
- Step 2.2 — Queue/GitHub sync verbs → issue fleet gh step 2.2: Queue/GitHub sync verbs for scripted flows (dispatch, claimant, job bodies) #10973. Caller set verified on main: pm-stack/dispatch/src/github.ts and pm-stack/opencode-claimant/claimant.py compose raw gh calls today; plus the job-body flows this issue names (program tending, stewardship verdict posting, pool reviews).
- Step 2.3 — Library surface decision → issue fleet gh step 2.3: decide the fleet gh library surface (crate) after steps 2.1/2.2 #10974. Sequenced last and conditional by design: decide, with the 2.1/2.2 consumer evidence in hand, whether the gh domain's provider/rotation becomes a linkable crate or the verb surface suffices.
- Sequence rationale: 2.1 first (one caller, well-bounded write set, retires a script whose failure mode is a standing open wound — Project Bump build/buck/preludes/buck2-prelude from
3a02ea3 to 9530656 #4 reconciliation), 2.2 second (several callers, same verb conventions), 2.3 last (the library question can only be answered from 2.1/2.2's actual consumer shapes).
- Labels: status/triaged + priority/normal + effort/l + kind/enhancement added (task/triage was already present). Priority normal per the priorities brief — fleet-enabling but not fleet-stalling; step 1 already removed the single-token failure mode.
dezren39 commented on Nov 23, 2026
Done-check + close record — Lane CX (archer), 2026-11-22
This issue's own acceptance is the triage output itself: "a sequenced step list with per-step issues, each naming its caller set and the raw-gh call sites it retires. Implementation lands under those step issues, not here."
Fresh verification this pass (gh REST):
- Triage output posted 2026-11-17 (task 18808, comment above): premise re-verified then (step 1 landed — fleet gh: one passthrough that rotates personal + App tokens for every fleet gh call #8887 closed, PR fleet gh: passthrough with personal + App token rotation (#8887) #9014 merged), sequence rationale recorded.
- Step issues exist and are open, each carrying its caller set, retired call sites, and acceptance:
- Scope extensions were filed under their own homes, not duplicated here: Metadata superset impl(fleet): fleet gh Metadata superset — create-path stamping + DB insert (extends #9016) #9073–impl(fleet): dual ingestion — webhook listener + interval sweeper, Metadata backfill, retroactive completion #9076 (under pm stack: multi-board hierarchy + full task genealogy #9060); queue-verb spec cross-linked from fleet queue: resume-by-session, claim-any-task, and manual-only items #9178.
- No open PR references this issue; no live claim by another worker (last comment is the 2026-11-17 triage note).
Acceptance met. Closing as completed — implementation continues under #10972 → #10973 → #10974 in the recorded sequence. Closing this dep-chain head should release the queue tasks dep-blocked on it.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|