Repository navigation
Run the repository's pre-commit, husky and lefthook checks as proof obligations - #130
Merged
Merged
Conversation
…bligations Slice commits skip git hooks (core.hooksPath=/dev/null). Planning now adds a sandboxed broker obligation per configured hook system, and the security model and apply docs say so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lled A pre-commit or lefthook obligation whose binary is absent came back inconclusive and could not be waived, so every slice was blocked. Planning now looks the tool up on PATH and, if it is missing, makes the obligation requires_human. Husky runs through sh and is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bubblewrap sandbox mounts a fresh /tmp, so a hook tool installed in a PATH directory under /tmp vanished (execvp: No such file). Bind such directories back read-only, as is already done for the project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #98
What changed
Slice commits skip git hooks (
core.hooksPath=/dev/null); the docs now say so and why. Planning also adds alintobligation per configured hook system, run through the broker (slice worktree, OS sandbox, no network): pre-commit (pre-commit run --all-files), husky (sh .husky/pre-commit), lefthook (lefthook run pre-commit). Detection:runtime/plan/hooks.mjs.Scenario to test map
Tests written first, seen failing (1 pass, 7 fail), then 8 of 8.
Checks
npm test: 3597 tests; the knownrequireHumanTTYfailure plus one I caused (language-registry guard on an extension list in hooks.mjs), fixed and re-run with the hook and registry tests: 13 of 13 pass. Changed-area run (plan, artifacts, schemas, broker, cli): 469 pass, 1 known failure.pre-commiton PATH runs, and its failure fails the obligation.npm test3614 tests, 3604 pass, only the knownrequireHumanTTYfailure.Decisions for a person
lint(no schema change); a dedicated kind would need a schema and migration.requires_human, so a person can waive it; husky (plainsh) is unchanged.pre-commit run --all-fileschecks the whole tree, not only the slice diff; scoping is follow-up Scope hook obligations to the slice's changed files #137.🤖 Generated with Claude Code