Repository navigation
Drop the Plan Job's "First" Claim and Set -eu in the Husky Snippet - #1680
Conversation
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
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change updates three workflow documentation locations to remove “first” from the ChangesWorkflow documentation
Pre-commit hook
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to 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)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
🟢 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
planjob in the Release Model text (and the corresponding D4.1 guarantee) while preserving the intended semantics. - Added
set -euto the POSIXshHusky pre-commit snippet to match the documented shell-safety contract. - Regenerated the distributed
workflow-ci-contractreference 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.
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.mdD4.1 and section 3's "Release Model" both opened with "a firstplanjob (publish-plan-task.yml) decides once". This repository's own.github/workflows/publish-release.ymlrunsassert-dispatch-reffirst andplandeclaresneeds: [ assert-dispatch-ref ], so "first" was false of the hub while true of every shipped caller stub, whose dispatch-ref assertion lives insidepublish-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
mainordevelopto fail fast, andGOVERNANCE.md"Workflow YAML Conventions"'s validate-at-entry bullet already requires that assertion be a job of its own that later jobsneeds:, 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'sreferences/architecture.mdandreferences/d-guarantees.mdare regenerated into all three distributions.#1674: the Husky snippet carried no
setlinecatalog/snippets/husky/pre-commitis#!/bin/shand carried nosetline at all, whileGOVERNANCE.md"Workflow YAML Conventions"'s "Shells" bullet states the POSIX exception explicitly, a deliberately POSIX#!/bin/shsurface "takesset -eu, dropping-Eandpipefail, whichshdoes not carry", and this repository's own.husky/pre-commitcarries 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 -eunow sits below thehusky.shsource 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, anddocker_lint.pyfor markdownlint, editorconfig-checker, shellcheck, and shfmt.Settles #1675 and #1674. The closing keywords sit on the commit and on the
develop -> mainpromotion pull request rather than here, since GitHub registers them only against the default branch.Summary by CodeRabbit
Documentation
Chores