Skip to content

docs: describe the run in code, the principles by their ADRs, the checks and where messages are written - #321

Merged
goldbarth merged 1 commit into
mainfrom
docs/architecture
Oct 1, 2026
Merged

goldbarth merged 1 commit into
mainfrom
docs/architecture

Conversation

@goldbarth

Copy link
Copy Markdown
Owner

Follows #318, #319 and #320, after which every principle the page names has a decision record to link.

  • Why: architecture.md mixed product behavior (what --no-publish writes, what a customer page holds, which outputs exist) with code, argued its principles in place instead of pointing to their records, named the pipeline steps but not the code path from Program to the writers, and had no answer to "where is this message written?". Its "Where things are" left out Cli/Configuration, Cli/Commands, Core/Pipeline, Core/Formatting and the provider adapters in Cli/Composition.
  • A run in code: a diagram and a numbered walk from Program.Main through BuildConfiguration and BuildServices to ReleaseCommand and every step of ReleasePipeline, each with its port and adapter. Review is shown as what it is today: it approves as is, because review mode is refused until A run with flags looks like a clean run, and a published release's notes are replaced unasked #249.
  • Principles, one sentence each with its ADR: facts first and the structure of a rendering (0001), one fact base for every audience stated as what it gives and not as a guarantee of agreement (0001, as amended in docs: add an ADR index and template, and date what each decision record decided, recorded and amended #318), the AOT-friendly dependencies (0002), endpoints from the environment (0003), IChatClient in the domain (0004), refuse rather than guess (0005). The page no longer argues any of them.
  • How the two checks work, in code: what the rule-based check builds and searches (with The rule-based check flags a quoted phrase that the facts break over two lines #315 named), what the thorough check sends and how it keeps a pull request number, and how CallValidity treats a failed rendering and a failed verdict differently.
  • Where user-facing messages are written: a table from what the user sees to the file that writes it, under the rule that a message is written where its cause is known (ADR 0005).
  • Where things are is complete for every folder of the three projects and links the recipe.
  • The recipe caught up with feat!: keep pull request descriptions out of changelog.json, and the complete facts in the run record #294: step 3 is now "keep it in the run record, and decide whether it is published" (FactEntry always, ChangelogChange only for what may be published, schemaVersion 2 and 3); step 5 names the file FactBaseFixtureTests lives in and how it compares; step 6 names the round-trip tests that exist (FactBaseRoundTripTests), not the removed ChangelogJsonRoundTripTests. Its terms (fact, fact base, fixture, statement, haystack, run record, schemaVersion) are explained on first use.
  • Three doc comments (GroundedFactsFactory, IReleaseRenderer, ReleaseRenderer) said the renderings "cannot contradict each other"; they now say what the shared fact base gives, as the glossary, ADR 0001 and the README do. CHANGELOG.md keeps the line, since it is committed as Chartula wrote it.

Verified:

  • Every step, type and file named was checked against the code: the order in Program.Main and ReleasePipeline.RunStepsAsync, the ports and their adapters, RuleBasedFaithfulnessChecker, ThoroughFaithfulnessChecker, CallValidity, and the file each listed message comes from (git grep on the message text).
  • The recipe's step 3 against FactEntry.cs, ChangelogDocument.cs and ChangelogJsonSerializer.cs; step 5 against FixturePipelineTests.cs; step 6 against the test files that exist.
  • dotnet build without warnings (doc comments only changed in code).
  • Every relative link and anchor in all Markdown files of the repository resolves (script, with a negative test).

Tests: none changed, documentation and doc comments only.

@goldbarth goldbarth self-assigned this Oct 1, 2026
@goldbarth
goldbarth merged commit 0d8771d into main Oct 1, 2026
4 checks passed
@goldbarth
goldbarth deleted the docs/architecture branch October 1, 2026 19:08
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