Skip to content

Frontline hackathon london 2026 - Agent hooks using Tripwire - #79

Open
neomatrix369 wants to merge 20 commits into
mainfrom
frontline-hackathon-london-2026-agent-hooks
Open

Frontline hackathon london 2026 - Agent hooks using Tripwire#79
neomatrix369 wants to merge 20 commits into
mainfrom
frontline-hackathon-london-2026-agent-hooks

Conversation

@neomatrix369

@neomatrix369 neomatrix369 commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Summary

Why

Test Results

Checklist

  • ./scripts/quality-gates.sh passes locally
  • New tests added or updated (or change is docs-only)
  • Docs updated where applicable
  • No secrets or credentials committed

Closes

Complexity

Automatically refreshed by CI for product-code changes.

Scope Tool Result
Python (sandbox/) Radon highest CC 28 (rank D), 159 blocks
CLI (cli/) ESLint 0 function(s) above CC 10
Functions above the JavaScript threshold
  • CLI: no functions exceed cyclomatic complexity 10.

Ship enable/scan_validity_days defaults, approve/block stdout contract,
and fail-closed hook templates so setup-agent-hooks can install them next.
feat(slice-23): add Frontline config schema and PreToolUse handlers
Installs PreToolUse handlers under ~/.tripwire/hooks (mode 700), writes
config defaults when absent, and registers Claude Code PreToolUse idempotently.
Also closes slice 23 trackers after PR #74 landed on Frontline.
feat(slice-24): add tripwire setup-agent-hooks install path
Scripted smoke verifies enable→block (unscanned/RED) and disable→approve
on installed hooks; documents the Claude Code install-event gap workaround.
feat(slice-25): prove live enforce smoke after setup-agent-hooks
SSOT maps heatmap_status to six UI states and records observed tripwire
scan stdout so H2 skills do not invent fields.
docs(slice-26): publish dual-output contract for /tw-* skills
Extract command-string helpers so CI complexity gate passes on
collectPreToolUseCommands and the test counter.
Operators can flip only the enable flag while preserving other config keys;
verify/scan remain usable when enforcement is off.
@github-actions

github-actions Bot commented Aug 15, 2026

Copy link
Copy Markdown

code-review-graph review

Overall risk: 0.65 (MEDIUM) — 138 changed function(s)/class(es), 0 affected flow(s), 44 test gap(s)

Risk-scored changes

Risk Level Symbol Location Tested
0.65 medium guard/hooks_entry.py::_decision_approve guard/hooks_entry.py:72 no
0.65 medium guard/hooks_entry.py::_decision_block guard/hooks_entry.py:76 no
0.60 medium guard/hooks_entry.py::_config_path_from_env guard/hooks_entry.py:29 no
0.60 medium guard/hooks_entry.py::_smoke_check_call_from_env guard/hooks_entry.py:57 no
0.60 medium guard/tests/test_tw_verify.py::_resolved guard/tests/test_tw_verify.py:23 no
0.60 medium guard/tests/test_tw_verify.py::_status guard/tests/test_tw_verify.py:33 no
0.60 medium guard/verify.py::ResolvedArtifact guard/verify.py:40 no
0.60 medium guard/verify.py::StatusRecord guard/verify.py:49 no
0.60 medium guard/verify.py::ArtifactRow guard/verify.py:58 no
0.55 medium guard/hooks_entry.py::_default_check_call guard/hooks_entry.py:50 no

Test gaps

  • cli/src/setupAgentHooks.js::repoRootFromCliSrc (cli/src/setupAgentHooks.js:19)
  • cli/src/setupAgentHooks.js::defaultHooksSourceDir (cli/src/setupAgentHooks.js:24)
  • cli/src/setupAgentHooks.js::tripwireRoot (cli/src/setupAgentHooks.js:28)
  • cli/src/setupAgentHooks.js::hooksDir (cli/src/setupAgentHooks.js:32)
  • cli/src/setupAgentHooks.js::configPath (cli/src/setupAgentHooks.js:36)
  • ...and 39 more without direct tests

Token savings: this graph-backed report used ~46,243 fewer tokens (~73%) than reading every changed file in full (estimated, chars/4 approximation).


Powered by code-review-graph — local-first analysis; no code leaves the CI runner.

feat(slice-27): add /tw-enable and /tw-disable config toggles
Operators need one-pass multi-name verify with Markdown+JSON matching the
Frontline contract; close slice 27 trackers after PR #80 merge.
feat(slice-28): add /tw-verify dual-output status reporting
@neomatrix369 neomatrix369 changed the title Frontline hackathon london 2026 agent hooks Frontline hackathon london 2026 - Agent hooks using Tripwire Aug 15, 2026
Wires multi-name scan submission through an injectable tripwire scan seam
and echoes introspected batch_id / scan_run_ids for Frontline operators.
feat(slice-29): add /tw-scan submit skill with dual force syntax
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.

1 participant