Skip to content

docs: update invariant references in documentation for accuracy#10

Merged
blaze6950 merged 3 commits intomasterfrom
feature/align-invariant-numbers
Mar 4, 2026
Merged

docs: update invariant references in documentation for accuracy#10
blaze6950 merged 3 commits intomasterfrom
feature/align-invariant-numbers

Conversation

@blaze6950
Copy link
Collaborator

This pull request updates the documentation to use a new, more consistent invariant numbering scheme throughout the codebase and docs. The changes improve clarity and traceability of architectural invariants by switching from legacy numeric identifiers (e.g., "Invariant 24") to a structured format (e.g., "A.1", "C.5", "F.1"), and updating all references accordingly. No functional code changes are included; this is a documentation and specification refactor.

Invariant Numbering and Reference Updates:

  • Replaced legacy invariant numbers with new structured identifiers (e.g., "Invariant H.49" → "Invariant H.3") across all documentation files, including AGENTS.md, README.md, and docs/components/*.md. [1] [2] [3]
  • Updated invariant lists and tables in docs/actors.md to use the new scheme, grouping invariants by component responsibility (e.g., A., B., C., D., E., F., G., H.), and ensuring consistent naming. [1] [2] [3] [4] [5] [6]
  • Revised all references to invariants in implementation mapping and overview sections to match the new format, improving cross-referencing between documentation and code. [1] [2] [3]

Component Documentation Consistency:

  • Updated component-specific documentation (decision.md, execution.md, intent-management.md) to use new invariant identifiers in descriptive text, tables, and implementation notes for improved clarity. [1] [2] [3] [4] [5]

These changes make the architectural invariants easier to follow, maintain, and reference across the documentation and codebase.

@blaze6950 blaze6950 self-assigned this Mar 4, 2026
Copilot AI review requested due to automatic review settings March 4, 2026 01:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates invariant identifiers across the codebase (docs, XML docs, and test names) to a new structured numbering scheme (e.g., B.11B.1, H.49H.3) to improve consistency and traceability between architecture specs and implementation/tests.

Changes:

  • Renumber invariant references throughout docs/*.md and component documentation to the new scheme.
  • Rename invariant test methods/data providers to match the updated identifiers.
  • Update XML documentation comments in public/internal C# types to reference the new invariant IDs.

Reviewed changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
tests/SlidingWindowCache.Unit.Tests/Infrastructure/Storage/TestInfrastructure/CacheStorageTestsBase.cs Renames invariant section/methods and references from B.11 to B.1.
tests/SlidingWindowCache.Unit.Tests/Infrastructure/Storage/SnapshotReadStorageTests.cs Updates summary invariant reference to B.1.
tests/SlidingWindowCache.Unit.Tests/Infrastructure/Storage/CopyOnReadStorageTests.cs Updates summary invariant reference to B.1.
tests/SlidingWindowCache.Tests.Infrastructure/Helpers/TestHelpers.cs Updates doc comment invariant reference from D.28 to D.4.
tests/SlidingWindowCache.Invariants.Tests/WindowCacheInvariantTests.cs Renames tests/data providers and updates invariant references to the new scheme across the suite.
tests/SlidingWindowCache.Invariants.Tests/README.md Updates test suite documentation and filter examples to new invariant IDs.
src/SlidingWindowCache/Public/Instrumentation/ICacheDiagnostics.cs Updates XML doc invariant references for diagnostics counters.
src/SlidingWindowCache/Public/Extensions/WindowCacheConsistencyExtensions.cs Updates H.49 references to H.3 in XML docs.
src/SlidingWindowCache/Infrastructure/Storage/CopyOnReadStorage.cs Updates invariant references in XML docs to A.12, A.12b, B.1-2, A.4.
src/SlidingWindowCache/Infrastructure/Concurrency/AsyncActivityCounter.cs Updates H.* references to the new H.1–H.3 scheme in XML docs.
src/SlidingWindowCache/Core/UserPath/UserRequestHandler.cs Updates invariant reference from C.24e to C.8e in docs/comments.
src/SlidingWindowCache/Core/Rebalance/Execution/CacheDataExtensionService.cs Updates cache contiguity invariant reference to A.12b.
src/SlidingWindowCache/Core/Planning/ProportionalRangePlanner.cs Updates invariant references for planner behavior (E.*, D.*) to new scheme.
docs/storage-strategies.md Updates invariant section headings and references to new IDs.
docs/state-machine.md Updates invariant references used in state descriptions to new IDs.
docs/scenarios.md Updates contiguity invariant reference to A.12b.
docs/invariants.md Renumbers the formal invariant specification and adds new sub-invariants (e.g., C.8a–C.8f, D.2a, G.5).
docs/glossary.md Updates H.49 references to H.3.
docs/diagnostics.md Updates invariant references used in diagnostics counter descriptions.
docs/components/user-path.md Updates invariant references in the user-path component overview table.
docs/components/state-and-storage.md Updates invariant references in state/storage documentation.
docs/components/rebalance-path.md Updates invariant references describing decision vs execution responsibilities.
docs/components/public-api.md Updates invariant references tied to public API configuration/consistency docs.
docs/components/overview.md Updates invariant mapping lists to the new scheme.
docs/components/intent-management.md Updates invariant references in intent lifecycle documentation.
docs/components/execution.md Updates invariant references in execution subsystem documentation.
docs/components/decision.md Updates decision invariant range reference to D.1–D.5.
docs/actors.md Updates invariant ownership lists to use the new IDs.
README.md Updates serialized-access note invariant reference H.3.
AGENTS.md Updates serialized-access requirement invariant reference H.3.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@blaze6950 blaze6950 merged commit dedfc60 into master Mar 4, 2026
2 checks passed
@blaze6950 blaze6950 deleted the feature/align-invariant-numbers branch March 4, 2026 01:51
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...wCache.Tests.Infrastructure/Helpers/TestHelpers.cs 0.00% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

3 participants