Add a docs and ADR generator grounded in code

Aperta
#63 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
12/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
markdown, rust

Direzione di ricerca

This is a design proposal, not a scoped task: the payload names a docs workflow, a docgen tool with readme, api, adr and check subcommands, and a docs/adr/NNNN-<slug>.md output path. Start by reading how the harness already labels untrusted repository content and requires evidence for security findings, since the citation rules should follow that pattern. Done would mean an agreed design for the approval-diff flow and the citation format, followed by one subcommand, such as docgen adr, that passes the acceptance criteria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: docs area: tools enhancement priority: P2

Problem

Documentation drifts because writing it is a separate task. The model can summarize a file, but it has no procedure for producing a README section, an ADR, or API docs that cite the code they describe. It invents endpoints, options and defaults.

Aider, Claude Code and OpenHands all support documentation tasks; none of them make citations a requirement. The harness already labels repository content as untrusted and requires evidence for security findings; docs should meet a similar bar.

Inspiration

  • Claude Code document skills: structured, template-driven output.
  • Aider's repo map for locating symbols.
  • Architecture Decision Records (ADR) as a small, reviewable format.

Proposal

Add a docs workflow and a docgen tool:

  • docgen readme - propose missing sections (install, usage, configuration, architecture) from the actual files; cite path:line for every factual claim.
  • docgen api - extract public symbols and signatures; mark undocumented ones; never invent a parameter default.
  • docgen adr <title> - create docs/adr/NNNN-<slug>.md with Context, Decision, Alternatives, Consequences; require the decision text from the user or session, not the model.
  • docgen check - find broken links, stale version numbers, commands that no longer exist, and code blocks that fail to parse.
  • All outputs are proposals: show the diff and require approval before writing.

Acceptance criteria

  • Every generated factual claim has a path:line citation.
  • An undocumented symbol is marked, not guessed.
  • ADR numbering is monotonic and does not overwrite an existing file.
  • docgen check detects a stale command and a broken relative link.
  • No file is written without an approved diff.
  • The workflow refuses when the repository has no license or version to cite.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.