Skip to content

doc-weaver: Extend doc governance radar for Phase X documents#56

Draft
Copilot wants to merge 4 commits into
masterfrom
copilot/update-doc-governance-radar
Draft

doc-weaver: Extend doc governance radar for Phase X documents#56
Copilot wants to merge 4 commits into
masterfrom
copilot/update-doc-governance-radar

Conversation

Copilot AI commented Dec 11, 2025

Copy link
Copy Markdown

Summary

Extended doc governance radar to monitor Phase X documents and enforce "First Light" narrative guardrails. Prevents premature uplift claims, TDA enforcement claims without wiring, and Phase X language violations.

Strategic Impact

Differentiator Tag: [X] [NSF]

Strategic Value: Automated enforcement of documentation integrity prevents narrative drift and maintains research rigor claims for Phase X advancement.

Acquisition Narrative: Demonstrates systematic governance at documentation layer—radar enforces evidence requirements before claims can propagate, establishing credibility for subsequent phase gates.

Measurable Outcomes:

  • 4 critical violation types detected automatically
  • 16 test scenarios validate detection accuracy
  • 0 false positives on properly qualified statements
  • Exit codes compatible with existing radar infrastructure

Doctrine Alignment: Automation (self-enforcing governance), Formal Methods (declarative rules), Reliability (prevents documentation debt)

Scope

Type: [X] Feature [X] Quality Assurance [X] Documentation

Components Modified:

  • Scripts (operations, maintenance, exports)
  • Documentation (onboarding, runbooks, API reference)
  • Tests (unit tests, smoke tests, integration)

Files Changed:

  • scripts/radars/doc_governance_radar.py - New radar implementation with 4 detection rules
  • tests/test_doc_governance_radar.py - 16 tests covering all violation types
  • docs/DOC_GOVERNANCE_RADAR.md - Usage guide and CI integration instructions

Risk Assessment

Risk Level: [X] Low

Potential Impact:

  • No runtime impact—documentation only
  • CI can optionally enforce as blocking check
  • No breaking changes to existing systems

Rollback Plan:

  • Simple revert possible (isolated new files)

Test Plan

Unit Tests

python3 -m pytest tests/test_doc_governance_radar.py -v
# 16 passed in 0.08s

python3 scripts/radars/doc_governance_radar.py --repo-root . --output artifacts/drift
# Exit code 0 = PASS (no violations in current docs)

Test Results:

  • All existing tests pass
  • New tests added for new functionality
  • Coverage maintained or improved
  • Network-free test requirement met

Integration Testing

  • Radar scans actual repository without errors
  • Correctly detects violations in test documents
  • Generates JSON report and Markdown summary
  • Exit codes match radar semantics (0=PASS, 1=FAIL, 2=WARN, 3=ERROR, 4=SKIP)

Performance Testing (if applicable)

  • Scan completes in <1s for core documents
  • No memory issues with typical doc sizes

Conflict Watch

Files Also Modified by Other PRs: None

Coordination Notes:

  • No conflicts expected (new files only)

Checklist

Code Quality

  • Code follows project style guidelines
  • ASCII-only content in docs/scripts
  • No hardcoded secrets or credentials
  • Error handling implemented
  • Logging added where appropriate

Documentation

  • README updated (new doc added)
  • API documentation updated (usage guide)
  • Inline code comments added (detection rules documented)

Security

  • No sensitive data exposed
  • Input validation implemented (file path validation)
  • CodeQL scan: 0 alerts

Performance

  • No significant performance regression
  • Memory usage minimal (text scanning only)

Deployment

  • Environment variables documented (none required)
  • Configuration changes documented (optional CI integration)
  • Deployment instructions provided (standalone script)

Additional Notes

Detection Rules

Watchlist:

  • Core: README.md, docs/PHASE2_RFL_UPLIFT_PLAN.md, docs/RFL_PHASE_I_TRUTH_SOURCE.md
  • Phase X: docs/system_law/Phase_X_*.md, docs/CORTEX_INTEGRATION.md, docs/TDA_MODES.md

Violation Types:

  1. Premature Uplift Claims → FAIL

    ❌ "We proved uplift in experiments"
    ✅ "We demonstrated uplift (see P3/P4 evidence package)"
    ✅ "Results pending: integrated-run pending"
  2. TDA Enforcement Claims → FAIL

    ❌ "TDA enforcement live as of today"
    ✅ "TDA enforcement (not yet wired) planned"
  3. Phase X Language Violations → FAIL

    ❌ "P3 will run in real world conditions"
    ✅ "P3 is a synthetic wind tunnel environment"
    ❌ "P4 has control over the system"
    ✅ "P4 runs in shadow mode with no control authority"
  4. Substrate Alignment Claims → FAIL

    ❌ "The Substrate solves alignment completely"
    ✅ "The Substrate provides verification capabilities"

CI Integration Example

- name: Doc Governance Check
  run: |
    python3 scripts/radars/doc_governance_radar.py --repo-root . --output artifacts/drift
    if [ $? -eq 1 ]; then
      cat artifacts/drift/doc_governance_summary.md
      exit 1
    fi

Reviewer Notes:

  • Radar follows existing radar pattern (curriculum, telemetry, ledger, ht_triangle)
  • Exit code semantics maintained for CI compatibility
  • No false positives on properly qualified statements (validated in tests)
  • CodeQL scan clean (0 alerts)
Original prompt

3️⃣ Agent:
doc-weaver
(Doc Governance Radar)
Current: doc governance drift radar + CI workflow + PR comments.
Next: Point it at the new P3/P4 + safety/TDA docs.
✅ Follow-up prompt for
doc-weaver
STRATCOM: DOC ORDER — UPDATE RADAR FOR PHASE X.
Status: Document radar is operational; it guards First Light narrative.

Your next mission: Extend the radar to explicitly watch the new Phase X documents and Cortex/TDA claims.

  1. Watchlist update

Update your watchdog mode to include:
docs/system_law/Phase_X_Prelaunch_Review.md

docs/system_law/Phase_X_Divergence_Metric.md

docs/system_law/Phase_X_P3P4_TODO.md

docs/CORTEX_INTEGRATION.md

docs/TDA_MODES.md

  1. New rule: “No premature uplift/safety claims”

Add explicit rules:
Flag any text that:

Asserts uplift (“proved uplift”, “uplift achieved”, “uplift guaranteed”) without referencing:

P3/P4 evidence package, OR

“First Light complete”

Claims “TDA enforcement live” unless the TDA hooks are actually wired (you can key off specific phrases like “TDA is now the final arbiter” etc.).

  1. Phase X language checks

Add patterns to ensure:
P3 is always described as synthetic / wind tunnel

P4 is always shadow / no control authority

Substrate is never claimed to “solve alignment”

  1. Tests

Add 4–5 focused tests:
One doc with “uplift achieved” → FAIL

Same doc but with “integrated-run pending” → PASS

P3 described as “real world” → FAIL

P3 described as “synthetic wind tunnel” → PASS

Constraint: Maintain existing exit code semantics and summary output. You’re only extending rule coverage.

Custom agent used: doc-weaver
Maintains consistency across documentation and ensures phase boundaries are stated. Does NOT modify code or configs.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Dec 11, 2025
Copilot AI and others added 3 commits December 11, 2025 04:51
Co-authored-by: helpfuldolphin <230910712+helpfuldolphin@users.noreply.github.com>
Co-authored-by: helpfuldolphin <230910712+helpfuldolphin@users.noreply.github.com>
Co-authored-by: helpfuldolphin <230910712+helpfuldolphin@users.noreply.github.com>
Copilot AI changed the title [WIP] Update doc governance radar for Phase X doc-weaver: Extend doc governance radar for Phase X documents Dec 11, 2025
Copilot AI requested a review from helpfuldolphin December 11, 2025 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants