You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Protected files were modified in this change.
This pull request is in request_review mode 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 correct use import); with_theme() accepts a Theme enum, not a string
Validation required fields — removed status; it has #[serde(default)] and defaults to Proposed when absent or unrecognized — it is never an error
Validation recommended fields — removed author and tags; RecommendedFieldsRule only checks description, created, and category
Exit codes — removed non-existent exit code 2; handle_validate returns 0 (pass) or 1 (fail), never 2
Wiki generated pages — replaced Home.md / ADR-XXXX.md / Status-Index.md / Category-Index.md / Timeline.md with 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 missing parse_errors: Vec<(PathBuf, Error)> field
ValidateResult struct — 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.file with result.passed / result.error_issues() / path.display() + issue.message
StatsResult — renamed formatted_output → output; added parse_errors field; fixed inline example to match
Wiki example — result.page_count → result.generated_files.len()
Frontmatter struct — string fields (description, category, author, project) are plain String defaulting to "", not Option<String>; created/updated are Option<time::Date> not Option<String>; added doc_type and updated
The bundle file is available in the agent artifact 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
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdWhat
Corrects multiple documentation inaccuracies found by diffing the published docs against the actual Rust source code.
Changes
docs/user-guide.mdwith_theme("dark")→with_theme(Theme::Dark)(with correctuseimport);with_theme()accepts aThemeenum, not a stringstatus; it has#[serde(default)]and defaults toProposedwhen absent or unrecognized — it is never an errorauthorandtags;RecommendedFieldsRuleonly checksdescription,created, andcategory2;handle_validatereturns0(pass) or1(fail), never2Home.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 filesdocs/configuration.md2docs/library-api.mdGenerateResult— added missingparse_errors: Vec<(PathBuf, Error)>fieldValidateResultstruct — replaced fabricated{ report, adr_count }with the real struct:{ reports, parse_errors, total_errors, total_warnings, passed }result.has_errors()/result.issues()/issue.filewithresult.passed/result.error_issues()/path.display()+issue.messageStatsResult— renamedformatted_output→output; addedparse_errorsfield; fixed inline example to matchresult.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_typeandupdateddocs/README.mdVerification
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 namesAdd this agentic workflows to your repo
To install this agentic workflow, run
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: