Repository navigation
Description
Summary
scripts/fleet/repo-universe/generate.py — offline mode does not require --forks-org-json. Omitting it (while providing --org-json and --user-json) silently regenerates the repo-universe artifact with the entire developing-today-forks enumeration emptied: every GitHub-only forks-org repo disappears from the artifact, with exit 0 and no warning.
This is the exact failure the offline guard exists to prevent, and the exact repo loss #5615 fixed for --live: opencode and openchamber live in developing-today-forks since 2026-11-04.
Evidence (verified this run, laptop @ 083d1a4, origin/main)
Code, scripts/fleet/repo-universe/generate.py:
:347-353— the offlinemissingcheck lists only("--org-json", args.org_json)(:350) and("--user-json", args.user_json)(:351).--forks-org-json(arg defined :306-307) is absent.:103-105—load_enumeration(None)returns[]silently, so the missing capture becomes an empty source, not an error.:359-362— the forks capture is merged fromload_enumeration(args.forks_org_json)(:361), soNonemerges as zero repos.- The comment at
:344-346states the invariant the check is supposed to enforce: "Both captures are required offline: a missing one would silently regenerate with that source emptied, deleting its GitHub-only repos from the artifact." There are now three captures; the check covers two.
Probe (real generate.py as a subprocess, fixture captures in the shape of test_generate.py; probe dir ~/git/fleet/probe-repo-universe-forks on the laptop):
- Control, all three captures: exit 0;
developing-today-forks/some-toolanddeveloping-today-forks/opencodepresent in the artifact. - Control, omit only
--user-json: exit 2, no output written, erroroffline mode requires --user-json (or use --live). - Control, omit only
--org-json: exit 2, no output written. - Case, omit only
--forks-org-json: exit 0, output written (wrote …: 4 repos, 0 overrides applied);developing-today-forks/some-tool,developing-today-forks/opencode, anddeveloping-today-forks/openchamberare all absent from the artifact, while the org and user repos are still present.
Why the existing test does not catch it: scripts/fleet/repo-universe/test_generate.py::test_offline_mode_requires_both_captures passes --org-json only — it omits --user-json and --forks-org-json together, so the user-json guard fires and masks the forks gap. There is no test that omits each capture singly.
Related: #5615 (closed — added the forks-org enumeration), #1650 (closed — piece 1 generator), #1511 (open — parent tracker).
Why it matters
The artifact doc/fleet/repo-universe.yaml is the maintained inventory the issue checker (#1651) consumes to decide which repos get watched. A single forgotten flag on an offline regeneration silently unwatches/drops the forks org — including opencode and openchamber, two of the four fleet repos — and the run reports success, so the loss is only visible as a large unexplained diff (or, if committed without a careful read, as missing repos downstream).
Acceptance criteria
- Offline mode with any one of
--org-json,--forks-org-json,--user-jsonomitted fails viaap.error(non-zero exit), names the missing flag(s), and writes no output — for each flag singly. -
test_generate.pycovers omitting each capture singly (not just two at once), asserting non-zero exit and no output file. - All-three-captures and
--livebehavior unchanged; existing repo-universe tests pass.
Activity
developing-today commentedon Nov 6, 2026
CODE-2019
dezren39 commentedon Nov 6, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 7, 2026
Picked up by
repo-worker-code-l— working this now. (Fleet queue fallback mode: the queue backend is down, so this issue's comments carry the claim. The claim stays live whilerepo-worker-code-lposts progress markers; after 30 minutes of silence any other worker may pick this up.)🤖 Agent note · picked up
dezren39 commentedon Nov 7, 2026
Progress from
repo-worker-code-l: implementation_complete: generate.py offline guard now requires all three captures; test omits each capture singly; pre-fix the forks subtest fails (exit 0, output written), post-fix suite green; next: commit, PRMerge pull request #6710 from developing-today/queue/fallback-6612-fo…
dezren39 commentedon Nov 7, 2026
Released by
repo-worker-code-l(outcome: done). Issue #6612 FIXED and merged: PR #6710 #6710 (branch queue/fallback-6612-forks-org-required @d44e3b883c, merge commit pending-readback in release follow-up). generate.py offline guard now requires all three captures (--org-json, --forks-org-json, --user-json) via ap.error naming the missing flag(s), no output written; test_generate.py omits each capture singly (non-zero exit, flag named, no output) plus the original both-omitted case. Laptop: test_generate.py and test_check_issues.py green; pre-fix the forks-org subtest alone fails (exit 0, output written). Codex review: no findings. Issue auto-closed by the PR.🤖 Agent note · done