Skip to content

Refresh repository documentation instructions - #47

Open
lodyai[bot] wants to merge 1 commit into
mainfrom
feat/refactorauditletawyvern
Open

Refresh repository documentation instructions#47
lodyai[bot] wants to merge 1 commit into
mainfrom
feat/refactorauditletawyvern

Conversation

@lodyai

@lodyai lodyai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

This branch refreshes the repository's agent and documentation guidance so the
local instructions match the latest Rust template and the documentation set has
a canonical repository-layout entrypoint.

The branch imports the latest upstream AGENTS.md guidance, keeps the
already-current documentation style guide aligned with the template, rewrites
the contents index around the style-guide document taxonomy, and adds the
missing repository layout document. The Markdown formatter also normalized a
small set of existing documentation lines while applying the required docs
formatting gate.

Roadmap task: none.
Execplan: none.

Review walkthrough

Validation

  • make fmt: passed.
  • make check-fmt: passed.
  • make markdownlint: passed.
  • make nixie: passed; all Mermaid diagrams validated successfully.
  • make lint: passed.
  • make test: passed; cargo nextest ran 560 tests with 560 passed, and workspace doctests passed.

Notes

  • The upstream documentation style guide content already matched the repository
    copy after download, so it does not appear as a content diff in this branch.
  • The branch is documentation-only; no Rust behaviour changes are intended.

Import the latest Rust agent instructions and align the documentation index
with the current style-guide structure. Add the canonical repository layout
reference so contributors have one source of truth for path ownership and
fixture locations.

Run the Markdown formatter across the documentation set so existing prose
continues to satisfy the repository documentation gates.
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Documentation alignment with Rust template standards

This pull request refreshes the repository's documentation to align with the latest Rust template conventions and standards. It is a documentation-only change with no modifications to Rust behaviour or code logic.

New documentation

docs/repository-layout.md has been added as the canonical reference for repository structure. This document provides:

  • A compact repository tree overview
  • Clear ownership and responsibilities for key directories (src/, crates/, tests/, docs/, etc.)
  • Guidance on which directories contain committed fixtures and snapshots versus generated artefacts
  • Pointers to where different categories of documentation belong (users' guide, developers' guide, design/rationale, ADRs)

Documentation reorganisation

docs/contents.md has been restructured from a flat link-heavy list into a categorised index with section headings: User and contributor guides, Architecture and design, Decision records, Reference material, and Execution plans. The Execution plans section now comprehensively lists roadmap steps through the 3.x series, expanding substantially from the prior version.

AGENTS.md updates

AGENTS.md guidance has been refreshed to follow current Rust template conventions:

  • Section headings updated to use "&" in titles
  • New "Abstraction / port / helper policy" checklist requiring repository sweep and documentation of scope/reuse policy
  • Added testing guideline to include insta snapshot tests for multivariant output consistency
  • New dedicated "Project documentation" section clarifying where to record design decisions and what to update in user and developer guides
  • Formatting refinements for consistency (including "cross-platform" hyphenation and "Recognize" spelling standardisation)

Formatting improvements

Markdown formatting has been normalised across documentation, including:

  • docs/adr-004-action-signature-specification.md: Line wrapping adjusted in the Rust probe example
  • docs/execplans/ files: Line wrapping and whitespace adjustments across multiple execplan documents (1-2-1, 2-3-1, 2-3-2, 3-2-2)

Validation

All repository checks passed:

  • make fmt, make check-fmt, and make markdownlint confirmed formatting compliance
  • make nixie validated all Mermaid diagrams successfully
  • make lint passed
  • make test passed with 560 cargo tests and workspace doctests successful

Walkthrough

Updates AGENTS.md with renamed headings, a new abstraction/port/helper policy checklist, an insta snapshot-testing rule, and a project documentation section. Introduces docs/repository-layout.md as a canonical repository-structure guide. Restructures docs/contents.md into categorised sections with an expanded execution-plans list. Applies line-wrapping fixes across several execplan and ADR documents.

Changes

Documentation policy refresh and repository layout guide

Layer / File(s) Summary
New AGENTS.md policy sections and heading/wording fixes
AGENTS.md
Renames two section headings to use &, adds a three-step Abstraction/port/helper policy checklist, adds an insta snapshot-testing rule, introduces a Project documentation section directing updates to docs/users-guide.md and docs/developers-guide.md, and applies spelling (Recognize) and formatting fixes.
New docs/repository-layout.md guide
docs/repository-layout.md
Adds the canonical repository-layout document with a directory tree, path-responsibility table for top-level files, generated-artefact guidance distinguishing transient from committed fixtures, and a documentation-locations map.
docs/contents.md restructured into categorised index
docs/contents.md
Replaces the flat contents list with five categorised sections (User and contributor guides, Architecture and design, Decision records, Reference material, Execution plans) and expands the Execution plans section to cover all 2.x and 3.x steps.
Formatting fixes in execplan and ADR documents
docs/adr-004-action-signature-specification.md, docs/execplans/1-2-1-*.md, docs/execplans/2-3-1-*.md, docs/execplans/2-3-2-*.md, docs/execplans/3-2-2-*.md
Corrects line-wrapping and whitespace in embedded code snippets and checklist bullets; no substantive content changes.

Possibly related PRs

  • leynos/agent-template-rust#37: Adds the same Abstraction/port/helper policy checklist and Project documentation section to AGENTS.md in the agent-template-rust repository, mirroring this PR's guidance changes directly.
  • leynos/falcon-correlate#47: Applies the same AGENTS.md policy additions and docs/contents.md/docs/repository-layout.md structural updates in that repository.
  • leynos/ortho-config#336: Updates AGENTS.md with the identical Abstraction/port/helper policy and Project documentation guidance refreshed in this PR.

Poem

📂 The docs stood in rows, a flat and weary list,
Now sorted in sections — no entry is missed.
AGENTS.md declares where decisions belong,
With insta for snapshots and spelling made strong.
A repository-layout joins the collection at last —
Cross-platform, Recognize, the old guard outclassed! 🦀

🚥 Pre-merge checks | ✅ 19 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Developer Documentation ⚠️ Warning Documentation is incomplete: AGENTS.md omits docs/repository-layout.md from project documentation checklist, repository-layout.md shows inconsistent file path for theorem_file_macro_bdd, and docs/c... Amend AGENTS.md line 321–331 to reference docs/repository-layout.md; correct repository-layout.md to show theorem_file_macro_bdd.rs; standardise docs/contents.md to en-GB spelling throughout.
✅ Passed checks (19 passed)
Check name Status Explanation
Title check ✅ Passed The title "Refresh repository documentation instructions" accurately summarises the main changes across AGENTS.md, docs/contents.md, docs/repository-layout.md, and associated documentation formatting updates.
Description check ✅ Passed The description comprehensively details the changes across all affected documentation files, provides a clear review walkthrough, documents validation results, and accurately reflects the scope of documentation-only updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Testing (Overall) ✅ Passed This PR is documentation-only; it updates AGENTS.md, docs/contents.md, adds docs/repository-layout.md, and normalises formatting in documentation files. No new functionality or behavioural changes...
User-Facing Documentation ✅ Passed This PR introduces no changes to user-facing functionality, behaviour, or the user's guide. Changes are documentation-only: updates to AGENTS.md guidelines, reorganisation of docs/contents.md, addi...
Module-Level Documentation ✅ Passed This pull request contains only documentation and formatting changes (AGENTS.md, docs/*.md files) with no Rust source code or module-level declarations modified.
Testing (Unit And Behavioural) ✅ Passed Documentation-only PR with no Rust code changes; testing requirements apply only to functional code modifications. All existing tests (560) pass.
Testing (Property / Proof) ✅ Passed This PR is documentation-only (AGENTS.md refresh, docs reorganisation, and repository-layout guide), introducing no code changes, invariants, lemmas, or proof assumptions that would require propert...
Testing (Compile-Time / Ui) ✅ Passed Pull request is documentation-only with no Rust behaviour changes, so compile-time or snapshot testing requirements do not apply; all existing tests pass.
Unit Architecture ✅ Passed This PR is documentation-only with no code changes. The Unit Architecture check applies to Rust code structure, dependency patterns, and API design—none of which are present in documentation updates.
Domain Architecture ✅ Passed Pull request is documentation-only with no changes to domain code, adapters, repositories, or Rust architecture; domain architecture segregation check does not apply.
Observability ✅ Passed PR contains documentation-only changes (AGENTS.md, docs/*.md); no operational behaviour modifications or runtime changes introduced.
Security And Privacy ✅ Passed Documentation-only PR contains no exposed secrets, hardcoded credentials, authorization bypasses, injection risks, or sensitive data leaks; all test credentials properly marked as fake.
Performance And Resource Use ✅ Passed PR contains documentation-only changes (Markdown reformatting and guidance updates); no code modifications or performance-sensitive changes present.
Concurrency And State ✅ Passed PR is documentation-only; no Rust source code, concurrency primitives, shared state, async execution, or locks introduced or modified. Concurrency and State check not applicable.
Architectural Complexity And Maintainability ✅ Passed This PR is documentation-only and does not introduce code abstractions, architectural layers, dependencies, or new complexity. The custom check concerns code architecture and is not applicable to d...
Rust Compiler Lint Integrity ✅ Passed PR contains only documentation changes (AGENTS.md and docs/*.md files); no Rust source code modifications, so the Rust Compiler Lint Integrity check is not applicable.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/refactorauditletawyvern

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Reviewer's Guide

Refreshes repository documentation by updating AGENTS guidance, restructuring the docs index around a canonical taxonomy, and adding a new repository layout guide, along with formatter-only touch-ups to existing execplans and an ADR.

Flow diagram for updated documentation placement guidance

flowchart TD
  Start[Agent has information to document]
  Q1{Is this about
user-visible behaviour
or UI?}
  Q2{Is this about
internal interfaces or
component architecture?}
  Q3{Is this a
long-lived design or
architecture decision?}
  Q4{Is this about
repository structure or
file locations?}

  Start --> Q1

  Q1 -->|Yes| UsersGuide[docs/users-guide.md]
  Q1 -->|No| Q2

  Q2 -->|Yes| DevGuide[docs/developers-guide.md]
  Q2 -->|No| Q3

  Q3 -->|Yes| ADR[docs/adr-NNN-short-description.md]
  Q3 -->|No| Q4

  Q4 -->|Yes| RepoLayout[docs/repository-layout.md]
  Q4 -->|No| StyleGuide[docs/documentation-style-guide.md]

  UsersGuide --> End[Document added]
  DevGuide --> End
  ADR --> End
  RepoLayout --> End
  StyleGuide --> End
Loading

File-Level Changes

Change Details Files
Restructured the main documentation index to introduce a taxonomy-based contents page and link to the new repository layout guide.
  • Changed the contents heading formatting and updated the top-level description.
  • Added links and descriptions for repository layout, user and developer guides, and the documentation style guide.
  • Reorganized existing documentation links into themed sections: user/contributor guides, architecture and design, ADRs, reference material, and execution plans.
  • Expanded the execution plans section with additional listed plans and normalized descriptions and indentation.
  • Updated some link descriptions and titles for clarity and consistency (e.g., doctest guide title, roadmap/design wording).
docs/contents.md
Refined AGENTS guidance to clarify abstraction policy, documentation responsibilities, and several wording/grammar details.
  • Renamed headings to use ampersands for brevity in change-quality and refactoring sections.
  • Added a policy requiring agents to sweep for existing abstractions, document scope/reuse, and record decisions in architecture/design docs using docs/contents.md as the index.
  • Extended test guidance to call out insta snapshot tests for multivariant output formats.
  • Clarified dependency versioning guidance by explicitly referencing caret equivalence and forbidding unstable specifiers with clearer wording.
  • Fixed minor spelling and hyphenation issues (e.g., cross-platform, recognize, initialise -> initialize) and adjusted some explanatory phrasing.
AGENTS.md
Added a canonical repository layout document describing path responsibilities, generated artefacts, fixtures, and documentation locations.
  • Introduced a new docs/repository-layout.md document that describes the top-level tree and key directories/files.
  • Documented responsibilities for core paths including AGENTS.md, Cargo.toml, Makefile, build.rs, src/, crates/*, tests/, docs/, and target/.
  • Clarified how generated artefacts, fixtures, and snapshots should be handled and where they live.
  • Defined canonical locations for different documentation types (user guide, developer guide, design doc, ADRs, future RFCs, and layout).
docs/repository-layout.md
Applied Markdown formatting normalization and small wording fixes in existing execplans and ADR documentation.
  • Reflowed and de-wrapped code and command snippets in execplans to avoid stray backticks and awkward line breaks.
  • Adjusted bullet descriptions in execplans to keep function signatures and commands on a single logical line where possible.
  • Tightened wording and line breaks in ADR-004 around the function signature probe example.
  • Ensured references to modules and file lists in execplans use consistent formatting and punctuation.
docs/execplans/3-2-2-gate-generated-kani-harnesses.md
docs/execplans/2-3-2-optional-literal-text-wrapper.md
docs/execplans/1-2-1-validate-required-fields-and-non-empty-constraints.md
docs/execplans/2-3-1-argument-decoding-for-plain-yaml-strings.md
docs/adr-004-action-signature-specification.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@lodyai
lodyai Bot deleted the feat/refactorauditletawyvern branch June 4, 2026 23:09
@pandalump
pandalump marked this pull request as ready for review June 23, 2026 19:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 321-331: The documentation checklist in the Project documentation
section is incomplete and omits `docs/repository-layout.md`, which serves as the
canonical home for repository structure and path ownership. Add
`docs/repository-layout.md` to the checklist alongside the existing
documentation guidelines for `docs/users-guide.md` and
`docs/developers-guide.md`, ensuring that any changes to repository structure or
path ownership are properly documented in the appropriate location.
- Around line 111-119: The Abstraction / port / helper policy section currently
directs recording decisions to the developers-guide, but substantive
architectural decisions should be captured in relevant design documents and ADRs
instead. Update step 3 (Record the decision...) to clarify that developers
should record design decisions in the appropriate design document or ADR, not in
developers-guide.md which is for ongoing conventions. Ensure the guidance
reflects that design documents are the primary location for substantive
decisions with ADR references when the choice affects the architecture.

In `@docs/contents.md`:
- Around line 48-67: The reference material section in the contents.md file uses
US English spellings that conflict with the repository style guide. Replace the
US spelling variants with en-GB equivalents: change "anti-patterns" to
"antipatterns", "parametrization" to "parameterisation", "localizable" to
"localisable", and "localization" to "localisation" in the blurbs for the
rust-doctest-dry-guide.md, rust-testing-with-rstest-fixtures.md, and
localizable-rust-libraries-with-fluent.md entries.

In `@docs/repository-layout.md`:
- Around line 23-28: The repository layout tree in the docs incorrectly lists
`theorem_file_macro_bdd` as a directory with a trailing slash, but it should be
represented as a file named `theorem_file_macro_bdd.rs` to align with how it is
referenced elsewhere in the documentation. Update the tree structure in the
tests directory section to show `theorem_file_macro_bdd.rs` as a file instead of
a directory, and apply the same correction at lines 63-64 where this path is
also mentioned.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 1dd92cca-1b84-4f44-ace6-9d2635432117

📥 Commits

Reviewing files that changed from the base of the PR and between 8f48abb and 9ed1a1a.

📒 Files selected for processing (8)
  • AGENTS.md
  • docs/adr-004-action-signature-specification.md
  • docs/contents.md
  • docs/execplans/1-2-1-validate-required-fields-and-non-empty-constraints.md
  • docs/execplans/2-3-1-argument-decoding-for-plain-yaml-strings.md
  • docs/execplans/2-3-2-optional-literal-text-wrapper.md
  • docs/execplans/3-2-2-gate-generated-kani-harnesses.md
  • docs/repository-layout.md

Comment thread AGENTS.md
Comment on lines +111 to +119
- **Abstraction / port / helper policy:** Before implementing an abstraction,
port, or extracted helper, the agent must:
1. Sweep the repository to confirm there is no existing equivalent helper,
port, or abstraction.
2. Document the new abstraction's intended scope and re-use policy
(ownership boundaries, permitted call-sites, and composition rules).
3. Record the decision in the appropriate architecture, design, or
developers-guide document using `docs/contents.md` as the index to select
the correct location.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Route abstraction decisions into design docs and ADRs.

Line 111-119 sends new abstraction/port/helper decisions to docs/developers-guide.md, but that guide is for ongoing conventions, not architectural decisions. Keep substantive cases in the relevant design document, then capture an ADR when the choice affects the architecture. As per coding guidelines, record design decisions in the design document and reference the ADR from there.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 111 - 119, The Abstraction / port / helper policy
section currently directs recording decisions to the developers-guide, but
substantive architectural decisions should be captured in relevant design
documents and ADRs instead. Update step 3 (Record the decision...) to clarify
that developers should record design decisions in the appropriate design
document or ADR, not in developers-guide.md which is for ongoing conventions.
Ensure the guidance reflects that design documents are the primary location for
substantive decisions with ADR references when the choice affects the
architecture.

Source: Coding guidelines

Comment thread AGENTS.md
Comment on lines +321 to +331
## Project documentation

Record design decisions in the design document. Where a decision is
substantive, record it in an ADR document following the documentation style
guide, then reference that ADR from the design document.

Update `docs/users-guide.md` for any change to application behaviour or user
interface that a user should know about. Document internally facing interfaces
or practices in the relevant component architecture document. Document
internally facing conventions or practices in `docs/developers-guide.md`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add docs/repository-layout.md to the documentation checklist.

Line 321-331 covers the users and developers guides, but it omits docs/repository-layout.md, which is now the canonical home for repository structure and path ownership. Add it here so structural changes are updated in the right document. As per coding guidelines, docs/repository-layout.md is the repository-layout source of truth.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 321 - 331, The documentation checklist in the Project
documentation section is incomplete and omits `docs/repository-layout.md`, which
serves as the canonical home for repository structure and path ownership. Add
`docs/repository-layout.md` to the checklist alongside the existing
documentation guidelines for `docs/users-guide.md` and
`docs/developers-guide.md`, ensuring that any changes to repository structure or
path ownership are properly documented in the appropriate location.

Source: Coding guidelines

Comment thread docs/contents.md
Comment on lines +48 to +67
## Reference material

- [Navigating code complexity: a guide for implementers and maintainers](complexity-antipatterns-and-refactoring-strategies.md)
- Practical guide to complexity metrics, anti-patterns, and refactoring
strategies for long-lived codebases.
- [Developer's guide](developers-guide.md) - Maintainer-oriented manual
covering the build system, internal architecture, contributor workflows, and
extension points.
- [Documentation style guide](documentation-style-guide.md) - Authoring rules
for spelling, formatting, Markdown structure, diagrams, and documentation
consistency.
- [Name mangling rules](name-mangling-rules.md) - Normative mapping rules for
theorem action names, generated Kani harness symbols, and external theorem
identifiers.
strategies for long-lived codebases.
- [Reliable testing in Rust via dependency injection](reliable-testing-in-rust-via-dependency-injection.md)
- Patterns for testable Rust design using dependency injection to avoid
global-state coupling.
- [A systematic guide to effective, ergonomic, and "don't repeat yourself" (DRY) doctests in Rust](rust-doctest-dry-guide.md)
global-state coupling.
- [A systematic guide to effective, ergonomic, and DRY doctests in Rust](rust-doctest-dry-guide.md)
- Detailed reference for writing maintainable Rust doctests with minimal
duplication.
duplication.
- [Mastering test fixtures in Rust with `rstest`](rust-testing-with-rstest-fixtures.md)
- Comprehensive reference for fixture design, parametrization, and best
practices with `rstest`.
- [Scripting standards](scripting-standards.md) - Standards for project
scripts, covering toolchain choices, structure, and operational expectations.
- [Theorem file format](theorem-file-specification.md) - Schema and behavioural
specification for `.theorem` documents and their compile-time semantics.
- [Theoremc development roadmap](roadmap.md) - Phased
implementation roadmap with traceable tasks derived from design, schema,
mangling, and ADR requirements.
- [Theoremc design specification](theoremc-design.md) - End-to-end architecture
and design rationale for theoremc, including parser, code generation,
backend, and reporting design.
- [User's guide](users-guide.md) - Guide for library consumers covering
schema types, loading API, identifier rules, and value forms.
- [Execution plans](execplans/) - Implementation plans for roadmap steps.
practices with `rstest`.
- [Scripting standards](scripting-standards.md) - Standards for project scripts,
covering toolchain choices, structure, and operational expectations.
- [Localizable Rust libraries with Fluent](localizable-rust-libraries-with-fluent.md)
- Reference material for library-safe localization patterns and Fluent
integration.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Normalise the reference blurbs to en-GB spelling.

This section mixes US spellings (anti-patterns, parametrization,
localizable, localization) into a docs index that is meant to follow the
repository style. Use antipatterns, parameterisation, localisable, and
localisation instead.

Triage: [type:spelling] [type:docstyle]
As per path instructions, use en-GB-oxendict spelling and grammar in **/*.md files.

🧰 Tools
🪛 LanguageTool

[misspelling] ~51-~51: This word is normally spelled as one.
Context: ... Practical guide to complexity metrics, anti-patterns, and refactoring strategies for lon...

(EN_COMPOUNDS_ANTI_PATTERNS)


[typographical] ~62-~62: To join two clauses or introduce examples, consider using an em dash.
Context: ...pting standards](scripting-standards.md) - Standards for project scripts, coverin...

(DASH_RULE)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/contents.md` around lines 48 - 67, The reference material section in the
contents.md file uses US English spellings that conflict with the repository
style guide. Replace the US spelling variants with en-GB equivalents: change
"anti-patterns" to "antipatterns", "parametrization" to "parameterisation",
"localizable" to "localisable", and "localization" to "localisation" in the
blurbs for the rust-doctest-dry-guide.md, rust-testing-with-rstest-fixtures.md,
and localizable-rust-libraries-with-fluent.md entries.

Source: Path instructions

Comment thread docs/repository-layout.md
Comment on lines +23 to +28
├── tests/
│ ├── common/
│ ├── features/
│ ├── fixtures/
│ ├── snapshots/
│ └── theorem_file_macro_bdd/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Keep theorem_file_macro_bdd as a file path, not a directory.

The canonical layout here disagrees with the rest of the docs, which refer to
tests/theorem_file_macro_bdd.rs. Align the tree and the path-responsibility
note so contributors see one stable location.

♻️ Suggested fix
-├── tests/
-│   ├── common/
-│   ├── features/
-│   ├── fixtures/
-│   ├── snapshots/
-│   └── theorem_file_macro_bdd/
+├── tests/
+│   ├── common/
+│   ├── features/
+│   ├── fixtures/
+│   ├── snapshots/
+│   └── theorem_file_macro_bdd.rs
@@
-- `tests/theorem_file_macro_bdd/` contains support code for macro behavioural
-- tests that need fixture crates or Cargo/Kani command wrappers.
+- `tests/theorem_file_macro_bdd.rs` contains support code for macro
+  behavioural tests that need fixture crates or Cargo/Kani command wrappers.

Also applies to: 63-64

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/repository-layout.md` around lines 23 - 28, The repository layout tree
in the docs incorrectly lists `theorem_file_macro_bdd` as a directory with a
trailing slash, but it should be represented as a file named
`theorem_file_macro_bdd.rs` to align with how it is referenced elsewhere in the
documentation. Update the tree structure in the tests directory section to show
`theorem_file_macro_bdd.rs` as a file instead of a directory, and apply the same
correction at lines 63-64 where this path is also mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant