Skip to content

Track the Oct 11–16 factory Run retrospective findings #721

Open

Description

@JacobStephens2

This was generated by AI during triage.

Turn the supplied Retro: thirdshift factory Runs, Oct 11–16 2026 into individually triageable work. Original scope: eight Runs (#658, #663, #666, #671, #672, #683, #686, #707) on this host; the report estimates 13.6 hours of Run time and about five hours of second-writer overhead.

All follow-up issues were initially filed as needs-triage. Following maintainer approval, #722, #731, and #732 now have Agent Briefs and are ready-for-agent; the other findings remain for triage. Finding 1 reuses #712, with an evidence comment. Findings 2–15 have separate issues. Host actions are work to investigate/perform later, not actions taken while filing. Low-confidence proposals remain investigations.

Finding index

Current-checkout notes

Original report

Full supplied report (historical evidence and proposals)

Retro: thirdshift factory Runs, Oct 11–16 2026

Scope: the eight most recent Runs on JacobStephens2/thirdshift on this host: Pickup runs #658, #663, #666, #671, #672, #686 and #707, and the issue run #683. All ran on Codex (gpt-6.1-sol, high). Sources:

  • the .log, .jsonl, .standards and .spec files under ~/.thirdshift/logs/JacobStephens2/thirdshift/commands/;
  • the reviewer sub-agent rollouts under ~/.codex/sessions/2026/10/;
  • GitHub PRs, issues and Actions runs;
  • the repo at 5504c97.

Condensed transcripts are in scratchpad/transcripts/.

Each finding is tagged with its layer:

  • Host: this machine and its operations.
  • Factory: thirdshift's prompts, Factory skills and Delivery code. A change here reaches every target repo.
  • Repo: the thirdshift repo as a target: AGENTS.md, CODING_STANDARDS.md, CONTEXT.md, CI, tests and scripts.

The Runs

Run Outcome Run wall Implement session Waiting on the local suite Race overhead
#707 failed: PR #708 merged by the other writer 72 min 60 min, 27.8M in 2 suites, ~42 min, ~99 turns, ~17M in (61%) ~29 min, 7-file conflict, moot 12-min Security review
#686 merged, clean 113 min 34 min, 8.8M in 19.8 min, 35 turns, 3.8M in (43%) none; CI waits 69 min
#672 failed: PR #689 merged by the other writer 64 min 62 min, 16.1M in 2 suites, ~40 min, 50 polls, ~8M in ~25 min; none of its code landed
#683 merged on a false green; main red 26h47m 51 min 30 min, 6.4M in 21 min, 11 polls none
#671 failed: a transient gh api read error 82 min 37 min, 10.7M in 23 min, 35 waits, 3.8M in 13 min, plus an 18.8-min CI cycle on an empty commit
#663 merged 62 min 26 min, 7.4M in 18.6 min on a site-only change, 33 waits, 4.2M in (57%) none
#666 failed: PR #675 left a draft 190 min 51 min, 13.6M in 2 suites, ~40 min, 39 polls, ~6M in ~104 min, 3 Review Repairs, 3 extra CI cycles
#658 failed: PR #661 merged by the other writer 181 min 48 min, 12.9M in 31 min, 42 polls, ~5.5M in ~100 min, 3 Review Repairs, 4 extra CI cycles

Totals across the eight Runs:

  • About 13.6 hours of Run time. About 5 hours of it was overhead from the second writer.
  • Implement sessions used about 104M input tokens, and roughly half went to turns that only waited on a local test suite.
  • Every Run that merged spent 30–70 minutes waiting on CI.

Findings, most severe first

1. A second thirdshift factory works the same Ready issues (Host)

2. Review Repairs make empty commits, so two writers ping-pong (Factory)

3. On Codex, waiting on a long command costs a model turn every 30–60 s (Factory; No-op)

4. A 20–23-minute local full suite gates every implement session (Factory skill and Repo)

5. CI takes 25–40 min a cycle, and a third of that is queueing (Repo)

  • Evidence: in Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686, 29 of the 69 CI-wait minutes were spent queueing for macOS runners.
    • Each push needs 5 macOS jobs: four test-macos-shard jobs plus Release's aarch64 build. At most 5 ran at once.
    • Superseded runs keep their runners. Check re-run reads CI as passed before the re-run's checks are listed, and Self-merges red CI #686's first CI kept running 10 min after Delivery pushed a new head.
    • Neither ci.yml nor release.yml has a concurrency block, and release.yml builds a macOS artifact on every PR.
    • The long-pole shard holds 420 tests and takes 1,107 s. 23 tests of 60 s or more make up 23% of the suite. Examples: unauthenticated_public_publishers_…_with_every_harness takes 346 s, and the 11×2 final-line table in tests/security_review.rs:400 runs each case as a full Scenario.
  • Fix:
    • concurrency: {group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}, cancel-in-progress: ${{ github.event_name == 'pull_request' }}} in both workflows.
    • A paths: filter on release.yml's pull_request trigger.
    • Move table-driven cases in-process and keep one or two end-to-end cases per behaviour.
    • A nextest slow-timeout in .config/nextest.toml to flag new slow tests.
  • Confidence: high that cancelling frees runners; medium on the minutes saved.

6. Security reviews rebuild a bwrap sandbox by trial and error (Factory and Host)

7. Host gh 2.45 and a root-owned cache break the commands the docs prescribe (Host and Repo docs)

  • Evidence:
    • gh issue view 707 --comments exits 1 on this host with "Projects (classic) is being deprecated", and so does gh pr edit. The error appears in 22 of the 25 sessions.
    • Those failing forms are the ones prescribed by docs/agents/issue-tracker.md (gh issue view <n> --comments, gh pr edit --add-label) and implied by the thirdshift-pr skill.
    • thirdshift's own code already works around this. src/github.rs says "gh pr edit fails on the GitHub Projects (classic) sunset in older gh".
    • /tmp/gh-cli-cache has been owned by root since Sep 25. So gh run view --log-failed, the command the CI-fix prompt suggests, fails with "permission denied" in every CI-fix Repair.
  • Fix:
    • Install current gh from GitHub's apt repo.
    • sudo rm -rf /tmp/gh-cli-cache.
    • In the docs, use gh issue view <n> --json title,body,labels,comments and gh api --method PATCH repos/<o>/<r>/pulls/<n> -F body=@<file>.
    • Optionally, a minimum gh version in thirdshift setup.
  • Confidence: high.

8. Navigation: big files read whole, and the glossary has no code map (Repo and Factory skill)

9. Reviewers have thin standards: cosmetic catches, and a missed timing bug (Repo)

10. Sessions have no stop rules when the work is moot (Factory)

11. One failed CI read fails the whole Run (Factory)

12. A gap in #263's fix still makes release tests flaky (Repo)

  • Evidence:
    • tests/release.rs isolated() sets GIT_CONFIG_GLOBAL=/dev/null, which bypasses the maintenance-off gitconfig from tests/support/mod.rs. CI's newer git then runs automatic maintenance in the background, and the fake gh's remove_dir_all hit "DirectoryNotEmpty". This was agy sessions fail on agy 1.3.3: pass the prompt as -p's value #658's CI red, after a 21.5-min CI-fix Repair and 3.4M tokens.
    • The Repair named the cause but filed nothing, because the CI-fix prompt allows only a "CI notes" line.
  • Fix:
    • Repo: set maintenance.auto=false and gc.auto=0 through GIT_CONFIG_COUNT/GIT_CONFIG_KEY_n/GIT_CONFIG_VALUE_n in isolated(), plus a guard test.
    • Factory: let the CI-fix Repair file a needs-triage issue for an unrelated failure whose cause it found.
  • Confidence: high.

13. Every Run's worktree starts with a cold target/ (Host and Factory)

  • Evidence: 2–3.5 min of dependency compiling before the first test in every implement session; security sandboxes rebuild again. "Blocking waiting for file lock" appears when reviewers test concurrently.
  • Fix: set RUSTC_WRAPPER=sccache, or seed target/ from the Launch directory.
  • Confidence: low-medium.

14. Edits made by Python str.replace heredocs (Factory prompt and Host)

  • Evidence:
  • Fix:
    • Prompt line: "Edit files with apply_patch."
    • Host: python-is-python3.
  • Confidence: low-medium.

15. Sessions carry 44 skills, some with colliding names (Factory and Host; No-op)

  • Evidence:
    • Every Codex session and sub-agent starts with a 16 KB list of 44 skills: the operator's ~/.agents/skills, Codex plugins (google-drive, pages, work-pets, sites…) and the repo's .agents/skills.
    • Generic code-review, tdd, pr and codebase-design collide with the thirdshift-* versions. 16 sessions read the generic code-review/SKILL.md, with no visible harm.
  • Fix: start Run sessions with Codex plugins off and only the Factory and repo skills.
  • Confidence: low on impact.

Already fixed

Keep

Activity

  1. added
    needs-triage
    enhancement
    on Oct 17, 2026
  2. JacobStephens2 commented on Oct 25, 2026

    @JacobStephens2
    OwnerAuthor

    This was generated by AI during triage.

    Triage: ready for a human

    This is a tracker, not agent work. Closed: #712, #722, #724, #725, #728, #730, #731, #732, #734, #735. Still open: #723, #726, #727, #729, #733. #724 is closed but still unchecked in the checklist.

    Next step: tick #724, and close this tracker once the five open findings resolve.

  3. added
    ready-for-human
    and removed
    needs-triage
    on Oct 25, 2026
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

    enhancementready-for-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions