forked from gronod/squeezelite-esp32
2.2 KiB
2.2 KiB
GOAL-003: Agent-Driven Documentation Linting in CI/CD
Status: active
Owner: unassigned
Last updated: 2026-02-12
Objective
Make documentation linting reliable and low-overhead by combining:
- upstream merge-gating markdown lint checks, and
- local LXD agent-driven document gardening loops.
Reference docs:
documentation/agents/ci_lane_contract.mddocumentation/agents/document_gardening.mddocumentation/agents/start_here.md
Scope
In scope:
- markdown lint contract and ownership by lane
- agent run instructions and evidence format
- progressive discovery pointers for docs work
Out of scope:
- product/firmware behavior changes
- non-doc CI jobs
Strategy
- Keep upstream lane authoritative for merge-gating doc lint.
- Use local lane for agent-powered doc cleanup and maintenance.
- Keep agent context small with route-based document discovery.
Workstreams
WS1: Upstream Doc Lint Gate
- Define lint target scope:
AGENTS.mddocumentation/**/*.md
- Define failure policy:
- lint failure blocks merge when docs change.
Acceptance:
- lane contract documents required lint command and blocking policy.
WS2: Local Agent Gardening Loop
- Standardize gardening task contract (prompt template + commands).
- Require before/after lint evidence in session output.
- Require board/handoff updates when status changes.
Acceptance:
- agents can run one reusable gardening flow with consistent output.
WS3: Progressive Context Discovery
- Keep one
start_hereroute document as first entry. - Route agents to one task-specific doc at a time.
- Avoid large up-front context loads.
Acceptance:
- docs in
documentation/agents/support stepwise discovery.
WS4: Reporting and Handoff Format
- Standardize lint report fields:
- scope
- command
- before errors
- after errors
- residual risk
- Record unresolved lint debt in short-term handoff when needed.
Acceptance:
- any agent can continue lint remediation from prior evidence.
Exit Criteria
documentation/agentsdocs consistently point to progressive startup.- Lint ownership is explicit per CI lane.
- Gardening sessions produce machine-usable and human-usable evidence.