Skip to content

Reader subagents on Capy stop sending telemetry, error runs report their error class, and test fixtures stop reading the owner's settings - #4597

Merged
capy-ai[bot] merged 6 commits into
mainfrom
telemetry-env-fixes-batch-b
Nov 21, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
telemetry-env-fixes-batch-b

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

On a Capy machine, a shell that never loaded gstack's launch file (such as a review subagent's) now sends no usage data instead of falling back to the machine setting, as the privacy doc already promised.
Error runs now fill the existing error_class field from their exit reason, and each setup step and outcome is reported at most once a day per install, so a loop rerunning setup no longer floods the counts.
Tests no longer inherit the owner's preferences file, skill loadout or plugin state, which caused false failures.

Details
  • bin/gstack-telemetry-tier: a checkout with the Capy installer's state file reports off unless the Capy opt-in applies, also when reached through a host directory that links only bin/ (Codex and the other linked hosts). A shell that did load the launch file (the main agent itself, or a subagent that runs the install check) still sends under the owner's opt-in; telling those apart needs a variable set by the review dispatcher, which is a reviewer-prompt change and is not in this PR.
  • bin/gstack-skill-end passes --error-class from exit_reason's fixed list (blocked, tool_error, test_failed, context_limit, gave_up) on error runs. No new field.
  • bin/gstack-telemetry-log: an onboarding event is recorded once per step and outcome per install per UTC day, using a marker file in the analytics folder.
  • scripts/lib/shard-engine.ts adds GSTACK_PREFERENCES_FILE and GSTACK_LOADOUT_SKILL_ROOT to the launch markers the test sandbox and preload strip; test-setup.ts also drops CLAUDE_PLUGIN_DATA; test/helpers/ship-bin-fixture.ts drops every marker itself, so it holds when the preload does not load.
  • test/launch-env-echo-ratchet.test.ts: its installer regex was anchored to the line start and missed the two exports written by conditional lines; it now finds every echo "export …" line, so the check is stricter.
Agent notes

Lane GSTA-685, small-fix batch B items 2 (partial), 3, 4a, 4d. Deferred: 4b upgrade_completed (real upgrades go through /gstack-upgrade and session-update, which never send it; fix needs a template change and regeneration), 4c channel (no such field; needs ingest), the sourced-launch-file half of item 2 (reviewer brief change, needs the no-loss replay). Dropped: 4e unknown version (every layout setup writes links VERSION; data can't name the failing layout). Traced: 4f source=other on 1.101.0.0 comes from an externally set GSTACK_TELEMETRY_SOURCE value that ingest's normalizeSource maps to other; nothing in that tree sets it. Every fixed item has a test that failed before the fix.

Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-21 via lane GSTA-685 relay; approval a-5a9ba84b91b0: one scoped fix-check for the OB_KEY to OB_NAME rename at daee7b7 after a credential-scan false positive; no behavior change; Step 11 voice rerun skipped (fix-check at 0d19212, 0 findings)

Refs p1/outside-voice#1
Refs p1/red-team#1
Refs p1/specialist-batched#1

Ruled note: bin/gstack-telemetry-log:131:outside-voice at 8295022 ruled by Captain GStack Minder (GSTA-36), relayed by lane GSTA-685 (relayed from GSTA-685:2026-11-21) at 2026-11-21T08:03:30.093Z: onboarding marker race fixed in 0d19212 with a noclobber daily marker; round 2 reviewed it clean (approval a-856d09d463ac)

Review notes (below the blocking floor, not fixed here): gstack-update-check's update-check ping still reads the machine telemetry setting instead of gstack-telemetry-tier (follow-up); old undated .onboarding- markers stay as harmless orphans; the older reader-subagent test assumes the test checkout has no Capy state file; a failed JSONL append after the marker claim loses that step's row for the day.

Not run: paid evals (selector fell back to the full gate because test-setup.ts is a full-gate input; no prompt, template or judge changed); the local full free suite (CI's free-tests run 44882377847 at 8295022 is the full run).

{
  "schema_version": 1,
  "pr": 4597,
  "head": "8295022d248d04f2298e2b27bced43c471568f3d",
  "version": "1.102.1.0",
  "base": "main",
  "ci_carried": [
    {
      "lane": "test",
      "run": 44882377847,
      "attempt": 1,
      "tree": "38e6536e0c938987f27bfac9c63e39d306ad5cfa"
    }
  ],
  "calls": 39,
  "session_kind": "unattended",
  "head_tree": "38e6536e0c938987f27bfac9c63e39d306ad5cfa",
  "product_patch_id": "159c1989dd1d7ae2a5d1c5dd9b9a256acb04bc09",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 35,
    "rules": "85b3923b1a978e41",
    "base": "0adfab9dd9c7ee7141d43f5445de052ac34aa01f",
    "registry": "0adfab9dd9c7ee7141d43f5445de052ac34aa01f",
    "gate_scan": {
      "tagged": 0,
      "head": "8295022d248d04f2298e2b27bced43c471568f3d"
    },
    "reasons": [
      "gate-class",
      "runtime=35"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @38e6536e0c93 (8 checks, current for 8295022d248d)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44882377847/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44881661621/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=38e6536e0c93 tests=38624 skipped=104 runs=44882377847/1 profiles=ci-reuse/free-tests heads=8295022d248d verified=2026-11-21T08:00:50.909Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/ and README.md (privacy.md, capy-install.md, ARCHITECTURE.md reviewed against the telemetry changes; re-audited after the onboarding marker change)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 7,
    "fixed": 3,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 4,
    "ledgers_read": 6,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "review_loop_exception": {
    "accepted_by": "Captain GStack Minder (GSTA-36)",
    "date": "2026-11-21",
    "via": "lane GSTA-685 relay; approval a-5a9ba84b91b0",
    "reason": "one scoped fix-check for the OB_KEY to OB_NAME rename at daee7b77 after a credential-scan false positive; no behavior change; Step 11 voice rerun skipped",
    "fix_check": {
      "head": "0d19212f711493afd616b99ea953a26dd25b98b5",
      "findings": 0,
      "files": [
        "bin/gstack-telemetry-log"
      ]
    }
  },
  "ruled_notes": [
    {
      "finding": "bin/gstack-telemetry-log:131:outside-voice",
      "head": "8295022d248d04f2298e2b27bced43c471568f3d",
      "by": "Captain GStack Minder (GSTA-36), relayed by lane GSTA-685",
      "reason": "onboarding marker race fixed in 0d19212f with a noclobber daily marker; round 2 reviewed it clean",
      "at": "2026-11-21T08:03:30.093Z",
      "approval": "a-856d09d463ac",
      "relayed": "GSTA-685:2026-11-21"
    }
  ],
  "gate_dispositions": []
}
{"head":"6de92bb2db50e9889e0d1fe8998b27057d9e5912","run":"ship-4597-73ccb99","status":"started","review_loop":{"passes":1,"blocking_found":0,"deferred":0,"noted":0,"fixed":2,"scope":"frozen","rounds":1,"dispatches":{"specialist":3,"red-team":1}}}

Open in Capy

…eir error class, and test fixtures stop seeing the launch file

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 5 commits November 21, 2026 07:05
…t cannot alter test verdicts

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tup outcome is still reported the same day

Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/specialist-batched#1 reader=testing
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…of racing on the marker

Review-Finding: p1/outside-voice#1 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ading it as a key

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… lint asks for

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 19069a9 into main Nov 21, 2026
75 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Nov 22, 2026
… findings it fixed (GST-3260) (#4664)

/ship now closes a review finding when its fix round was granted and a
follow-up check read the fix clean, or when the fix commit names the
finding and a later full review reads it clean. Before, someone had to
write a ruling by hand.

Why: since this was missing, PRs whose findings were already fixed and
checked stalled at the round limit (#4537, harness-evals#508, #4597,
harness-evals#504, #4612).

Nothing to do.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/specialist-batched#1 reader=security
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant