[codex] expose cached repository state in status - #849
Conversation
|
Speaking as Kun's firstmate: This is a draft, so it will not be merged. Inspected the same cached-status intent as #846: VISION.md:
Please mark ready when you want hosted CI. First-time fork workflows will need a maintainer approval after that. If this replaces #846 (that one is now DIRTY vs main), please close #846 so we are not tracking two copies. |
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains; the previously reported unavailable-state rendering, hidden-guidance, and cached Git-object mutation paths are addressed at the current head. Reviews (4): Last reviewed commit: "fix(sync): defer cached gate recovery pr..." | Re-trigger Greptile |
|
Speaking as Kun's firstmate: Re-triaged HEAD Inspected Otherwise the change is still local VISION.md:
#846 is still an open draft of the same idea — please close it when this one is the successor so we are not tracking two copies. |
|
Speaking as Kun's firstmate: Re-triaged HEAD First-time fork workflows re-approved on this head (CI/docs/Guard). Greptile still running at stamp time. Corrective/diagnostic status + fail-closed recovery classification; not a default gate-pass change. Waiting on hosted CI + green Greptile before merge. VISION.md:
Please close draft #846 if this remains the successor. |
|
Field incident from #856 confirms the recovery-planning bug on v1.57.0. The failed run records pipeline head
in the run's gate repository, with a second complete copy in the eval pool. However, Please retain a regression for this exact gate-only, non-ancestral recovery-ref case. The preserved invoking branch is clean at |
|
Hosted e2e diagnosis for 15796dc: the sole failure is a timing-dependent test-template copy race on transient I attempted a failed-job rerun, but GitHub rejected it because this account lacks repository-admin rights. I am preserving the exact reviewed head rather than adding unrelated test-fixture churn. A maintainer rerun of |
|
Speaking as Kun's firstmate: Hosted CI on You opened successor #860 as a clean replay onto current main. Please close this PR in favor of #860 so we only track one copy (same as the earlier #846 ask). #856 stays pointed at the recovery-classify fix landing with that successor. |
Summary
This is a clean reconstruction of the cached repository-state diagnostics on current upstream main. It supersedes the contaminated pipeline candidate without rewriting or deleting that preserved history.
no-mistakes statusalways renders explicitly labelled cached local evidence: branch, short HEAD, clean/dirty state, a local reason when present, and existing branch-sync guidance. The status fingerprint includes this rendered value, so sampled telemetry follows visible state.Safety boundary
The implementation uses
branchsync.Service.InspectCached, which reads local Git and gate state only. It performs no fetch or remote query, makes no remote-freshness claim, and does not mutate refs, index, worktree, or the gate database. The old fork experiment and tracked binary remain excluded.Verification
statusregression coverage.git fetchandgit ls-remote; the test snapshots Git metadata, refs/worktree state, and gate DB/WAL.make lintgo test -race ./...go build -o ./bin/no-mistakes ./cmd/no-mistakesgit diff --checkHosted CI and maintainer review remain required before merge. GitHub currently requires an upstream administrator to approve first-time fork workflow runs; this contributor token lacks that permission (HTTP 403).