docs: fix API accuracy across user-guide, configuration, and library-api
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- documentation
Research direction
Start with docs/user-guide.md, docs/configuration.md, docs/library-api.md, and docs/README.md, checking each claim against the Rust sources listed in the issue, especially the application result types, validation rules, frontmatter, CLI handlers, and wiki renderer. Done means the examples, field types, validation behavior, exit codes, generated filenames, and update date match those sources; review the referenced workflow bundle because the changes are already prepared there.
Written by the indexing model from the issue text.
Description
[!CAUTION]
Protected files were modified in this change.
This pull request is inrequest_reviewmode and requires explicit human scrutiny before merge.Protected files:
README.md
What
Corrects multiple documentation inaccuracies found by diffing the published docs against the actual Rust source code.
Changes
docs/user-guide.md
- Library usage example —
with_theme("dark")→with_theme(Theme::Dark)(with correctuseimport);with_theme()accepts aThemeenum, not a string - Validation required fields — removed
status; it has#[serde(default)]and defaults toProposedwhen absent or unrecognized — it is never an error - Validation recommended fields — removed
authorandtags;RecommendedFieldsRuleonly checksdescription,created, andcategory - Exit codes — removed non-existent exit code
2;handle_validatereturns0(pass) or1(fail), never2 - Wiki generated pages — replaced
Home.md/ADR-XXXX.md/Status-Index.md/Category-Index.md/Timeline.mdwith the real output:ADR-Index.md,ADR-By-Status.md,ADR-By-Category.md,ADR-Timeline.md,ADR-Statistics.md, plus copied ADR source files
docs/configuration.md
- Validation rules — same required/recommended field corrections as above
- Wiki output structure — updated code block to match actual file names
- Exit codes — removed non-existent code
2
docs/library-api.md
GenerateResult— added missingparse_errors: Vec<(PathBuf, Error)>fieldValidateResultstruct — replaced fabricated{ report, adr_count }with the real struct:{ reports, parse_errors, total_errors, total_warnings, passed }- Validate example — replaced
result.has_errors()/result.issues()/issue.filewithresult.passed/result.error_issues()/path.display()+issue.message StatsResult— renamedformatted_output→output; addedparse_errorsfield; fixed inline example to match- Wiki example —
result.page_count→result.generated_files.len() Frontmatterstruct — string fields (description,category,author,project) are plainStringdefaulting to"", notOption<String>;created/updatedareOption<time::Date>notOption<String>; addeddoc_typeandupdated
docs/README.md
- Updated "Last Updated" date to 2026-06-12
Verification
All changes verified against source code in:
src/application/generate.rs—GenerateResult,GenerateOptions::with_themesrc/application/validate.rs—ValidateResult,ValidateOptionssrc/application/stats.rs—StatsResultsrc/application/wiki.rs—WikiResultsrc/domain/validation.rs—RequiredFieldsRule,RecommendedFieldsRulesrc/domain/frontmatter.rs—Frontmatterstructsrc/cli/handlers.rs— exit code behavioursrc/infrastructure/renderer/wiki.rs— generated file names
Generated by Update Docs · 1.3K AIC · ⌖ 43.9 AIC · ⊞ 37.2K · ◷
Add this agentic workflows to your repo
To install this agentic workflow, run
gh aw add githubnext/agentics/workflows/update-docs.md@adea00ee5830135f24022f1000d706c7f5fa24c4
[!NOTE]
This was originally intended as a pull request, but the git push operation failed.Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 27436737857 -n agent -D /tmp/agent-27436737857
# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-27436737857/aw-docs-fix-api-accuracy-2026-06-12.bundle refs/heads/docs/fix-api-accuracy-2026-06-12:refs/bundles/create-pr-docs-fix-api-accuracy-2026-06-12-c28bc33053a9958f-d6b9c6c6
git update-ref refs/heads/docs/fix-api-accuracy-2026-06-12-c28bc33053a9958f refs/bundles/create-pr-docs-fix-api-accuracy-2026-06-12-c28bc33053a9958f-d6b9c6c6
git checkout docs/fix-api-accuracy-2026-06-12-c28bc33053a9958f
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-docs-fix-api-accuracy-2026-06-12-c28bc33053a9958f-d6b9c6c6
# Push the branch to origin
git push origin docs/fix-api-accuracy-2026-06-12-c28bc33053a9958f
# Create the pull request
gh pr create --title 'docs: fix API accuracy across user-guide, configuration, and library-api' --base main --head docs/fix-api-accuracy-2026-06-12-c28bc33053a9958f --repo zircote/adrscope
- Dominant language
- Rust
- Stars
- 7
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zircote/adrscope
-
agentic-workflows automation documentation
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agentic-workflows automation documentation
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
[aw] Daily QA failed Openagentic-workflows
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in zircote/adrscope
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100