Skip to content

ci: adopt orieg/discipline v0.14.2 with agent hooks in observe mode - #61

Merged
orieg merged 3 commits into
mainfrom
claude/adopt-discipline-v0-14-1-e43611
Sep 27, 2026
Merged

orieg merged 3 commits into
mainfrom
claude/adopt-discipline-v0-14-1-e43611

Conversation

@orieg

@orieg orieg commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Adopt orieg/discipline v0.14.2.

  • .github/workflows/discipline.yml: action pinned to orieg/discipline@f251807952d0fb75e6b3a0a269edc96bf9a0d7b4 # v0.14.2; policy_from: base; directive_sources: pr-body,merged-pr-body; permissions: pull-requests: read so the push run can read the merged PR body.
  • Claude Code hooks in observe mode: .claude/settings.json (PostToolUse/Stop check, SessionStart bootstrap) and .claude/hooks/discipline-bootstrap.sh (installs the pinned, checksum-verified v0.14.2 release in cloud sessions). .gitignore now ignores .claude/* except those two paths.
  • Copilot hooks in observe mode: .github/hooks/discipline.json and .github/workflows/copilot-setup-steps.yml (install-only step pinned to the v0.14.2 commit).

Validation (discipline 0.14.2):

  • discipline self-test: 151 cases, 0 failed.
  • discipline replay --last 50 --ref origin/main: 35 passed, 15 blocked, 0 could not check; all 15 blocked changes are true positives (unpinned actions, deletions without removes:, AGENTS.md edit, version drift in feat(mcp): prepare official MCP Registry publishing #41/chore: bump version to 0.9.4 #43, a loosened timing assertion, a weakened workflow step, a new test dependency).
  • discipline check --base origin/main with this body: 0 errors, 0 warnings, 3 overrides.
  • discipline doctor: remaining FAIL is required-check (Discipline Sentinel is not a required status check).

allow-agent-instructions: .claude/settings.json adds discipline PostToolUse/Stop hooks in observe mode and a SessionStart bootstrap
allow-agent-instructions: .claude/hooks/discipline-bootstrap.sh installs the pinned, checksum-verified discipline release in Claude Code cloud sessions
allow-agent-instructions: .github/hooks/discipline.json adds discipline Copilot CLI agentStop/postToolUse hooks in observe mode

Pin the sentinel action to the v0.14.1 release commit, judge changes by the
base branch's discipline.toml (policy_from: base), and read override
directives from the PR body (and the merged PR body on push).

Add the Claude Code PostToolUse/Stop discipline hooks in observe mode plus the
cloud-session bootstrap script; un-ignore those two paths in .gitignore.
Pin the sentinel action to the v0.14.2 release commit and regenerate the
Claude Code bootstrap hook (pins v0.14.2; puts ~/.local/bin on PATH via
CLAUDE_ENV_FILE in cloud sessions).
… step

Written by discipline v0.14.2 hook install --agent copilot --observe
--cloud-agent. The setup step installs discipline, pinned to the v0.14.2 release
commit, before Copilot cloud agent starts.
@orieg
orieg merged commit a9e0b8d into main Sep 27, 2026
12 checks passed
@orieg
orieg deleted the claude/adopt-discipline-v0-14-1-e43611 branch September 27, 2026 19:02
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