You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integration test (klasp/tests/gate_flow.rs) using a captured real Claude tool-call JSON fixture in tests/fixtures/claude_commit_hook.json
Contract test (klasp/tests/protocol_contract.rs): asserts both fixture script's KLASP_GATE_SCHEMA AND render_hook_script() output equal GATE_SCHEMA_VERSION
Week 3 of v0.1 implementation. References: design.md §6, §10.
klasp/src/sources/shell.rs— ShellCheckSourceimpl: spawnsh -c {command}, capture stdout/stderr, optionalverdict_pathJSON extraction, timeout handlingklasp/src/cmd/gate.rs— full gate flow per design.md §6:KLASP_GATE_SCHEMAenv (fail-open on mismatch)GateProtocol::parse(fail-open on parse error)tool_input.command, classify viaTriggerklasp.toml(fail-open on missing/parse error)SourceRegistryVerdict::merge+ policygit commit,git push,&& git push,; git commit; rejectsforgit commit,mygit pushklasp/tests/gate_flow.rs) using a captured real Claude tool-call JSON fixture intests/fixtures/claude_commit_hook.jsonklasp/tests/protocol_contract.rs): asserts both fixture script'sKLASP_GATE_SCHEMAANDrender_hook_script()output equalGATE_SCHEMA_VERSION