gsh/libgsh/src
Tyler J King 91f027ae61 libgsh: complete scenario coverage for corpus_check execution paths
Adds the ReadFailed scenario (binary path resolves to a directory so
exists() succeeds but read() fails) and a scenarios coverage map at the
top of the test module. The map links each test to the audit fix
scenarios:

- valid CID, content matches: Allowed
- valid CID at admission, tampered content at execution: ContentMismatch
- missing binary where directory exists: Denied (sanity preserved)
- binary present but unreadable: ReadFailed (fail-closed)

Plus the existing sentinels for ungoverned-CID and corpus-not-mounted.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Tyler J King <tking@guildhouse.dev>
2026-04-25 03:18:56 -04:00
..
ac.rs refactor: extract libgsh from monolith 2026-04-02 09:31:50 -04:00
chronicle_events.rs libgsh: verify corpus binary content before allowing execution 2026-04-25 03:02:37 -04:00
classifier.rs feat: gsh human mode — interactive governed shell with reedline 2026-04-02 15:44:34 -04:00
config.rs refactor: extract libgsh from monolith 2026-04-02 09:31:50 -04:00
corpus.rs libgsh: complete scenario coverage for corpus_check execution paths 2026-04-25 03:18:56 -04:00
cr.rs fix: align CR format with broker CompleteRequest schema 2026-04-02 23:11:22 -04:00
lib.rs libgsh: verify corpus binary content before allowing execution 2026-04-25 03:02:37 -04:00
registry.rs refactor: extract libgsh from monolith 2026-04-02 09:31:50 -04:00
session.rs feat: detect Windows Entra/local principal in WSL2 2026-04-04 14:15:05 -04:00