Skip to content

hooks: mirror Slice 2 dual-mode rewires (5 hooks)#5

Merged
waitdeadai merged 1 commit into
mainfrom
physics-engines/slice-2-fact-fabrication-dual-mode
May 17, 2026
Merged

hooks: mirror Slice 2 dual-mode rewires (5 hooks)#5
waitdeadai merged 1 commit into
mainfrom
physics-engines/slice-2-fact-fabrication-dual-mode

Conversation

@waitdeadai
Copy link
Copy Markdown
Owner

Summary

Byte-equal mirror of waitdeadai/llm-dark-patterns#12 for the minmaxing harness. Mirrors the dual-mode rewires across:

  • `.claude/hooks/no-fake-recall.sh`
  • `.claude/hooks/no-fake-stats.sh`
  • `.claude/hooks/no-phantom-tool-call.sh`
  • `.claude/hooks/no-rollback-claim-without-evidence.sh`
  • `.claude/hooks/no-sandbagging-disguise.sh`

When `agentcloseout-physics` is on $PATH and a matching rule pack is discoverable, the harness routes verdicts through the Rust engine. Otherwise the original bash regex path runs. Both exit 2 on block.

Companion PRs

Test plan

  • hook files byte-equal vs llm-dark-patterns/hooks/.sh
  • dual-mode Rust path emits BLOCKED + matched rule + evidence, exit 2
  • dual-mode bash fallback emits BLOCKED, exit 2

🤖 Generated with Claude Code

Byte-equal copy of the corresponding llm-dark-patterns hooks. Mirrors
the Slice-2 fact-fabrication family upgrade so the minmaxing harness
runs the same dual-mode path: prefer agentcloseout-physics on PATH,
fall back to the original bash regex otherwise. Both paths exit 2 on
block.

Affected hooks:
- no-fake-recall.sh
- no-fake-stats.sh
- no-phantom-tool-call.sh
- no-rollback-claim-without-evidence.sh
- no-sandbagging-disguise.sh

Companion PRs:
- waitdeadai/agent-closeout-bench physics-engines/slice-2-fact-fabrication
  (YAML rule packs + Rust unit tests + ENGINE.md + fixtures)
- waitdeadai/llm-dark-patterns physics-engines/slice-2-fact-fabrication-dual-mode
  (canonical dual-mode bash hooks)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@waitdeadai waitdeadai merged commit e5c7ea9 into main May 17, 2026
1 check passed
@waitdeadai waitdeadai deleted the physics-engines/slice-2-fact-fabrication-dual-mode branch May 17, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants