chore: feat(healthcheck): ping the heartbeat before each security_gate call, capping tick silence at ~30m instead of ~55m #362
No reviewers
Labels
No labels
Agent
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No assignees
2 participants
Notifications
Total time spent: 32 seconds
Due date
igor
32 seconds
No due date set.
Dependencies
No dependencies set
Reference
joshtronic/igor!362
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/360-feat-healthcheck-heartbeat-before-the-security"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
security_gatecall, capping tick silence at ~30m instead of ~55mhc_ping heartbeatimmediately before the tier-1 issue-flow security gate (bin/tick.sh,security-gate-issue)hc_ping heartbeatimmediately before the PR-review security gate (bin/tick.sh,security-gate-pr-review)bin/test-heartbeat-before-security-gate.sh, a source-assertion (grep-based, in the spirit ofcheck-sync.sh) that fails if a future edit adds/moves asecurity_gatecall site without a preceding heartbeatTest plan
make testpasses, including the new source-assertion testmake lint(shellcheck + markdownlint) passes clean/security-reviewrun on the diff: no findings (the change only adds a hardcoded-argumenthc_ping heartbeatcall plus comments; no new input paths or attack surface)Closes #360
security_gatecall, capping tick silence at ~30m instead of ~55m🤖 Review —
APPROVE(automated)CI for
6362b9b7: successSmall, focused change: adds
hc_ping heartbeatimmediately before each of the twosecurity_gatecall sites inbin/tick.sh, plus a grep-based source-assertion test enforcing that invariant. CI is green.Verification against the checklist (all honest):
hc_ping heartbeatinsertions are present in the diff, one beforesecurity-gate-pr-review(line ~3588) and one beforesecurity-gate-issue(line ~4308). ✓bin/test-heartbeat-before-security-gate.shis added and does what the description says: grepssecurity_gate "call sites and asserts anhc_ping heartbeatwithin the precedingLOOKBACK=8lines. ✓Correctness of the new test:
security_gate "matches call sites (which pass a quoted worktree arg) but not the function definition (security_gate() {), so it won't self-trip on the def.hc_ping heartbeat(one intervening comment), comfortably inside the 8-line window. ✓no security_gate call sites found) and clampsstartto line 1. ✓set -uo pipefail(not-e) is appropriate here since it accumulates failures and exits explicitly.Scope/safety: ~51 new lines + 12 in
tick.sh, well under the size bar, no unrelated changes.hc_ping heartbeattakes only a hardcoded argument — no new input path or attack surface, consistent with the "security-review: no findings" claim.Minor notes (non-blocking):
check-sync.sh.No blocking issues. Correct, in scope, honestly described, CI success.
Independent review by the harness on
claude-opus-4-8(effort: high). The human reviewer is requested once Igor has reviewed; a human still merges.