Repository navigation
v1.92.20.0 /retro global counts Kimi Code, OMP and Antigravity sessions - #3740
Merged
Merged
Conversation
…2917 shipped Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Contributor
|
Closing as not planned: on the 2026-10-31 build-or-close list, Garry decided few people would see a difference from this change. The branch stays in case we come back to it. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # TODOS.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Before: the three sessions are invisible and the totals read 0. After: Kimi Code and OMP count against their repo, and Antigravity counts in the total with no repo.
Text version
Captured on a temporary HOME holding one session per new tool (remote and path lines left out).
Why
"A week spent in Kimi Code or OMP doesn't show up in
/retro global" (#2917), and Antigravity sessions are missing too (#1977).gstack-global-discoveronly knew Claude Code, Codex and Gemini, so a week in another agent CLI read as zero with nothing to tell you it was missing. Now one scanner list drives the JSON, the summary and the retro report: Kimi Code and OMP sessions count per repo, and Antigravity sessions count in the total without a repo, because that CLI stores the working directory inside an undocumented blob.Blast radius
The only consumer of the discovery JSON is
/retro global(retro/SKILL.md.tmpl);toolsstays a keyed object and the existingclaude_code,codexandgeminipaths keep their shape, so older readers and saved retros still parse (file read: bin/gstack-global-discover.tsDiscoveryResult; script ran: the temp-HOME suite and the smoke probe below). The retro skill prose changed only where it listed the three tools, and the retro skeleton stays under its parity cap (test/parity-suite.test.ts passed).Behavior changes
toolsgainskimi_code,ompandagyentries (zeros included), and every entry gains alabel.agycarriesunattributed: trueandrepos: 0.total_sessionsnow includes Antigravity sessions, which belong to no repo.sessionsobject lists every attributed tool (kimi_code,ompadded).Discovered: N CC sessions, …toDiscovered: CC: N, Codex: N, …; Antigravity: N (repo unattributed). No code in the repository parses it./retro globalreports session counts and the Tool Usage Analysis per discovered tool, and treats a tool missing from an older saved retro as 0.Approvals
Summary
/retro globalmissed every session from agent CLIs it didn't know about, so the numbers looked complete when they weren't (#2917, #1977). Discovery now runs a list of scanners instead of three hard-coded calls, adds Kimi Code and OMP (counted per repo) and counts Antigravity sessions with no repo, and the retro report iterates whatever the list returns. A docs commit updates the README's /retro row and marks #2917 shipped in TODOS.md. The branch carries one merge of origin/main (71acd83, the only conflict was in TODOS.md).Test Coverage
Tests: 1571 → 1571 test files (the temp-HOME suite is new cases in test/global-discover.test.ts; the audit ran audit-only and wrote no tests).
Coverage: 50% value-weighted (50% including 0 weakly covered paths).
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Proposed tests (not written, below the blocking floor): Kimi fallback rows (dir mtime, state.cwd, relative sessionDir, bad lines), an OMP header with no cwd, and the repo sort with Kimi/OMP counts.
Tests ran: typecheck count unavailable
Tests ran: focused 70
Tests ran: freshness count unavailable
Pre-Landing Review
Re-run at 560799f after merging origin/main (71acd83); the product diff is unchanged, but the TODOS.md hunk's context moved, so the receipt could not carry and this is a fresh pass.
Pre-Landing Review: 4 issues — 0 auto-fixed, 3 asked (0 fixed, 3 skipped), 0 deferred, 1 noted. None reaches the blocking floor (would fail a test, break production, or lose data or secrets).
REVIEW_LOOP: passes=1 blocking_found=2 deferred=0 noted=1 fixed=0 scope=frozen dispatches=4
The two
blocking_foundare the FIXABLE-tagged adversarial items above; the reviewer rated both Low, Blocks: no, and they are skipped at the crew's blocking floor.Gate edits: none detected (4 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review (openai/gpt-6.1-sol): completed, no findings. Targeted gate review: no findings. Red Team: no findings. Native adversarial: 3 Low findings, none blocking.
Skipped below the floor (in the diff):
bin/gstack-global-discover.ts:562(testing, conf 6): Kimi fallback branches (dir mtime,state.cwd, bad index lines) have no unit tests. The QA smoke probe below exercises them.bin/gstack-global-discover.ts:545(native adversarial, tagged FIXABLE so collected as CRITICAL; the reviewer wrote Severity: Low, Blocks: no): Kimi index rows are not deduplicated by sessionId. Unverified; the gstack-global-discover misses Kimi Code and OMP sessions — only scans ~/.claude, ~/.codex, ~/.gemini #2917 report describes one index row per session.bin/gstack-global-discover.ts:569(native adversarial, tagged FIXABLE so collected as CRITICAL; Severity: Low, Blocks: no): Kimi Code and OMP sessions with no recorded cwd are left out oftotal_sessions, and a relative cwd would resolve against the directory /retro runs from. The gstack-global-discover misses Kimi Code and OMP sessions — only scans ~/.claude, ~/.codex, ~/.gemini #2917 layout records absoluteworkDir, and OMP headers carry an absolutecwd.Review notes
Below the blocking floor; recorded here and not fixed in this PR.
bin/gstack-global-discover.ts:561Kimi CodeupdatedAtis read as epoch ms; the gstack-global-discover misses Kimi Code and OMP sessions — only scans ~/.claude, ~/.codex, ~/.gemini #2917 report documents epoch ms.bin/gstack-global-discover.ts:603(pass at b60dc2c) OMP sessions are matched on a top-levelcwdfield.Exploratory QA
Smoke (2 probes, both pass, report-only, run at 127a263 with a temporary HOME):
sessionDirwhosestate.jsonhascwdbut noupdatedAt, and a missing session dir; two OMP files, one withoutcwd; one Antigravity.db. Result:kimi_code1 (attributed throughstate.cwdand the dir mtime),omp1 (the cwd-less file skipped),agy1 withunattributed: true,total_sessions3, 1 repo.No browser surface. No plan checks bound to this branch.
Design Review
No frontend files changed — design review skipped.
Eval Results
The selector maps
bin/gstack-global-discover.tsto 260 dependent gate cases; those stay with the train's full gate. Focused paid cases for the changed retro prose, run locally on 127a263:retro-base-branch(rule, 1 trial): PASS, $0.32retro/SKILL.md instructions(judge): PASS, clarity 4 / completeness 4 / actionability 4, $0.06Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). The approved plan is GST-531 (see Approvals).
Issues
Fixes #2917
Refs #1977
Antigravity sessions are counted but not attributed to a repo, so #1977 stays open for decoding the conversation blob.
Verification Results
Exploratory smoke: 2 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN. No Step 8.1 obligations (no plan file bound).
TODOS
Documentation
Status: current, zero blockers, no files edited in this re-audit.
Scope: branch gsta214/c against base 71acd83 (origin/main), mode edit. Selected files: README.md, TODOS.md, bin/gstack-global-discover.ts, changelog.d/gsta214-c.md, retro/SKILL.md, retro/SKILL.md.tmpl, test/global-discover.test.ts. Nested authored docs were searched for
retro global, scanner, and tool-list references.Documentation health:
README.md Current (the /retro row lists Kimi Code, OMP and Antigravity)
TODOS.md Current (New hosts line reflects the shipped Kimi Code and OMP scanners)
changelog.d/ Current (read only; claims match the scanner)
docs/troubleshooting.md, docs/PROJECT_STRUCTURE.md Current (no stale tool lists)
retro/SKILL.md(.tmpl) Current (branch-authored; not edited)
Documentation coverage: Kimi Code, OMP and Antigravity in /retro global have reference coverage (README row, changelog fragment) but no how-to, tutorial or explanation. Common gap, not a blocker, and not filled per audit scope.
Diagram drift: none in the touched docs.
Test plan
bun run typecheck: exit 0bun test test/global-discover.test.ts test/parity-suite.test.ts test/skill-md-size-guard.test.ts test/remote-identity-vectors.test.ts test/binary-version-probe.test.ts: 70 pass, 0 failbun run gen:skill-docsfreshness: no diffbun test test/spawnsync-timeout-tripwire.test.ts test/module-size-ratchet.test.ts test/bun-entry-isolation.test.ts: 19 pass, 0 failUBI_OWNER=gsta214 gstack-pregate --stage tests --remote): 19389 tests, 0 failed on tree 901a2f70d3dc (head 560799f), $0.07; macOS and Windows lanes cleared from PR runs 41276552772 and 41276552723