[DOCS] Document Mode B waiver formatting/merge-queue requirements and post-approval issue edits
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- bash, github-actions, markdown, node.js
- Domain
- documentation
Research direction
Two documentation edits only. In docs/src/content/docs/contributing/development-guide.md under Mode B, add the column-0 apm-spec-waiver: rule and the merge-queue note, checking them against tests/spec_conformance/mode_b_detector.sh and .github/workflows/spec-conformance.yml; in CONTRIBUTING.md under Scope record format, add the note that editing the issue body after approval triggers needs-evidence, per scripts/governance/run.cjs and authority.cjs. Done means both sections match those files and npm --prefix docs run build passes. Do not modify the scripts or workflow.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Contributors following the current contributing documentation can hit two undocumented governance/CI pitfalls:
-
Mode B
apm-spec-waiver:formatting and merge-queue behavior (docs/src/content/docs/contributing/development-guide.md)- The Development Guide currently states only: "add
apm-spec-waiver: <one-line rationale>to the PR body or a commit message." - In
tests/spec_conformance/mode_b_detector.sh, waivers are matched withgrep -E '^apm-spec-waiver:'. The line must start at column 0 — wrapping the waiver in backticks or prefixing it with bullets/text silently fails to match. - In
.github/workflows/spec-conformance.yml, the workflow runs on bothpull_requestandmerge_group, passingGH_PR_BODY: ${{ github.event.pull_request.body }}. Onmerge_group,github.event.pull_request.bodyis empty, so a waiver placed only in the PR body passes PR checks but ejects the PR from the merge queue unless it is also in a commit message.
- The Development Guide currently states only: "add
-
Editing the issue body after scope approval (
CONTRIBUTING.md)- The
Scope record formatsection states "Do not edit or delete decisions to change their meaning", which reads as applying only to the approval comment. - In
scripts/governance/run.cjs,changedIssueis set wheneverissuesorissue_commentfires witheditedordeleted, causingscripts/governance/authority.cjs(evaluateIssue) to reportneeds-evidence("A decision or its context was edited/deleted; obtain fresh human confirmation."). Contributors who tidy up the issue description after approval unexpectedly invalidate the advisory eligibility check.
- The
Both pitfalls surfaced while working on PR #2764 (for issue #3084).
Describe the solution you'd like
Document the existing behavior in the contributor docs (documentation-only clarification; no policy or script changes):
- In
docs/src/content/docs/contributing/development-guide.md(under Mode B (silent extension)):- State that
apm-spec-waiver: <one-line rationale>must appear at the start of a line (no backticks or leading punctuation). - State that because
merge_groupdoes not receive the PR body, the waiver must be included in a commit message (not only the PR body) to pass the merge queue.
- State that
- In
CONTRIBUTING.md(under Scope record format):- Note that editing the issue body after approval also triggers
needs-evidencein the eligibility check, so avoid editing the issue description once scope is approved.
- Note that editing the issue body after approval also triggers
How we'll know it works:
- Both sections match the current behavior of
tests/spec_conformance/mode_b_detector.sh,.github/workflows/spec-conformance.yml, andscripts/governance/{run,authority}.cjs, and the docs build (npm --prefix docs run build) passes cleanly.
Out of scope:
- Changing governance policy or modifying
tests/spec_conformance/mode_b_detector.sh,.github/workflows/spec-conformance.yml, orscripts/governance/*.cjs.
Expected benefit:
- Fewer surprise CI / merge-queue ejections on valid Mode B waivers and fewer accidental eligibility invalidations after scope approval.
Describe alternatives you've considered
- Changing the CI/governance scripts instead: Relaxing
mode_b_detector.sh(e.g., stripping formatting or looking up PR bodies onmerge_group) or narrowingchangedIssueinscripts/governance/run.cjswould require workflow/governance-script changes and security review. Documenting the current contract is minimal, accurate, and immediately helpful; script changes can still be considered separately if maintainers prefer.
Additional context
- Related references where these pitfalls surfaced: PR #2764, issue #3084.
- I am happy to open the docs PR once scope is approved.
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 430
- Avg merge
- 19h 38m
- Merged PRs (30d)
- 637
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/apm
-
bug status/accepted type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/apm#4925 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement status/accepted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
microsoft/apm#4075 · 4 comments ·
Maintainers usually reply within 1 day
-
[BUG] Claude command transform drops frontmatter keys Claude Code supports on commandsPossibly taken @abhishekacharya200 claimed this 7 days ago. Openarea/multi-target status/accepted theme/portability triage/recommended type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/apm#3067 · 2 comments ·
Maintainers usually reply within 1 day
-
needs-design
Difficulty 5/5 Over a week Newbie friendliness 15/100
Maintainers usually reply within 1 day
-
[BUG] apm approve <key> for a bundle saves the grant, then exits 1 when another trust layer still denies itPossibly taken @danielmeppiel claimed this today. Openbug status/accepted type/bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/apm#4933 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
sav-oss-org/ptusa_main#1610 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sagemathinc/sagebrush#1701 ·
Maintainers usually reply within 1 day
-
reasons-gate
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
benthomasson/reasonsforge#100 ·
Maintainers usually reply within 1 day