Repository navigation
fix(trains,dispatch,surface,tooling): startup errors link their fix; docs for newcomers - #94
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…ame-type output replaces the first
… quick start and chapter 1 link it
… troubleshooting entry
…our, and the tests name the pages
…pages live in their sections
…nd the page that explains it
…ed by what they do
…n first, and names the console
Theauxm
force-pushed
the
docs/newcomer-round
branch
from
October 20, 2026 15:57
9d7f97d to
453f3b8
Compare
Contributor
|
This PR is included in version 1.68.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A newcomer can see everything Trax does, find where to start, and follow a startup error to its fix
Background
An outside read of the docs, done by someone with no prior knowledge of Trax, found the material
mostly there but hard to get into for a person (as opposed to an agent). This PR takes the cheap
fixes from that read. Terms used below:
cross-cutting/troubleshooting.md): one##heading per errormessage Trax raises, quoted as in the source, with the fix underneath.
from=<path>): a code block on a page that must be lines of a real file inthe repository.
SampleExcerptsMatchSourceTestsfails when the page and the file disagree.## Behaviorsection of an SDK reference page, stating in prose whatthe member does in the edge cases.
Problem
Example
A host registers a train whose junction needs a
StockReservationthat nothing earlier produces.1 of 3 registered trains cannot run:- Junction 'TakePayment' (train 'IPlaceOrderTrain') needs 'StockReservation' as its input, ...See https://traxsharp.net/docs/cross-cutting/troubleshooting#n-of-m-registered-trains-cannot-runAnd
core/memory.md, under "Storage by Type", now shows this test from Trax.Core's suite ratherthan a commented fragment:
How this solves it
flowchart LR Page["Page: from=Trax.Core/tests/.../OneValuePerTypeTests.cs"] File["Test file: // Shown on .../docs/core/memory"] Match["SampleExcerptsMatchSourceTests: lines match"] Names["TestExcerptsNameTheirPagesTests: each names the other"] Page -->|excerpt| Match File --> Match Page -->|"excerpt of a library test needs the line"| Names File -->|"the line needs the page to excerpt it"| Names class Page,Match,Names tooling class File trains classDef trains fill:#22c55e,stroke:#15803d,color:#000 classDef tooling fill:#334155,stroke:#0f172a,color:#fffSamples and templates are left out: sample pages tour their sample, and a template's comments ship
into the reader's project. The two existing Decisions examples got their line.
writing-docs.mddocuments the convention.
Architectural hinges
Trax.Mediator/src/Trax.Mediator/Services/ChainVerification/TrainChainStartupValidator.cs(
StartingAsync): the refusal most newcomers hit first; its link is the one with a test of its own.Trax.Docs/tests/Trax.Docs.Snippets.Tests/Tests/TestExcerptsNameTheirPagesTests.cs: thetwo-way rule between a page and the library test it shows.
Trax.Core/tests/Trax.Core.Tests.Integration/Examples/Failures/Checkout.cs: the shape theexamples follow, one train shown on two pages.
Trax.Docs/what-trax-does.md: the capability map the docs home and the homepage now point at.Trax.Docs/index.md(## Start here): the reading order.Trax.Website/src/app/page.tsx: the homepage's section order.