Skip to content

feat: v6.3.0 pipeline hardening — auth/authz bug-class, pr-monitoring pattern, completion trust-boundary, hook stdout-JSON discipline, reminder dedup (#41/#58/#59/#60/#61)#62

Merged
intel352 merged 21 commits into
mainfrom
feat/pipeline-hardening-4issues-v6.3.0
Jun 1, 2026
Merged

feat: v6.3.0 pipeline hardening — auth/authz bug-class, pr-monitoring pattern, completion trust-boundary, hook stdout-JSON discipline, reminder dedup (#41/#58/#59/#60/#61)#62
intel352 merged 21 commits into
mainfrom
feat/pipeline-hardening-4issues-v6.3.0

Conversation

@intel352
Copy link
Copy Markdown
Contributor

@intel352 intel352 commented Jun 1, 2026

Summary

v6.3.0 pipeline-hardening release closing 5 recurring gate-miss / context-waste issues (one coherent PR, full pipeline: 3 design + 2 plan adversarial cycles, alignment PASS, scope locked, two-stage review APPROVED).

Closes #41, #58, #59, #60, #61.

Design / Plan / ADR

  • Design: docs/plans/2026-06-01-pipeline-hardening-4issues-design.md (adversarial PASS @ cycle 3)
  • Plan: docs/plans/2026-06-01-pipeline-hardening-4issues.md (plan-phase PASS @ cycle 2; alignment PASS; scope locked)
  • ADR 0003Implement-N completion is a lead-verified trust boundary, not a hook-blocked invariant (the hard-block is infeasible).

Changes

Verification

  • tests/hook-stdout-discipline.sh — 0 failures (4 cases: warning+block-JSON recovered, noise→stderr, clean passthrough, jq-absent passthrough).
  • tests/hook-contracts.sh — all pass (real hooks through the new wrapper; pretool-pr-review-reminder: emit gh-version/Copilot guidance once per session, not per PR #61 dedup/reset/false-positive/no-transcript).
  • tests/skill-content-grep.sh / skill-cross-refs.sh / version-check.sh — PASS.
  • Two-stage code review APPROVED (fixed grep -vxF full-line diagnostic routing + atomic marker rewrite).

🤖 Generated with Claude Code

Jon Langevin added 16 commits June 1, 2026 01:04
… I2 jq-absent test + I3 trap/no-transcript + m1)
Copilot AI review requested due to automatic review settings June 1, 2026 05:52
Comment thread .github/workflows/hooks-check.yml Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

v6.3.0 “pipeline hardening” release that addresses recurring autonomy pipeline issues by strengthening hook robustness (stdout JSON discipline), reducing repeated reminder noise (session dedup + reset), and documenting new review/process guardrails (auth/authz chain composition, CI wait pattern, completion trust boundary). It also adds CI coverage for hook regression tests and bumps plugin version + release notes.

Changes:

  • Harden hooks/run-hook.cmd to emit valid-JSON-or-empty on stdout (recover block JSON behind warnings) + add a dedicated stdout-discipline regression test.
  • Add once-per-session dedup for pretool-pr-review-reminder, reset on pre-compact-snapshot, and expand hook contract tests accordingly.
  • Document new plan-phase auth/authz chain-composition bug-class, pr-monitoring CI-wait polling pattern, and Implement-N completion trust boundary; add CI workflow to run hook tests; bump to 6.3.0 with release notes.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/hook-stdout-discipline.sh New regression test verifying wrapper stdout JSON discipline and jq-absent passthrough.
tests/hook-contracts.sh Adds contract coverage for pr-review reminder dedup + post-compaction reset behavior.
skills/subagent-driven-development/SKILL.md Documents “completion is not trusted until lead-verified” trust boundary.
skills/pr-monitoring/SKILL.md Documents host-scoped, sanctioned CI-wait polling pattern (bash loop vs background agent).
skills/adversarial-design-review/SKILL.md Adds plan-phase auth/authz chain-composition bug-class row.
RELEASE-NOTES.md Adds v6.3.0 release notes summarizing the hardening changes.
hooks/run-hook.cmd Captures hook stdout and enforces valid-JSON-or-empty output when jq is available.
hooks/pretool-pr-review-reminder Adds quote-stripped matching and once-per-session reminder dedup marker.
hooks/pre-compact-snapshot Clears pr-reminder marker for the current session prior to early-exit, enabling re-emit post-compaction.
docs/plans/2026-06-01-pipeline-hardening-4issues.md.scope-lock Adds scope-lock hash for the v6.3.0 plan.
docs/plans/2026-06-01-pipeline-hardening-4issues.md Adds implementation plan detailing tasks, verification, and rollout.
docs/plans/2026-06-01-pipeline-hardening-4issues-design.md Adds design doc covering goals, non-goals, and rationale/ADR references.
decisions/0003-implement-n-completion-trust-boundary.md Adds ADR documenting why completion is a trust boundary (lead verification) vs hook-enforced invariant.
agents/team-conventions.md Updates role rules for Implement-N completion discipline + lead verification gate.
.github/workflows/hooks-check.yml Adds CI workflow intended to run hook contract + stdout-discipline tests on relevant changes.
.cursor-plugin/plugin.json Version bump to 6.3.0.
.claude-plugin/plugin.json Version bump to 6.3.0.
.claude-plugin/marketplace.json Version bump to 6.3.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +9 to +24
pull_request:
paths:
- 'hooks/**'
- 'tests/hook-contracts.sh'
- 'tests/hook-stdout-discipline.sh'
jobs:
hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
- name: Hook contract tests
run: bash tests/hook-contracts.sh
- name: Hook stdout discipline tests
run: bash tests/hook-stdout-discipline.sh
Comment thread .github/workflows/hooks-check.yml Fixed
Copilot AI review requested due to automatic review settings June 1, 2026 06:04
@intel352
Copy link
Copy Markdown
Contributor Author

intel352 commented Jun 1, 2026

Review addressed in c19accf:

  • CodeQL (no permissions): added an explicit permissions: contents: read block. ✅
  • Copilot (pull_request path filter): added .github/workflows/hooks-check.yml to the pull_request.paths so changes to the workflow itself trigger it on PRs. ✅
  • Copilot (jobs: indented under on: → invalid YAML): respectfully not actioned — jobs: is at column 0 (top-level) and the workflow ran green on this PR (9/9 checks, the hooks jobs passed), which is direct evidence the YAML is valid. python3 -c 'yaml.safe_load(...)' also parses it clean.

@intel352 intel352 merged commit c556629 into main Jun 1, 2026
8 of 9 checks passed
@intel352 intel352 deleted the feat/pipeline-hardening-4issues-v6.3.0 branch June 1, 2026 06:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

PreCompact hook can emit invalid JSON

3 participants