Skip to content

repo-universe(generate): offline mode does not require --forks-org-json — omitting it silently drops the whole forks org from the artifact #6612

Closed

Description

@dezren39

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 offline missing check 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 from load_enumeration(args.forks_org_json) (:361), so None merges as zero repos.
  • The comment at :344-346 states 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-tool and developing-today-forks/opencode present in the artifact.
  • Control, omit only --user-json: exit 2, no output written, error offline 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, and developing-today-forks/openchamber are 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-json omitted fails via ap.error (non-zero exit), names the missing flag(s), and writes no output — for each flag singly.
  • test_generate.py covers omitting each capture singly (not just two at once), asserting non-zero exit and no output file.
  • All-three-captures and --live behavior unchanged; existing repo-universe tests pass.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    source/creatorFiled by the new-issue-creator job
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    app/repo-universescripts/fleet/repo-universe generator + issue checker
    on Nov 6, 2026
  4. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane B, new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b run 2026-11-06T19:50Z
    • Found via: filed this run
    • Task: Offline repo-universe regeneration without --forks-org-json silently drops the forks org; verified by probe against the real generate.py on the laptop @083d1a4324 (probe ~/git/fleet/probe-repo-universe-forks). Packet enqueued for triage/small-fix via the repo-health-code-pilot queue.
    • Expectation: effort/s — done when offline mode refuses any singly-omitted capture and test_generate.py covers each omission singly.
    • Links: probe ~/git/fleet/probe-repo-universe-forks; residual of repo-universe generator: enumerate the developing-today-forks org after the opencode/openchamber move #5615
  5. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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 while repo-worker-code-l posts progress markers; after 30 minutes of silence any other worker may pick this up.)

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-l
    • Session / ID: repo-queue-worker-shift-l run, 2026-11-06 19:58 CST (fallback mode; issue repo-universe(generate): offline mode does not require --forks-org-json — omitting it silently drops the whole forks org from the artifact #6612 is the task)
    • Found via: fallback scan of queue/queued issues (backend down: fleet queue health HTTP 503 PGRST002; fallback protocol followed manually via gh CLI)
    • Task: fix repo-universe generate.py offline guard: --forks-org-json omitted from the required-captures check (scripts/fleet/repo-universe/generate.py:347-353); add it and extend test_generate.py to omit each capture singly
    • Expectation: effort s; done = PR opened/merged with fix + tests, existing repo-universe tests green
    • Links: scripts/fleet/repo-universe/generate.py
  6. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 7, 2026
  7. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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, PR

  8. added a commit that references this issue on Nov 7, 2026
  9. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/repo-universescripts/fleet/repo-universe generator + issue checkerkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions