Repository navigation
feat(issue-body-contract): add the issue-body contract and generate the org issue forms from it - #986
Conversation
…he org issue forms from it contract.json is the one record of each issue type's fields, headings, required flags, floor labels and native type. issue-forms.mjs generates the org forms from it; CI fails when the committed forms drift. The sync materializes the forms and the contract into melodic-software/.github and the contract into the bugs and work-items plugins. The new agent-ready work-item form sets no native type, which also lets the community profile count the org issue templates again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe
…labels to the floor The contract now holds the body shape /work-items:decompose publishes as a type with no form, so decompose reads its headings from the same record. A form's labels must equal the floor labels exactly, so no form can apply a role label. Severity justification is required, as /bugs:write requires it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4127e037b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
The issue-tracker playbook said every form and every filing sets the Issue Type. The agent-ready work-item form sets none, and triage picks it, so the three passages now name that exception and link the issue-body contract that records why. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe
|
claude-security-review reviewed No security findings in this pull request. The PR touches 13 files, and I read all of them. The review followed the CI security-review criteria.
Not consulted: the instruction exception register, because no instruction was removed or narrowed. |
|
claude-review reviewed Code review: no findingsI read the full diff (13 files), the PR context, and the What I checked, by reading the code:
Unverified: the sandbox denied Closing issue: none. The PR states "No related issue", so there are no acceptance criteria to check. Observation, not counted: No manifest changes, no |
No related issue: owner-approved design (org issue and PR template interview, Q34 and Q36-Q38, 2026-11-11) ## Summary The org issue forms are now generated in `melodic-software/standards` from the issue-body contract and synced here with the contract beside them (#237). This adds the local drift check the design called for, and fixes the PR template's `Refs` example to the `Refs: #<issue>` form the PR body contract names. ## Fix - `.github/scripts/issue-form-drift.mjs` and its tests: compare each form in `.github/ISSUE_TEMPLATE/` to `.github/standards/issue-body-contract/contract.json` (name, native type, labels, and each field's id, kind, heading and required flag); report a form the contract does not declare and a declared form that is missing; skip `config.yml` and contract types with no form. Local files only, no network. - `pr-require-checks.yml`: new `check-issue-forms` job running the tests then the check. Advisory, like `check-pr-sections`: not in `ci-status` `needs:`. - `.github/PULL_REQUEST_TEMPLATE.md`: the Related example reads `Refs: #<issue-number>`. - `README.md`: the templates entry names the generated forms and where to change them, and the CI entry names the new lane. ## Verification - `node --test .github/scripts/issue-form-drift.test.mjs`: 7 pass. - `node .github/scripts/issue-form-drift.mjs` on this branch (main merged in, with #237's forms): `4 forms match .github/standards/issue-body-contract/contract.json`. - `node --test .github/scripts/pr-section-drift.test.mjs`: 27 pass. - Live community page, 4:29 PM EST: "Issue templates" now shows added on `claude-code-plugins`, `.github`, `standards` and `cursor-plugins` (it read "Not added yet" on all 11 public repos before #237). ## Related - melodic-software/standards#986 (the contract and generator) - #237 (the sync that delivered the forms) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
#988) No related issue: follow-up to #986 (owner-approved issue-body contract design) ## Summary #986 synced the issue-body contract into two plugin directories of `claude-code-plugins`. Its sync PR, melodic-software/claude-code-plugins#15429, cannot pass: `scripts/check-cross-plugin-source-drift.sh` refuses a file byte-identical across two plugins unless the same change registers it, and a registry entry cannot land first because the check also refuses an entry with fewer than two copies (STALE BASELINE). A sync PR cannot carry that registration. ## Fix - `sync-manifest.yml`: `issue-body-contract-bugs` and `issue-body-contract-work-items` become one component, `issue-body-contract-plugins`, delivering `contract.json` to `docs/contracts/issue-body/contract.json` in `claude-code-plugins`. That repository's `sync-shared-copies.sh` fans the canonical into each plugin's `reference/`, registered in the same change, as it already does for `docs/contracts/standards/README.md`. - The hosted managed-files guard lists the new destination instead of the two plugin paths. - The component README names the new path. ## Verification - `bash distribution/sync-manifest.sh validate`: valid, 52 components, 15 targets. - `components/managed-files-guard/managed-files-guard.test.sh`: passes. - In a `claude-code-plugins` checkout, a registry entry for `reference/issue-body-contract.json` without the copies fails `check-cross-plugin-source-drift.sh --check` with STALE BASELINE (exit 1), which rules out registering first. ## Related - #986 - melodic-software/claude-code-plugins#15429 (the sync PR this push refreshes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: owner-approved design (org issue and PR template interview, Q34 and Q36-Q38, 2026-11-11)
Summary
Adds one issue-body contract,
components/issue-body-contract/contract.json, holding per issue type (bug, feature, task, agent-ready work item) the fields, headings, required flags, floor labels and native issue type. The org issue forms are generated from it, and the sync delivers the forms plus the contract tomelodic-software/.githuband the contract to thebugsandwork-itemsplugins, so every surface that writes or checks an issue body reads one record.It also restores the community profile's "Issue templates" check. The live community page shows "Not added yet" for issue templates on all 11 public org repositories,
.githubincluded, although.githubholds the forms itself. Across 12 public repositories compared on 2026-11-11, the check failed exactly where every form sets a top-leveltype:key (ours since #22 in.github, commit 5d5509a) and passed wherever at least one form omitstype:or a Markdown template exists. The new agent-ready form sets no native type: triage picks Bug, Feature or Task. The generator refuses a contract where every type sets one.Fix
contract.json: the record. The bug form follows/bugs:write's five fields (steps, expected, actual, severity with justification, suggested fix location). The task form follows/work-items:track add's default headings (Context, Proposed work, Acceptance criteria, References). The agent-ready form follows the agent-brief fields. Every form applies only theneeds-triagefloor label;agent-readystays a triage decision, never applied by a public form.issue-forms.mjsgeneratesforms/*.yml(write) and fails when the committed forms drift from the contract (check);issue-forms.test.mjscovers the generator and the contract rules. Both run incheck-policies.sync-manifest.yml:issue-forms(four forms and the contract) formelodic-software/.github;issue-body-contract-bugsandissue-body-contract-work-itemsforclaude-code-plugins. Form file names are unchanged, so the sync PR updates in place and leaves no stale template;config.ymlstays owned by.github.Admission evidence (component lifecycle):
melodic-software/.github.github/ISSUE_TEMPLATE/;claude-code-plugins/bugs:writeand/work-items:track add,decompose,triage, whose follow-up PR reads the synced copies.claude-code-pluginsshows issue templates added. Rollback: revert this PR; the previous forms remain in.githubhistory.pr-body-contract-rule. Generation happens at authoring time, so the sync stays byte-exact with no transforms.yamldev dependency.Verification
npm run test:issue-forms: 8 tests pass.npm run lint:issue-forms: committed forms matchcontract.json.bash distribution/sync-manifest.sh validate: manifest valid, 53 components, 15 targets.components/managed-files-guard/managed-files-guard.test.sh: passes with the new paths.biome checkandmarkdownlint-cli2clean on the new files.Related
.githubPR adds the agent-ready form's local drift check and fixes the PR template'sRefs #example toRefs: #; theclaude-code-pluginsPR points the skills at the synced contract.files.issue_templatefield staysnullfor anyISSUE_TEMPLATE/directory (github/rest-api-description#7187), so the live community page is the acceptance check.🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q2ceZLXhTR4d1vkTCe