Repository navigation
audit: Governance Files Audit & Refactor – Phase 0 & 1 Specification Complete - #3368
ashleyshaw wants to merge 98 commits into
Conversation
…nsolidation threshold (70% overlap rule)
…nce validation approach
…(markdown in spec directory)
… approach (audit first, refactor second)
…ion conflict handling strategy
…026-09-17 clarifications (Q1-Q5)
…-17 clarifications from speckit-clarify
…ion, 70% consolidation threshold, 4-category reference validation, @ashley approval gate, two-phase approach - Add 'Two-Phase Execution Approach' section explaining Audit (Phases 1-8) → @ashley approval gate → Refactoring (Phases 9-11) - Update T043-T045 to explicitly create AUDIT_REPORT.md at spec directory with findings, severity categorization, and remediation guidance - Add 70% consolidation threshold reference (Q1) to US3 tasks (T061-T070) - Add 4-category reference validation scope (Q2) to US6 tasks (T107-T119) - Insert @ashley approval gate between Phase 8 and Phase 9 per Q4 two-phase decision - Add AUDIT_REPORT.md prerequisite and reference to Phase 9 All clarifications from 2026-09-17 session integrated while maintaining 196-task structure. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019E3o8kMV245fhywM3vwSKk
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Audit criteria and approval plan .github/specs/012-audit-governance-structure/spec.md, .github/specs/012-audit-governance-structure/research.md, .github/specs/012-audit-governance-structure/checklists/requirements.md, .github/specs/012-audit-governance-structure/tasks.md |
The specification clarifies audit requirements, finding categories, report contents, and conflict handling. The task plan separates audit and reporting from refactoring, with an approval gate before implementation. |
Audit findings and report status .github/specs/012-audit-governance-structure/AUDIT_REPORT.md, .github/specs/CATALOG.md, CHANGELOG.md |
The report records seven governance findings, reference validation, constitution alignment, audit methods, and an approval-gated follow-up plan. The catalog records specification 012 as in progress, and the changelog notes the report and pending refactoring. |
Specification maintenance
| Layer / File(s) | Summary |
|---|---|
Data-model conflict resolution .github/specs/002-coderabbit-config-improvements/data-model.md |
Conflict markers and alternative content are removed. The HEAD-side content remains. |
Agent and maintenance specification updates .github/specs/013-spec-folder-refactor/contracts/MAINTENANCE.md.contract, .github/specs/014-agents-restructure-consolidate/* |
The maintenance workflow steps are renumbered. The agent specification changes the JavaScript Jest test-folder convention to tests/, corrects a branch name, and adds spacing to the data model and research document. |
Markdown formatting
| Layer / File(s) | Summary |
|---|---|
Template and changelog formatting skills/claim-register-auditor/assets/evidence-needed-template.md, skills/faq-and-chatbot-source-curator/assets/chatbot-safe-faq-register-template.md, skills/launch-readiness-auditor/assets/page-qa-table-template.md, skills/redirect-map-planner/assets/current-url-inventory-template.md, skills/release-handoff-generator/assets/known-issues-register-template.md, skills/schema-and-ai-discoverability-planner/assets/faq-schema-map-template.md, skills/self-evolving-agent/CHANGELOG.md |
Six template footers change emphasis markers from underscores to asterisks. The self-evolving agent changelog adds spacing without changing its entries. |
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Other
Merge Risk: 
Low · previous review 3cdcb
-
The audit documents can proceed with bounded corrections, but their counts and follow-up plan should be aligned before they guide approval and implementation.
Architecture risk: 
Low · up to 3cdcb
-
The change affects 2 systems.
Changed systems:
skills,CHANGELOG.mdArchitecture concerns
No architecture-level concerns identified.Review details
-
Systems and components
- observed — skills (service) was modified; 7 changed files map to changed impact.
- observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in CHANGELOG.md: Added a changelog entry reporting the governance files audit’s 7 findings (1 critical duplicate and 5 major issues), the report’s review status, pending Phase 2 refactoring, and issue
#3368. - observed — Modified behavior in skills/claim-register-auditor/assets/evidence-needed-template.md: The automation attribution’s emphasis marker changed from underscore syntax to asterisk syntax.
- observed — Modified behavior in skills/faq-and-chatbot-source-curator/assets/chatbot-safe-faq-register-template.md: The maintained-by footer’s emphasis markers changed from underscores to asterisks.
- observed — Modified behavior in skills/launch-readiness-auditor/assets/page-qa-table-template.md: The footer attribution changed from underscore-based italics to asterisk-based italics.
-
🚥 Pre-merge checks | ✅ 5
-
✅ Passed checks (5 passed)
-
Check name Status Explanation 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. Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled. Title check ✅ Passed The title identifies the governance audit and the completed Phase 0 and 1 specification work, which matches the PR’s main changes.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.
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.
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
|
Tick the box to add this pull request to the merge queue (same as
|
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
- Updated Created date from 2026-04-20 to 2026-09-14 (actual creation date) - Updated Updated date from 2026-04-20 to 2026-09-18 (current session date) - Changed Phase status from Complete to InProgress (spec complete, implementation pending @ashley approval) - Ensures catalog accuracy for specification governance tracking Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019E3o8kMV245fhywM3vwSKk
PR Template RoutingBranch Type: This PR was automatically routed based on the branch naming strategy. |
Found by a CodeRabbit CLI pass over the whole PR and checked against the files first. - research.md said AUDIT_REPORT.md is generated in Phase 2, but spec.md puts the audit in Phase 1. It now says Phase 1 and lists every finding ID in the report catalog, keeping the older IDs. - tasks.md T005 to T007 and T185 pointed at specs/012-audit-governance-structure, which does not exist; the folder is .github/specs/012-audit-governance-structure. - The CATALOG.md entry for 012 had Updated 2026-09-14 although the spec folder changed since. CATALOG.validate and audit-specs pass. Points that need an audit decision are left for the author.
|
@ashleyshaw CodeRabbit's four threads on this PR are fixed and resolved (
I left |
Specification: Governance Files Audit & Refactor
Linked issues
Refs #45
Relates to #45 ([AI Ops] Audit and Align Governance Docs for AI Automation Standards, closed 2026-05-26), which is the audit this work answers. There is no open issue for specification 012 itself, so nothing is closed here.
Scope of Audit
This PR delivers Phase 0 & Phase 1 of the Governance Files Audit & Refactor (Spec 012):
Detailed Findings
Artifacts Created/Updated
spec.md (
.github/specs/012-audit-governance-structure/spec.md)research.md (
.github/specs/012-audit-governance-structure/research.md)checklists/requirements.md
data-model.md (Phase 1 Design) — already present on
developand not modified by this PRquickstart.md (Phase 1 Design) — already present on
developand not modified by this PRtasks.md (Phase 2: Task Decomposition)
Findings Summary
🔴 CRITICAL Issues
develop's AGENTS.md has one such section, at line 227, already titled "Label Creation Governance (CRITICAL) — Consolidated". The consolidation this finding asked for has already happened.ORG-001: Script organization rules in AGENTS.md
## Repository Scripts Organisation (CRITICAL)starts at line 52 and ends at line 104 (next##is at 105); the recorded range 52–102 was 2 lines short.DUPL-002: Duplicate branch naming guidance across CLAUDE.md and AGENTS.md
instructions/branch-naming.instructions.md— the resolution this finding asked for.REF-001: Incomplete reference (
.github/prompts/prompts.mdmarked "legacy pending migration")develop, and AGENTS.md line 308 still calls it "Legacy prompt index pending skills/cookbook migration". The marker is in AGENTS.md, not in the referenced file.Verification Tasks (VER-001)
Re-checked on 2026-10-04:
.github/instructions/branch-naming.instructions.md— ⬜ still absent (the portableinstructions/branch-naming.instructions.mdexists)docs/BRANCHING_STRATEGY.md,docs/PR_CREATION_PROCESS.md— ✅ both existinstructions/holds 48 entries in total, so "exactly 5 files" is true only of the consolidated set.github/projects/active/— ✅ exists.github/agentic-workflows/exists;.github/workflows/agentic/does notTwo-Phase Implementation Approach (Q4)
Phase 1 – Audit & Analysis (Phases 1–8):
Phase 2 – Refactoring & Implementation (Phases 9–11):
Clarifications Integrated (2026-09-17)
.github/specs/012-audit-governance-structure/AUDIT_REPORT.mdSuccess Criteria (SC-001 through SC-009)
These criteria describe both this phase and the Phase 2 refactoring. Only the audit-phase ones are met by this pull request, which touches no governance file at all (its 21 changed files are spec documents,
CHANGELOG.md,CATALOG.mdand skill asset templates).AUDIT_REPORT.mddevelopindependently of this PR (see Re-verification below)languages,documentation-formats,quality-assurance,automation,community-standards) exist ininstructions/Branch & Commits
audit/governance-files-refactorKeep Pull Request Currentmerges ofdevelopare counted)Known overlap
developalready carriesAUDIT_FINDINGS.md(181 lines) covering DUP-001, ORG-001, REF-001 and the branch-naming duplication. This PR addsAUDIT_REPORT.md(a longer treatment that also carries REF-002, MISSING-INST-001, WORKFLOW-001, PRIN-001 and CONST-001), so two audit documents now overlap. Consolidating them is a Phase 2 decision for @ashley; neither file was removed or rewritten here.Next Steps (Phase 2 – Implementation)
Changelog
Changed
CHANGELOG.md.Test plan
.github/specs/012-audit-governance-structure/spec.md.github/specs/012-audit-governance-structure/AUDIT_REPORT.mdandresearch.mdtasks.mdChecklist
Specification Quality ✅
Design Quality ✅
Task Decomposition ✅
- [ ] [ID] [P?] [US?] Description with file pathProcess Compliance ✅
audit/{scope}-{title}✓Commits ✅
audit/governance-files-refactordevelop){type}({scope}): {description}CI/CD & Quality ✅
Ready for Review
References
Summary by CodeRabbit