Skip to content

Peer lessons batch: cap-hook yield, fitness_tick, flake_holder, finding/baseline guards, freeze_gate, flow_alarm, prevention_lint, quarantine cap - #2101

Merged
remigiusz-antczak merged 1 commit into
mainfrom
land/wave-1028al-r3
Oct 28, 2026
Merged

remigiusz-antczak merged 1 commit into
mainfrom
land/wave-1028al-r3

Conversation

@remigiusz-antczak

Copy link
Copy Markdown
Collaborator

A batch of mechanisms drawn from what peer sessions reported running into in their delivery pipelines.

  • reply_cap yields to an existing executable user-level cap hook, so two caps never fight.
  • fitness_tick alarms when a fitness function is installed but nothing calls it, or when its directory is empty.
  • flake_holder lists the open PRs held by a flaky gate, up to 1000.
  • finding_guard, baseline_guard, freeze_gate, flow_alarm (the hook's gh call times out after 10s, with a notice) and prevention_lint (matches whole header names).
  • Quarantine needs a ticket and has a cap. The merged-but-not-wired check has an allowlist.

Skipped as already covered: top-3 build order when everything is P0 (queue_guard.py), and the dedupe hook for issue creation (file_finding.py).

Verification

  • scripts/ci-tests.d/peer-lessons-batch.sh runs reply_cap 19/19, fitness_tick 6/6, flow_alarm 10/10, prevention_lint 7/7, flake_holder 4/4 and hermetic lint 5/5.
  • Full bash scripts/run-ci-tests.sh on this head, run locally before the index regen: the only failure was low-context-index (stale generated INDEX). After the regen, skill_index.py --check passes, as does low-context-index.sh.
  • Size ratchet against 9aee410 passes.
  • Independent review: findings 1, 2, 5, 6 and 9 are fixed. The remaining yellows (stricter has_caller, baseline_guard defaults, wired_check allowlist breadth, a fail-closed push/merge hook for freeze_gate, one canonical doctrine reference) are queued for the next wave.

Supersedes #2095: raises the measured agentic-delivery index lookup budget by 1000 bytes for the nine new script rows (measured 21360), rebased on main with INDEX regenerated.

🤖 Generated with Claude Code

…tick, flake_holder, finding_guard, baseline_guard, freeze_gate, flow_alarm, prevention_lint, quarantine ticket/cap, merged-not-wired allowlist

Skipped as already covered: top-3 build order when everything is P0 (queue_guard.py ranked top-N), dedupe hook for issue creation (file_finding.py, now hook-enforced). Review fixes: reply_cap yields only to an existing executable hook, fitness_tick alarms on an empty dir, flow_alarm hook gh timeout 10s with notice, prevention_lint matches whole header names, flake_holder lists up to 1000 PRs.

Tests: new per-feature files run via scripts/ci-tests.d/peer-lessons-batch.sh (reply_cap 19/19, fitness_tick 6/6, flow_alarm 10/10, prevention_lint 7/7, flake_holder 4/4, hermetic lint 5/5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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