test(maintenance): pin attune-author status output contract (task 1.6)#65
Merged
silversurfer562 merged 1 commit intoJun 15, 2026
Conversation
…k 1.6) attune-ai's dashboard parses 'attune-author status' to find stale help features. Confirmed the output format is unchanged and add a contract guard mirroring attune-ai's _parse_status_output, so a future format drift fails attune-author CI rather than silently breaking the dashboard (constraint C2). No production change needed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
e804529
into
claude/doc-automation-p1-report
13 checks passed
silversurfer562
added a commit
that referenced
this pull request
Jun 15, 2026
) * feat(maintenance): derived maintenance report + coverage (spec task 1.5) Adds an auditing view over the maintenance contract and closes the patch-coverage gaps from the Phase 1 PR (#63). - maintenance_contract.py: scan_maintenance() walks the corpus and resolves each page's mode; format_maintenance_report() groups by mode (manual/hybrid listed; auto omitted unless --all). Module at 100%. - cli.py: new 'attune-author maintenance-report [--all]' command. Kept separate from 'status' so the status output stays stable for attune-ai's parser (constraint C2). - Tests: scanner/formatter/CLI coverage, plus the previously-uncovered defensive branches (unbalanced regenerated fences, field carry no-ops, unreadable page) and an end-to-end generator test proving a hybrid region survives regeneration even under --overwrite. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * fix(maintenance): forward-slash paths in report for Windows portability format_maintenance_report now renders page paths via as_posix() so the report is identical across OSes (Windows was emitting backslashes, breaking the cross-platform CI matrix). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * test(maintenance): pin attune-author status output contract (spec task 1.6) (#65) attune-ai's dashboard parses 'attune-author status' to find stale help features. Confirmed the output format is unchanged and add a contract guard mirroring attune-ai's _parse_status_output, so a future format drift fails attune-author CI rather than silently breaking the dashboard (constraint C2). No production change needed. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Merged
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.
Phase 1, task 1.6 — status output contract
Stacked on #64 (base will auto-retarget to
mainonce #64 merges).attune-ai's dashboard shells out to
attune-author statusand parses the markdown to find stale help features (attune-ai/src/attune/ops/help_data.py::_parse_status_output). Task 1.6 = confirm that contract is intact and guard it.Findings
Verified attune-author's
statusoutput already satisfies the parser, unchanged:## Help Templatesh2 →### Staleh3 →| <feature-slug> | … |(slug is the first column)## Project Docsh2 is correctly excluded by the parser (regenerate doesn't touchdocs/)No production change needed.
Guard
Added
tests/test_status_output_contract.py— a faithful mirror of attune-ai's_parse_status_outputrun againstformat_status_reportoutput. If attune-author's format ever drifts in a way that breaks the dashboard parser, attune-author CI goes red (the two repos can't import each other, so the contract is pinned on this side). Verifies: stale help features parse out, current/Project-Docs features are excluded, and table header/divider rows aren't mistaken for features.Spec task 1.6 ✅. Remaining Phase 1: 1.7 (release attune-author).
🤖 Generated with Claude Code