Skip to content

ci(hooks): upgrade discipline to v0.14.4 and enforce agy hook - #64

Merged
orieg merged 1 commit into
mainfrom
claude/discipline-upgrade-hooks-setup-c51eb0
Sep 28, 2026
Merged

orieg merged 1 commit into
mainfrom
claude/discipline-upgrade-hooks-setup-c51eb0

Conversation

@orieg

@orieg orieg commented Sep 28, 2026

Copy link
Copy Markdown
Owner

What

Upgrade discipline from v0.14.2 to v0.14.4 and make the agent hooks enforce for all three agents.

  • .github/workflows/discipline.yml: action pinned to 410daf24d6bedc10b5ef8137de6ccb2dace767b4 (v0.14.4), version: v0.14.4.
  • .github/workflows/copilot-setup-steps.yml: Copilot cloud agent installs v0.14.4 (regenerated with discipline hook install --agent copilot --cloud-agent --upgrade).
  • .claude/hooks/discipline-bootstrap.sh: Claude Code cloud sessions install v0.14.4 (regenerated with discipline hook install --agent claude-code --upgrade).
  • .agents/hooks.json: --observe removed from the agy Stop hook, so agy enforces like Claude Code and Copilot since ci(hooks): enforce discipline agent hooks #63.

.claude/settings.json and .github/hooks/discipline.json are unchanged: they already match what v0.14.4 generates. A fresh discipline hook install (v0.14.4) for claude-code, copilot --cloud-agent and agy in an empty repo produces files identical to this branch's.

Evidence

Smoke test (discipline 0.14.4, throwaway worktree, one assertion deleted from tests/test_batch.py::test_batch_basic), each hook fed a Stop payload:

  • Claude Code: exit 2 with assertion-reduction/assertions-reduced.
  • Copilot: {"decision":"block", ...} with the same finding.
  • agy (payload shape of the recorded live Stop payload in discipline's src/hook.rs tests): {"decision":"continue", ...} with the same finding.

v0.14.4 release carries discipline-{x86_64,aarch64}-unknown-linux-musl.tar.gz and SHA256SUMS, which the cloud bootstrap downloads.

allow-agent-instructions: .agents/hooks.json removes --observe so the discipline agy Stop hook enforces
allow-agent-instructions: .claude/hooks/discipline-bootstrap.sh bumps the pinned discipline release installed in Claude Code cloud sessions to v0.14.4

no-issue: dependency bump of the discipline sentinel and agent hooks

Bump the CI sentinel, Copilot cloud-agent setup step, and Claude Code cloud
bootstrap to discipline v0.14.4 (commit 410daf24), regenerated with
`discipline hook install --upgrade`. Remove --observe from the agy Stop hook
so all three agents (Claude Code, Copilot, agy) enforce.
@orieg
orieg merged commit b87ac21 into main Sep 28, 2026
12 checks passed
@orieg
orieg deleted the claude/discipline-upgrade-hooks-setup-c51eb0 branch September 28, 2026 20:25
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