chore: group the ADRs into subject folders and drop the code references #16

Merged
aleksei merged 4 commits from chore/adr-folders into main 2026-11-23 21:40:33 +00:00
Owner

Thirty ADR records lived in one flat adr/ directory, and the source cited them by path from 106 files. This PR groups the records by subject and stops the code from depending on the documentation layout.

The new layout

adr/
├── README.md
├── core/      engine, usage, unit, registry, ports, provision, raw, broker
├── repo/      package, log, code_style, git, test, bench
├── entity/    entity, op, joint, schema, query, wire, status
├── system/    system, task, backup, stream
└── adapter/   nats, inproc_broker, sqlite, parquet, storage_fs
  • overview/ is merged into core/.
  • readiness.md becomes entity/status.md and describes the same mechanism from the status it derives.
  • adapter/nats.md is new: the NATS/JetStream specifics that used to sit in broker.md.
  • core/broker.md keeps the port contract; core/provision.md keeps the provisioning model, without the backend DDL.
  • entity_op.md is folded into entity/op.md: one record for the operation contract and the mutation behaviours built on it.

Commits

  1. chore: remove the ADR references from the code — 202 citations in 106 files, including manifests, compose.yaml and nats.conf. A path in a comment goes stale silently and nothing checks it; the surrounding comment keeps its meaning.
  2. chore: group the ADRs into subject folders — 30 git mv, 206 rewritten Markdown links, the new index and reading order, and the trimmed records.
  3. chore: merge the entity operation record into op.md — the mutation behaviours join the operation contract, and the index, reading order and links drop the extra record.

Verification

  • cargo check --workspace --all-targets — ok
  • cargo clippy --workspace --all-targets — no warnings
  • cargo test --workspace --lib — 65 tests pass
  • dprint check — clean
  • every relative link in the documentation resolves (298 checked)
  • no adr/ reference remains in .rs, .toml, .yaml or .conf
Thirty ADR records lived in one flat `adr/` directory, and the source cited them by path from 106 files. This PR groups the records by subject and stops the code from depending on the documentation layout. ## The new layout ``` adr/ ├── README.md ├── core/ engine, usage, unit, registry, ports, provision, raw, broker ├── repo/ package, log, code_style, git, test, bench ├── entity/ entity, op, joint, schema, query, wire, status ├── system/ system, task, backup, stream └── adapter/ nats, inproc_broker, sqlite, parquet, storage_fs ``` - `overview/` is merged into `core/`. - `readiness.md` becomes `entity/status.md` and describes the same mechanism from the status it derives. - `adapter/nats.md` is new: the NATS/JetStream specifics that used to sit in `broker.md`. - `core/broker.md` keeps the port contract; `core/provision.md` keeps the provisioning model, without the backend DDL. - `entity_op.md` is folded into `entity/op.md`: one record for the operation contract and the mutation behaviours built on it. ## Commits 1. `chore: remove the ADR references from the code` — 202 citations in 106 files, including manifests, `compose.yaml` and `nats.conf`. A path in a comment goes stale silently and nothing checks it; the surrounding comment keeps its meaning. 2. `chore: group the ADRs into subject folders` — 30 `git mv`, 206 rewritten Markdown links, the new index and reading order, and the trimmed records. 3. `chore: merge the entity operation record into op.md` — the mutation behaviours join the operation contract, and the index, reading order and links drop the extra record. ## Verification - `cargo check --workspace --all-targets` — ok - `cargo clippy --workspace --all-targets` — no warnings - `cargo test --workspace --lib` — 65 tests pass - `dprint check` — clean - every relative link in the documentation resolves (298 checked) - no `adr/` reference remains in `.rs`, `.toml`, `.yaml` or `.conf`
The records under `adr/` are documentation for people, not a dependency of
the source: a comment that cites a file path goes stale silently and no
build, test or lint checks it. Drop the citations instead of maintaining
them.

The comment text keeps its meaning; only the "see `adr/...`" clause is
gone. 202 references in 106 files, including the manifests and the compose
and NATS configuration.
Thirty records in one flat directory made the topic of a record visible only
through the index. Group them by subject instead:

- `core/` — the engine, the unit lifecycle, the registry, the ports,
  provisioning, raw data and the broker port;
- `repo/` — the workspace layout and the engineering practice of the
  repository: logging, style, git, tests and benchmarks;
- `entity/` — the domain model, the operations, the schema, the query
  language, the wire contract and the entity status;
- `system/` — the system units, tasks, backup and streams;
- `adapter/` — the concrete backends, now including a separate record for
  the NATS transport.

The former `overview` records move into `core/`, and `readiness.md` becomes
`entity/status.md`, which describes the same mechanism from the status it
derives.

Two records are trimmed to the boundary they own: `core/broker.md` keeps the
port contract and `core/provision.md` keeps the provisioning model, while the
backend-specific details move to `adapter/nats.md` and to the adapter records
that already covered them. The index and the root README follow the new
layout, and dprint formats the tree.
`op.md` described the operation contract and `entity_op.md` described the
mutation behaviours built on it. They are read together and change together:
a new mutation behaviour is a decision about the same `EntityOpUnit`
contract, not a separate topic.

Fold the mutation sections — data transforms, bulk operations, chains,
projection, storage and walking — into `op.md`, keep one record per subject,
and drop `entity_op.md` and its entries from the index, the reading order and
the links.
The facade is one adapter over the broker port: it maps a path and a body to
a request and writes the response back, and `with_bind`/`with_guard` are its
own deployment settings. It is documented where it lives, in the rustdoc of
`eve_gateway_http`, so `op.md` does not need to describe the transport.
aleksei deleted branch chore/adr-folders 2026-11-23 21:40:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/eve!16
No description provided.