# Final-head runtime evidence — Grok skill mentions

Scope: [#20371](https://git.cafe/pingdotgg/t3code/pulls/20371), [GitHub mirror](https://github.com/pingdotgg/t3code/pull/20371). Local replacement branch `takeover/pr-20371`; these captures prove the local replacement, not the original contributor remote head.

Baseline [7fd2e09e38](https://git.cafe/pingdotgg/t3code/commit/7fd2e09e381a61f427da09dd7a8f2c9c1558fe59), full SHA `7fd2e09e381a61f427da09dd7a8f2c9c1558fe59`. Final merge head [c635428d3e](https://git.cafe/pingdotgg/t3code/commit/c635428d3e05436f815263ed8c9cddc48e5b2e4f), full SHA `c635428d3e05436f815263ed8c9cddc48e5b2e4f`. Both SHAs were recorded from the running checkout before its server started. No implementation edits, commits, pushes, PR comments, or watches occurred during capture.

Fresh isolated T3/provider homes and synthetic projects under `/tmp/ev-20371-final/{before,after}`. `T3CODE_DEV_SEED=0` and `--no-seed`; no live userdata read, copied, or written. Each subcase uses a fresh native session. Normal authenticated project/settings/turn RPCs drive the real server, real Grok CLI and real OpenCode CLI through the ACP registry. Transparent wrappers retain the actual prompt and ACP completion.

The previous R9l/R9m native-history gap is repaired in all four before/after records. The repaired collector reads Grok native JSONL and OpenCode native SQLite `message` plus `part` rows by the exact ACP `sessionId`, read-only. OpenCode records retain user prompt parts, assistant text, `time.completed` and `finish:"stop"`. Every accepted capture also has ACP `end_turn`, durable completed run and completed provider turn. Native first-user `skill_information` injection, rather than an assistant marker alone, determines Grok expansion. Literal controls may manually read the skill and return its marker.

## Corrected matrix

| Case | Input / fixture | Baseline | Final | Native/runtime records |
|---|---|---|---|---|
| R1 | Leading picked `$ev20371 report` | Ordinary literal prompt; no native injection | Bare slash + injected skill body + marker | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e209a0f3d264aea1/before-R1.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/09df0c82f1b3dc46/after-R1.json) |
| R2 | Mid-sentence `report $ev20371` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/dc73dbf016df4305/before-R2.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c33b8c6674deec3a/after-R2.json) |
| R3 | Absent `$missing20371 report` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e6a3f306a9a6aaf7/before-R3.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a44175095db79a9c/after-R3.json) |
| R4 | Disabled `$internal20371 report` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/fde09737bf5f0170/before-R4.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2fad06998f2b6ddd/after-R4.json) |
| R5 | Inspect fault exit 73, `$ev20371 report` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e2b0b32d94bd123b/before-R5.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/612626f0cdc61ee2/after-R5.json) |
| R6n | Leading whitespace and actual newline | Ordinary literal prompt; no native injection | Bare slash + injected skill body + marker | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2c498e8c17d1eb7b/before-R6n.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5ddea957deb340bc/after-R6n.json) |
| R6b | Bare `$ev20371` | Ordinary literal prompt; no native injection | Bare slash + injected skill body + marker | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a5bdc54c403da918/before-R6b.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d60d3dac92b4fb72/after-R6b.json) |
| R7n | Numeric `$25 off` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/8cd0ba89e9a7684f/before-R7n.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7387cd77d1a17552/after-R7n.json) |
| R7p | Punctuation `$ev20371, report` | Ordinary literal prompt; no native injection | Ordinary literal prompt; no native injection | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/84e8bb1a2d1702ec/before-R7p.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/df430753d35da601/after-R7p.json) |
| R8 | Native `/ev20371 report` with text attachment | Native slash + injected skill body | Native slash + injected skill body | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d0a5e33f35cc0762/before-R8.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5dec5469e18f555f/after-R8.json) |
| R9l | OpenCode ACP leading `$ev20371 report` | Literal ordinary ACP prompt + native user/assistant + native stop | Literal ordinary ACP prompt + native user/assistant + native stop | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/cb331ca8b106aa24/before-R9l.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/67fde5383529b60f/after-R9l.json) |
| R9m | OpenCode ACP mid-sentence `report $ev20371` | Literal ordinary ACP prompt + native user/assistant + native stop | Literal ordinary ACP prompt + native user/assistant + native stop | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/54fca510bb204293/before-R9m.json) / [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7708f759b28feb08/after-R9m.json) |

The nine-row matrix expands to 12 subcases per phase. 24/24 accepted before/after subcases pass dispatch shape, native history/expansion, ACP end-turn and durable completion checks. [Machine validation](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f00181eeaee8483c/validation.json).

## Artifacts and reproduction

- [before-runtime-transcript.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/833ae0bb9a8a6392/before-runtime-transcript.json)
- [after-runtime-transcript.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e76faa6379ba09cb/after-runtime-transcript.json)
- [before-catalog-probes.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bcaaf767d33ede47/before-catalog-probes.json)
- [after-catalog-probes.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a60216638a07cc67/after-catalog-probes.json)
- [before-inspect.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/da3f58d5c4c30fc3/before-inspect.json)
- [after-inspect.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6b7c738e5c1fa8c0/after-inspect.json)
- [before-revision.txt](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/96ed4fac6322ca75/before-revision.txt)
- [after-revision.txt](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5dd7126e160938c7/after-revision.txt)
- [provenance.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/82ef9b42069b3ffa/provenance.json)
- [test-commands.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c3c116220a7c1189/test-commands.json)
- [native-audit.json](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5611dabf2b469d89/native-audit.json)
- [pr-20371-final-drivers.tar.gz](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/3178f8dd49e7da9d/pr-20371-final-drivers.tar.gz)
- [pr-20371-final-evidence.tar.gz](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/39eab8620149bcaf/pr-20371-final-evidence.tar.gz)
- [SHA256SUMS](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4ba9576833c763d0/SHA256SUMS)

Use the published scratch drivers as a transparent harness: seed synthetic projects, provision private provider configuration from the injected credential, pin the revision, start with an explicit isolated home, configure normal RPC settings, run the 12 cases, collect native records, enrich with durable state and validate. Drivers hard-code workspace/root/port and need adaptation for another location. Credentials and home databases are intentionally excluded; regenerate fresh credentials privately.

## Focused verification

- [before-tests-skills.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a753d6705131c9d8/before-tests-skills.log)
- [before-tests-acp.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5d6b28d3fb646195/before-tests-acp.log)
- [before-tests-regression-baseline.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/45ef9a3ea18f3f12/before-tests-regression-baseline.log)
- [after-tests-skills.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/ab43ec5246fae9e7/after-tests-skills.log)
- [after-tests-acp.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/21982d3812c62393/after-tests-acp.log)
- [after-tests-external-harness.log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f9a696bd5f0a3124/after-tests-external-harness.log)

Baseline regression harness uses final-head assertions with baseline production imports: one intended slash-shape assertion fails, two literal controls pass. This is an expected regression failure, not a missing-test-name result. Final-head focused suites and the same external harness pass; full CI/check:changed remains the lead’s responsibility.

## FRICTION and cleanup

The first baseline batch overlapped focused tests. Vite generated temporary package files, triggering Node’s dev watcher and cancelling the original R3 turn; remaining connection attempts in that batch failed. R3 was rerun in a new session and subsequent rows completed after tests finished. The rejected attempt is excluded by the collector’s last-submission-per-row rule. No accepted capture has a cancelled completion. Late `.vite-temp` writes also restarted the initial final-head watcher before any RPC submissions. It was stopped and replaced by `node src/bin.ts` using the captured isolated dev-runner environment, with explicit isolated home/port and no Node watcher; no implementation changed. All accepted final-head runs use that direct source server.

Literal models sometimes manually read fixture files, so the marker is not used to claim native expansion for controls. Native user records show the distinction. No browser/UI capture applies to this server-only change.

Owned server groups and recorded CLI children were stopped; port 18371 has no listener. The checkout was restored to `takeover/pr-20371` at the exact final head with a clean tracked working tree. Scratch `/tmp/ev-20371-final` retains private token/key/config files; do not upload it wholesale. Public sanitized artifacts are in `/tmp/ev-20371-final/public`.
