Skip to content

Forbid git hook bypasses - #1067

Merged
joelteply merged 3 commits into
canaryfrom
fix/forbid-no-verify
May 8, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/forbid-no-verify

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • remove repository docs/instructions that recommended git commit --no-verify or git push --no-verify
  • route AI git commit commands through normal git hooks instead of a bypass lane
  • use direct git argv calls in the TS git commit command so generated file paths/messages do not go through shell parsing

Validation

  • npx tsx scripts/build-with-loud-failure.ts
  • cargo test -p continuum-core --features metal,accelerate code::git_bridge --lib
  • normal git commit precommit hook passed: TypeScript, modified-file ESLint gate, browser ping
  • normal git push pre-push hook passed: TypeScript, ESLint baseline, Rust build/tests with metal,accelerate

Notes

  • npx markdownlint-cli2 scripts/README.md scripts/README-git-hooks.md still reports pre-existing whole-file formatting issues in those docs; the new lines were wrapped/cleaned.
  • pre-push attempted native Docker slice publishing because a Rust file changed, but scripts/push-current-arch.sh declined due generated-file worktree churn from validation. The generated churn was removed and the branch is clean.

joelteply and others added 2 commits May 8, 2026 03:56
continuum-8e97 caught the critical residual after #1067's cleanup pass:
CLAUDE.md is auto-loaded into every Claude Code session in this repo and
line 1567 still gave a conditional bypass ("if we have manually checked
that ai persona can respond... we can use --no-verify"). That directly
contradicts the standing rule (memory: critical_never_no_verify.md, "no
pre-existing failure exception") AND it's the most-loaded
bypass-promoting instruction the agent sees — keeping it while expunging
README/script files would have been the worst-of-both: agent reads
CLAUDE.md first, assumes bypass is fine, doesn't read the README.

Replaced the bypass line with a categorical no-bypass rule pointing at
the underlying-cause fixes (stale worktree, missing submodule, missing
generated file, hook bug) and cross-referencing the memory file so future
agents land at the authoritative source.

Surfaced via airc — the substrate-as-CVL pattern (sibling Mac flagged
PR #1067, Codex shipped the cleanup, continuum-8e97 reviewed for misses,
this commit closes the residual). Co-fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joelteply

Copy link
Copy Markdown
Contributor Author

Update: added a second commit fixing the precommit clippy gate itself. It now sources scripts/shared/cargo-features.sh (macOS uses --features metal,accelerate), writes clippy output to the log correctly, fails instead of silently skipping when clippy-baseline.txt is missing, and locks the baseline down from 176 to 163 after small Rust warning cleanups.

Validation: normal precommit passed with Rust files staged: TypeScript build, clippy 163 warnings at baseline, browser ping. Normal pre-push passed TypeScript, ESLint baseline, Rust build/tests with metal,accelerate. Docker slice helper still refused because the build generator dirties tracked generated TS whitespace; cleaned locally after push.

@joelteply
joelteply merged commit 7f9e28b into canary May 8, 2026
3 checks passed
@joelteply
joelteply deleted the fix/forbid-no-verify branch May 8, 2026 09:09
joelteply pushed a commit that referenced this pull request May 11, 2026
Codifies the fairness bar Mac+Windows smoke surfaced post #1057-1060:
storm IS fixed (CPU stays flat) BUT first-claim-wins coordination is too
sticky (only 1 of N personas replies). This test makes that failure mode
explicit so the eventual fix has an executable green-vs-red signal.

Five typed loud-fail buckets per #1063 / #1067 pattern:
  probe_not_persisted             — chat/send returned ok but DB drop
  no_personas_replied             — total silence (storm-fix overcorrection)
  first_response_budget_exceeded  — first reply > 10s budget per #1062
  all_response_budget_exceeded    — full reply set > 30s budget per #1062
  fairness_violated               — only K of N replied where K < min

Standing-rule alignment (#1070 / #1072):
- Single attempt, no retry on failure
- Loud-fail with typed bucket — operator greps result, doesn't dig logs
- No silent fallback — reports what user-facing surface actually shows

Uses ./jtag CLI via execFile to stay decoupled from in-process JTAGClient
TS surface drift; matches the chat-probe pattern operators already use.
joelteply added a commit that referenced this pull request May 11, 2026
* test(sensory): add Position 2 alpha-contract WebRTC sensory smoke

Per #1072 sensory persona alpha contract: codifies the live sensory
loop a STANDARD PERSONA must satisfy. Resolves multimodal model via
cognition/resolve-model (Position 1 dependency), spawns LiveKitAgent,
publishes test audio question + known image as video frame, asserts
persona's TTS response + transcription mentions image content.

Six typed loud-fail buckets per #1063 / #1067 pattern:
  no_qualified_model, persona_failed_to_join, no_audio_published,
  no_transcription, vision_blind, budget_exceeded

Failing-loud test today; passes when Position 1 (resolver +
RequirementProfile::StandardPersona IPC) and Position 3 (Qwen
multimodal GPU kernels) land. Bar is the test, not the impl.

No silent CPU fallback, no degraded text-only pass, no retry on
failure (per #1070 / #1072 standing rules).

* test(persona): multi-persona response timing regression smoke

Codifies the fairness bar Mac+Windows smoke surfaced post #1057-1060:
storm IS fixed (CPU stays flat) BUT first-claim-wins coordination is too
sticky (only 1 of N personas replies). This test makes that failure mode
explicit so the eventual fix has an executable green-vs-red signal.

Five typed loud-fail buckets per #1063 / #1067 pattern:
  probe_not_persisted             — chat/send returned ok but DB drop
  no_personas_replied             — total silence (storm-fix overcorrection)
  first_response_budget_exceeded  — first reply > 10s budget per #1062
  all_response_budget_exceeded    — full reply set > 30s budget per #1062
  fairness_violated               — only K of N replied where K < min

Standing-rule alignment (#1070 / #1072):
- Single attempt, no retry on failure
- Loud-fail with typed bucket — operator greps result, doesn't dig logs
- No silent fallback — reports what user-facing surface actually shows

Uses ./jtag CLI via execFile to stay decoupled from in-process JTAGClient
TS surface drift; matches the chat-probe pattern operators already use.

---------

Co-authored-by: Test <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant