General-purpose coding policy for Baruch's AI agents
74
93%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
hooks/herdr-reset-input.sh adapts native UserPromptSubmit JSON to
skills/herdr-foreman/foreman/reset_input_hook.py. Claude Code and Codex declare the same quoted
command in the plugin manifest. Grok loads the Claude-compatible declaration;
it has no separate verifier. Ordinary prompts produce no output or owner writes.
The adapter runs from the installed skill with an installation-only Python
path; checkout modules and inherited Python paths cannot replace the verifier.
An invalid planned reset produces decision: block before model execution.
Claude's complete matching native long-paste frame is removed before exact
input comparison; mismatched frames and extra inner content remain refused.
The input envelope is a locator, not authority. The claimed deliverer first
saves its original foreground pins in the reset owner's schema-3 row. The
hook first reads and verifies an existing candidate without creating a lock;
the locked read repeats that proof. It verifies the row, its live child, the
unchanged stow and complete prompt,
and the native payload's new session. It consumes the old supervision binding
under its owner lock, preserves members/events/holds, and saves acceptance on
the reset row. Replay cannot consume the original binding twice. The deliverer
requires that acceptance and the matching new binding before reporting success.
Only a verified input receives native additionalContext authenticating the
planned continuation. It preserves the saved user scope, questions and holds;
it grants no new task authority. This distinguishes a proved machine handoff
from arbitrary pasted instructions without weakening the model's trust boundary.
The receipt proves landing when a runtime clips its transcript. A started turn
is still required; receipt acceptance alone never establishes healthy execution.
Codex's integration can retain its old session hint until the first real prompt.
Its foreman reset uses /clear to remain in the same checkout; a legacy /new
setting is translated on the reset's copied mechanics, not written to config.
No checkout picker or arbitrary modal response is automated.
The deliverer permits that hint only for the planned continuation, under the
unchanged foreground pins. The pre-prompt hook still refuses an old native
session. Claude/Grok keep their eager-session check before input and use the
same final hook gate. Unknown sends remain interrupted and are never repeated.
After clearing, all runtimes must establish stable idle under the original
process pins. That bounded read-only wait handles startup hooks after a stale
done observation; it never waits for an identity event that requires a prompt.
When Herdr reports a foreground process-group leader, pins bind that leader's
PID/start/command digest, not its changing hook/MCP children. Missing or duplicate
leaders refuse; transports without a group ID retain the strict full-set check.
Runtime replacement and same-PID exec still change the required identity.
Use only an owned named Herdr test server and test owner files; never a focused
session or production owner state. Read the installed herdr --skill first.
Pass the adapter through the runtime's supported hook configuration. The Grok
configuration inspection must show its Claude-compatible user_prompt_submit
command as enabled. Preserve the plugin's quoted command strings.
For each supported runtime:
Herdr reset input receipt: {} on its own line.
The native UI must show the reset verifier's blocking reason and perform no
model/tool work. A lifecycle wait alone does not prove this; read the pane.Binding transfer and receipt acceptance are separate atomic owner writes. A failed receipt commit admits no model input and leaves no delivery proof; replay refuses the consumed original binding. Preserve both records, restore storage, and use the saved owner recovery route; never retry uncertain input.
Unit and subprocess coverage lives in
skills/herdr-foreman/tests/test_reset_input_hook.py and
skills/herdr-foreman/tests/test_foreman_reset.py; the full repository runner discovers both.
Native validation supplements those deterministic tests, never replaces them.
.tessl-plugin
hooks
rules
skills
adopt-fork-pr
herdr-foreman
classify
foreman
references
specialists
templates
tests
herdr-standup
migrate-to-plugin
onboard-repo
release
references
tests