Skip to content

Drop the Plan Job's "First" Claim and Set -eu in the Husky Snippet - #1680

Merged
ptr727 merged 1 commit into
developfrom
feature/plan-first-husky-set-eu
Sep 18, 2026
Merged

ptr727 merged 1 commit into
developfrom
feature/plan-first-husky-set-eu

Conversation

@ptr727

@ptr727 ptr727 commented Sep 18, 2026 •

Copy link
Copy Markdown
Owner

Two pre-existing defects the local adversarial passes found while #1673 was in flight, filed rather than folded into it. They share no file, so one pull request carries both.

#1675: the plan job is not first

WORKFLOW.md D4.1 and section 3's "Release Model" both opened with "a first plan job (publish-plan-task.yml) decides once". This repository's own .github/workflows/publish-release.yml runs assert-dispatch-ref first and plan declares needs: [ assert-dispatch-ref ], so "first" was false of the hub while true of every shipped caller stub, whose dispatch-ref assertion lives inside publish-plan-task.yml's own decide step.

The maintainer's recorded answer was to drop the word rather than name the entry job. D2.3 already requires a dispatch from any ref other than main or develop to fail fast, and GOVERNANCE.md "Workflow YAML Conventions"'s validate-at-entry bullet already requires that assertion be a job of its own that later jobs needs:, so neither needs D4.1 to name it, and a name in the contract is a name the contract then has to keep in step as a job list changes.

workflow-ci-contract's references/architecture.md and references/d-guarantees.md are regenerated into all three distributions.

#1674: the Husky snippet carried no set line

catalog/snippets/husky/pre-commit is #!/bin/sh and carried no set line at all, while GOVERNANCE.md "Workflow YAML Conventions"'s "Shells" bullet states the POSIX exception explicitly, a deliberately POSIX #!/bin/sh surface "takes set -eu, dropping -E and pipefail, which sh does not carry", and this repository's own .husky/pre-commit carries it. The snippet is the template a downstream repository copies, so every repository adopting the hook from the catalog started out of line with the rule while the hub itself conformed.

set -eu now sits below the husky.sh source line, with no other change to the snippet.

Verification

Local gate set clean on the branch: prose_lint.py --diff, repo_gate.py --check eol, spec/validate.py, build_dist.py --check, and docker_lint.py for markdownlint, editorconfig-checker, shellcheck, and shfmt.

Settles #1675 and #1674. The closing keywords sit on the commit and on the develop -> main promotion pull request rather than here, since GitHub registers them only against the default branch.

Summary by CodeRabbit

  • Documentation

    • Clarified release workflow documentation to describe the planning step without implying it is the first job.
    • Updated related workflow guarantees and architecture guidance for consistent terminology.
  • Chores

    • Strengthened pre-commit checks so failures and unset variables stop execution immediately, improving reliability of local validation.

Two pre-existing defects found by the local adversarial passes during #1673
and filed rather than folded into it. They share no file.

WORKFLOW.md D4.1 and section 3's "Release Model" both called the plan job
first. This repository's own publish-release.yml runs assert-dispatch-ref
ahead of it, and plan declares needs on that job, so "first" was false of the
hub while true of every shipped caller stub. The recorded answer was to drop
the word rather than name the entry job, since D2.3 and GOVERNANCE.md's
validate-at-entry bullet already cover it and a name in the contract is a name
the contract then has to keep in step. The workflow-ci-contract references are
regenerated into all three distributions.

catalog/snippets/husky/pre-commit carried no set line, while this repository's
own .husky/pre-commit carries set -eu and GOVERNANCE.md "Workflow YAML
Conventions" states that a deliberately POSIX sh surface takes set -eu. The
snippet is what a downstream repository copies, so every repository adopting
the hook from the catalog started out of line with the rule.

Fixes #1675
Fixes #1674
Copilot AI lite review requested due to automatic review settings September 18, 2026 14:31
@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 48f536a6-b44b-454f-9587-9988983f4560

📥 Commits

Reviewing files that changed from the base of the PR and between cbd47bb and aa1d6e9.

⛔ Files ignored due to path filters (5)
  • .claude-plugin/fleet-skills/.source-digests/workflow-ci-contract is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/architecture.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/workflow-ci-contract/references/architecture.md is excluded by !.github/skills/**
  • .github/skills/workflow-ci-contract/references/d-guarantees.md is excluded by !.github/skills/**
📒 Files selected for processing (4)
  • .agents/skills/workflow-ci-contract/references/architecture.md
  • .agents/skills/workflow-ci-contract/references/d-guarantees.md
  • WORKFLOW.md
  • catalog/snippets/husky/pre-commit

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The change updates three workflow documentation locations to remove “first” from the plan job description. It also adds strict error and unset-variable handling to the pre-commit hook.

Changes

Workflow documentation

Layer / File(s) Summary
Plan job wording
.agents/skills/workflow-ci-contract/references/architecture.md, .agents/skills/workflow-ci-contract/references/d-guarantees.md, WORKFLOW.md
The documentation now describes the plan job without the word “first”. The described gating behavior remains unchanged.

Pre-commit hook

Layer / File(s) Summary
Strict pre-commit execution
catalog/snippets/husky/pre-commit
The hook now uses set -eu, so command failures and unset variables stop execution.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to aa1d6

The PR clarifies workflow documentation and strengthens pre-commit failure handling without an identified merge-blocking issue.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes both primary changes: removing the plan job's "first" claim and adding set -eu to the Husky pre-commit snippet.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Sep 18, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are narrowly scoped, correct the documented contract to match actual workflow behavior, and update the Husky snippet in a way consistent with the repository’s stated POSIX sh requirements.

Pull request overview

Aligns the workflow contract documentation and distributed skill references with the hub’s actual release workflow ordering, and brings the Husky pre-commit snippet into conformance with the stated POSIX sh safety requirements.

Changes:

  • Removed the inaccurate “first” claim about the plan job in the Release Model text (and the corresponding D4.1 guarantee) while preserving the intended semantics.
  • Added set -eu to the POSIX sh Husky pre-commit snippet to match the documented shell-safety contract.
  • Regenerated the distributed workflow-ci-contract reference copies and updated the fleet-skills source digest.
File summaries
File Description
WORKFLOW.md Drops the incorrect “first plan job” wording in the Release Model + D4.1 guarantee.
catalog/snippets/husky/pre-commit Adds set -eu to the template hook for POSIX sh strictness.
.agents/skills/workflow-ci-contract/references/d-guarantees.md Updates the source reference text for D4.1 to match WORKFLOW.md.
.agents/skills/workflow-ci-contract/references/architecture.md Updates the source reference Release Model paragraph to match WORKFLOW.md.
.github/skills/workflow-ci-contract/references/d-guarantees.md Regenerated distribution copy reflecting the updated D4.1 text.
.github/skills/workflow-ci-contract/references/architecture.md Regenerated distribution copy reflecting the updated Release Model text.
.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/d-guarantees.md Regenerated fleet-skills copy reflecting the updated D4.1 text.
.claude-plugin/fleet-skills/skills/workflow-ci-contract/references/architecture.md Regenerated fleet-skills copy reflecting the updated Release Model text.
.claude-plugin/fleet-skills/.source-digests/workflow-ci-contract Updates digest to reflect the regenerated fleet-skills content.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 merged commit 5de7af3 into develop Sep 18, 2026
9 checks passed
@ptr727
ptr727 deleted the feature/plan-first-husky-set-eu branch September 18, 2026 14:40
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.

2 participants