deepseek-harness/docs/rfc/implemented/testing
Tianyi Cui 74f61c89e3 test(hooks): snapshot the CC + Codex hook matrix end-to-end
Load both hook bridges in the ACP example (dsh-hooks-claude → ./hooks.json,
dsh-hooks-codex → ./codex-hooks.json) so the full-transcript snapshot tier can
exercise each dialect against the real app. An absent config file is a silent
no-op, so a scenario carries only the file it needs and the other bridge
vanishes — verified byte-identical against every pre-existing snapshot.

Add a scenario per hook point × its headline Decision outcome, both dialects:
UserPromptSubmit block (authored, keyless) + context-fold, PreToolUse deny/ask,
PostToolUse block/context, Stop force-continue. The mid-turn scenarios are
recorded against the real API with the hook active, so the model's reaction to
a denied/blocked/force-continued turn is part of the replayed transcript.

SessionStart and SubagentStart are deliberately excluded (detached best-effort
inject races the log position — a recorded golden fails 10/10 on its own
replay), as is SubagentStop (observe-only, zero transcript footprint — a golden
could never be proven to fail). Both stay on the bridges' unit coverage. See
docs/rfc/implemented/testing/2026-07-04-hook-snapshot-matrix.md.
2026-07-04 00:40:35 +08:00
..
2026-06-11-property-based-testing.md fix review findings: correct the property-suite invariant description 2026-06-21 11:02:08 +08:00
2026-06-19-acp-snapshot-tests.md Merge branch 'worktree-simplify-snapshot-goldens' into worktree-simplify-extract-examples 2026-06-21 18:38:50 +08:00
2026-06-19-real-api-e2e-ci.md Fix doc cross-links for the hierarchy; add package-path + shape gates 2026-06-20 23:12:14 +08:00
2026-06-20-remove-redundant-snapshot-log-goldens.md test(snapshot): use session.jsonl as the only session-log artifact (drop session.golden.jsonl) 2026-06-21 10:36:57 +08:00
2026-06-22-fork-child-replay-seed-boundary.md fix review findings: skip collided SCHEMA_VERSION 3; reject marker-less surface events 2026-06-24 17:45:48 +08:00
2026-06-22-fork-snapshot-scenarios.md Record fork and mixed spawn+fork snapshot scenarios 2026-06-22 21:20:54 +08:00
2026-06-22-subagent-snapshot-replay.md Record fork and mixed spawn+fork snapshot scenarios 2026-06-22 21:20:54 +08:00
2026-07-04-hook-snapshot-matrix.md test(hooks): snapshot the CC + Codex hook matrix end-to-end 2026-07-04 00:40:35 +08:00