Add 3 generators: service-registry, module HISTORY, dashboard (0.4.10)#40
Merged
Merged
Conversation
Three new GENERATED files filling the biggest gaps in the project-tier
derived view:
### 1. docs/service-registry.md (project-root)
- New render/service_registry.py
- Derives a table (id, path, default_branch, role, remote) from
.agent/git.yaml's repos: block. Replaces hand-written registries
that drifted out of sync with actual topology.
- Schema entry changed from KIND_FILE to KIND_GENERATED.
- Inherited reference in service-repo schema also marked GENERATED.
### 2. .agent/project/modules/<id>/HISTORY.md (per module)
- New render/module_history.py
- Cycle log: one block per cycle, newest first, with status badge
(passed QA / failed QA / contract frozen / dev handoff / negotiation
round / in progress), dates, sha, files-changed count, QA rationale.
- Answers "what's happened in this module?" without manually walking
the cycles/ tree.
- Schema entries added to project-root, single-repo, service-repo
tiers (CAT_CONTRACTS).
### 3. .agent/dashboard.md (project-tier)
- New render/dashboard.py
- Five sections: open contracts, pending QA, stalled (>14d),
doc staleness (>60d on canonical docs/*.md), recent activity (last
10 episodic events).
- Pure derived view; owns no state. Replaces the missing single-page
"is anything on fire?" answer.
- Schema entries added to project-root + single-repo;
service-repo inherits via ../.agent/dashboard.md.
### Wiring
- New render/derived.py::regenerate_derived_files() orchestrator with
fail-soft per-generator error handling (one failure never blocks
the others; failures land in .agent/log/).
- Called from:
· dotagent sync (after adapter regen)
· dotagent project regenerate (after SCOPE/CONTRACTS/brief)
· dotagent observe pre-commit (when docs/*.md changes, alongside
the existing adapter auto-regen)
### Tests (32 new)
- tests/render/test_service_registry.py — 6 tests
- tests/render/test_module_history.py — 10 tests
- tests/render/test_dashboard.py — 10 tests
- tests/render/test_derived_regen.py — 6 integration tests
(no-agent-dir / bare / git.yaml only / plan.yaml only / idempotent /
corrupt-yaml fail-soft)
Plus test_service_repo_child.py picks up ../.agent/dashboard.md as
a new inherited path.
### Docs
- docs/DERIVED_FILES_DESIGN.md — design rationale, source-of-truth
table, output guarantees (banners + rendered-at), schema
integration, known limitations.
Smoke-tested on the Aigent 3-repo layout (portal + backend + admin).
Full suite: 636 passed, 2 skipped.
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
Three new generators fill the biggest gaps in dotagent's derived-files set. All re-render on
dotagent sync,dotagent project regenerate, and the docs/-change auto-regen hook.1.
docs/service-registry.md(project-root)Derived from
.agent/git.yamlrepos:block. Replaces hand-written registries that drifted out of sync with topology. Schema entry changed fromKIND_FILE→KIND_GENERATED; service-repo's inherited reference updated accordingly.2.
.agent/project/modules/<id>/HISTORY.md(per module)Cycle log — one block per cycle, newest first, with status badges:
✓ Passed QA/✗ Failed QA/⏳ Contract frozen/⏳ Dev handoff/📝 Contract negotiation (N/M)/🟢 In progressPlus dates, sha, files-changed count (preview + truncate), QA rationale.
Answers "what's happened in this module?" without manually walking the
cycles/tree.3.
.agent/dashboard.md(project tier)Five sections, single page:
Wiring —
render/derived.py::regenerate_derived_files()Fail-soft orchestrator with try/except per generator. Called from
sync,project regenerate, andobserve pre-commit. Safe to call from any state (no .agent / no git.yaml / no plan.yaml — each generator no-ops independently).Test plan
tests/render/test_service_registry.py— 6 tests (empty / single repo / Aigent 3-repo / unset role / local remote / banner)tests/render/test_module_history.py— 10 tests (placeholders / in-progress / passed QA / failed QA / newest-first / cross-module / blocked / FEAT links / contract round / files truncation)tests/render/test_dashboard.py— 10 tests (empty zeros / open contract / closed-cycle exclusion / pending QA / stalled / fresh-not-stalled / doc staleness / fresh-doc-not-flagged / banner / empty activity)tests/render/test_derived_regen.py— 6 integration tests (no-agent / bare / git.yaml only / plan.yaml only / idempotent / corrupt-yaml fail-soft)Docs
docs/DERIVED_FILES_DESIGN.md— design rationale, source-of-truth table, output guarantees (banners + rendered-at timestamps), schema integration, known limitations.Version
0.4.9 → 0.4.10Generated by Claude Code