Skip to content

docs(agents): keep design records, index/check/archive them with tools/doc-tools - #4

Merged
ZheFeng7110 merged 2 commits into
mcpplibs:mainfrom
ZheFeng7110:docs/agents-records
Nov 8, 2026
Merged

ZheFeng7110 merged 2 commits into
mcpplibs:mainfrom
ZheFeng7110:docs/agents-records

Conversation

@ZheFeng7110

Copy link
Copy Markdown
Collaborator

Summary

  • Design records under .agents/docs/ are append-only: no more deleting old records in favour of a summary. Past years' records that are not active move to .agents/docs/archive/<YYYY>/; .agents/docs/README.md is generated from the records.
  • Records dated 2026-11-08 or later declare subject / status (and superseded_by when superseded) in front matter. The 20 older records are not rewritten; they are indexed by date and title and exempt from the checks.
  • .agents/plan/ is merged into .agents/docs/ (moved with the new move_record.py, which rewrote the reference in 2026-09-19-mingw-sysroot-bootstrap.md). .agents/ now holds only docs/ and skills/.
  • 2026-09-08-consolidated-design.md: the commit 03f6161 holding the deleted documents does not exist in this repository (history starts 2026-10-26); link it in the old repository ZheFeng7110/boost-module.
  • New tools/doc-tools/: records.py (shared), gen_index.py (--check), check_docs.py (layout, naming, front matter, index freshness, links, user docs do not cite .agents/), move_record.py, archive_records.py, plus unit tests. Standard library preferred (third-party packages go in tools/pyproject.toml); paths and line endings are Windows-safe.
  • New workflow .github/workflows/check-docs.yml (Linux, Python 3.11), separate from verify-scripts.yml; triggers only on .agents/**, docs/**, README*.md, tools/doc-tools/**.
  • Rationale and alternatives: .agents/docs/2026-11-08-design-records-management-design.md.

Test plan

  • python3 -m unittest discover -s tools/doc-tools/tests (13 tests)
  • python3 tools/doc-tools/check_docs.py
  • python3 tools/doc-tools/archive_records.py --dry-run --today 2027-01-02 lists the 2026 records
  • CI Check Documents green (Python 3.11)

…e them with tools/doc-tools

- .agents/docs/: records are append-only. Past years' records that are not
  active move to archive/<YYYY>/; README.md is generated from the records.
  Records dated 2026-11-08 or later declare subject and status in front
  matter; the 20 older ones are indexed by date and title, not rewritten.
- .agents/plan/ is merged into .agents/docs/ (moved with move_record.py,
  which rewrote the reference in the mingw sysroot record); .agents/ holds
  only docs/ and skills/.
- consolidated-design: the commit holding the deleted documents is not in
  this repository; link it in the old repository ZheFeng7110/boost-module.
- tools/doc-tools/: records.py (shared), gen_index.py, check_docs.py,
  move_record.py, archive_records.py and their tests; standard library only,
  path- and line-ending-safe on Windows.
- .github/workflows/docs.yml: runs the tests and check_docs.py on Linux,
  separately from verify-scripts.yml.
- Design record: 2026-11-08-design-records-management-design.md.
… is preferred, not required, for tools/doc-tools

- .github/workflows/docs.yml -> check-docs.yml, including its own path filter.
- The design record, the workflow comment and records.py state that a
  third-party package is allowed when declared in tools/pyproject.toml.
@ZheFeng7110
ZheFeng7110 merged commit 798b0dd into mcpplibs:main Nov 8, 2026
30 of 37 checks passed
@ZheFeng7110
ZheFeng7110 deleted the docs/agents-records branch November 8, 2026 11:46
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.

1 participant