Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

bus-core-docs

Documentation for bus-core-api — the unified bus ticketing core at ../bus-core-api.

How to read this, and the one rule

Documents are numbered, and a document may only link to a lower-numbered document.

That single rule is the whole structure. It makes the reference graph a strict DAG: there is no path that returns to where it started, so nothing you read sends you in a circle, and no fact has two homes that can drift apart. tools/check-links.sh fails if a link ever points upward.

The practical consequence when you are looking something up: the lowest-numbered document that mentions a concept is the one that defines it. Higher-numbered documents use it and assume you have read down.

README.md          index — links everywhere, nothing links here

00-glossary.md     vocabulary. Links to nothing.
      ↑
10-module-layout.md      how one module is laid out
11-naming.md             what things are called
12-api-conventions.md    the response envelope and error codes
      ↑
20-module-catalog.md               the 27 modules and the dependency DAG
21-inter-module-communication.md   how modules reach each other
22-implementation-plan.md          the build order derived from the DAG
23-module-checklist.md             the gates a module passes before it is done
      ↑
30-reference-identity-access.md    ← STUDY of a DIFFERENT codebase
31-identity-access-rebuild.md      the plan for building ours
      ↑
40-identity-access.md              what our module ACTUALLY provides

Normative vs informative

Range Status Describes
00–29 Normative. These are the rules for this project. ../bus-core-api
30–39 Informative. A study of prior art, to learn from. ../../BUS4/core-bus-api — a different codebase
40+ Normative and live. What a module actually provides; updated per slice. ../bus-core-api

Documents in the 30s describe an earlier, separate implementation. They are here because it solved these problems already and its reasoning is worth having. Nothing in the 30s describes code that exists in this project. Each one carries a banner saying so.

If you are an agent working on bus-core-api: treat 00–29 as instructions, and 30–39 as background.

Index

Doc What it settles
00-glossary.md The vocabulary. Read first; everything else assumes it.
10-module-layout.md The directory shape of a module, and what may live where.
11-naming.md Module, package, type, column, and permission naming.
12-api-conventions.md The response envelope, error codes, validation errors, pagination.
20-module-catalog.md What the 27 modules are, the DAG, and how to add one.
21-inter-module-communication.md The six ways to cross a module boundary, when each is right, and a request traced end to end.
22-implementation-plan.md The build order, derived from the DAG: waves, critical path, phasing.
23-module-checklist.md The gates every module and slice passes before it is called done — and what makes a partly-built module safe rather than a landmine.
30-reference-identity-access.md (informative) How the reference implementation built identity and auth.
31-identity-access-rebuild.md The slice order for building ours, and the defects not to reproduce.
40-identity-access.md What identity-access provides today, and the rules a later slice must not break.

Checking the rule

bash tools/check-links.sh

Verifies every internal link resolves, and that none points at an equal- or higher-numbered document.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages