docs: add PMM transformation rules as operational rulebook#280
Merged
netkeep80 merged 3 commits intonetkeep80:mainfrom Apr 18, 2026
Merged
docs: add PMM transformation rules as operational rulebook#280netkeep80 merged 3 commits intonetkeep80:mainfrom
netkeep80 merged 3 commits intonetkeep80:mainfrom
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: netkeep80#277
Introduces `docs/pmm_transformation_rules.md`, the canonical operational rulebook governing how PMM may be transformed. It complements — and does not duplicate — `pmm_target_model.md`. The document fixes: 1. Allowed issue types (kernel-hardening, kernel-compaction, extraction-prep, governance/repo-guard, docs-comments-cleanup). 2. Atomic issue rule — one issue = one intent, one PR = one reason. 3. No mixed PR rule — kernel/docs/packaging/generated/governance must not be combined in a single PR. 4. Extraction-first rule — upper-layer concerns do not grow into PMM. 5. Surface compression rule — non-positive surface delta by default; increases allowed only as declared surface debt. 6. Source/generated separation rule — `single_include/**` regenerations stay isolated from kernel and governance changes. 7. Text discipline rule — every new doc has a canonical place and a clear purpose; no process-noise accumulation. 8. PR review semantics — contract conformance ranks above local code quality. Fixes netkeep80#277 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
Author
Solution summaryPR #280 is ready for review with all checks passing: #280 What shipped:
CI: Docs consistency ✓, Version consistency ✓, repo-guard advisory ✓. This summary was automatically extracted from the AI working session output. |
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $1.100235📊 Context and tokens usage:Claude Opus 4.7:
Total: (56.4K + 1.1M cached) input tokens, 8.6K output tokens, $1.099614 cost Claude Haiku 4.5:
Total: 516 input tokens, 21 output tokens, $0.000621 cost 🤖 Models used:
📎 Log file uploaded as Gist (694KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Contributor
Author
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
This reverts commit 507ec3d.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds one new canonical top-level document —
docs/pmm_transformation_rules.md— that fixes the operational rules for transforming PMM and makes controlled development the default mode of work.The document is intentionally short and normative: it complements pmm_target_model.md without restating it, and it gives subsequent issues, PRs, reviews, and future repo-guard policy a single place to cite.
Fixes #277
Change Contract
Surface delta
docs/pmm_transformation_rules.md)docs/index.md— one index row)single_include/**not modified)Document sections
Per the issue contract,
docs/pmm_transformation_rules.mdcontains exactly the required rules:kernel-hardening,kernel-compaction,extraction-prep,governance/repo-guard,docs-comments-cleanupsingle_include/**regenerations stay isolated from kernel/governance PRsVerification
docs/(scope respected)include/,tests/,single_include/,scripts/,.github/,repo-policy.json, orREADME.mdpmm_target_model.md; adds only operational rulesdocs/pmm_transformation_rules.mdGovernance notes
Following the precedent from #276, this PR does not bump the
README.mdversion badge. The README is release-owned surface and out of scope per the issue contract; the0.55.xdrift betweenCMakeLists.txtandREADME.mdonmainis a pre-existing concern for a separate governance PR.No changelog fragment is added:
scripts/check-changelog-fragment.shexempts docs-only PRs, and the issue explicitly forbids changes outsidedocs/pmm_transformation_rules.mdand a minimal docs index entry.repo-policy.jsonis deliberately not updated — the issue places it in the forbidden scope. Promoting the new document intocanonical_docscan happen in a follow-up governance PR.Test plan
docs/onlygit diff --statmatches declared surface delta🤖 Generated with Claude Code