Skip to content

Decisions and knowledge that compound instead of evaporating

Decisions are recorded with their reason and their task, open questions block acceptance until resolved, architecture decision records carry typed references to the rules, claims, files and tests they put in force, and the graph of all of it is derived from those references rather than drawn.

What was decided, why, and what was rejected is recorded where the next session reads it, and a durable decision becomes an architecture record with typed links to what it put in force.

status
stable

What it does

majordomus decision add records what was decided, why, what was rejected and which task decided it, superseded later by an entry that names it and never edited. majordomus adr lists, shows, proposes and checks the architecture decision records under the layer; a record extracted from a local decision is proposed, never accepted in the same act, and its related field carries typed references — a rule, a claim, a file, a test — that the graph turns into edges, so the reverse question, what decided this rule, is derived rather than written twice.

Knowledge is declared, not collected: the source classes say which files carry it, the index reads them through git, and search, knowledge and history answer over that index without anyone reading everything.

What it does not do

Nothing is promoted automatically. A decision recorded while working stays in the checkout's local state until a person judges it durable enough to write down as a record. There is no embedding, no vector store and no summariser; retrieval is over declared identities and text, and a reference that resolves to nothing is a finding, not a phantom node.

The capabilities behind it

The capability modules of the executable this feature names, each with the capabilities it composes. The command line, the HTTP route, the MCP tool and the reference beside every row are projections of one declaration, not four registrations.

Graphs graph behaviorally verified

The graphs derived from the registry and the index: the executable's own capability registry, the shape of the layer, the rule dependencies, the decisions and what they put in force, and the use cases and what they exercise. Canonical nodes and edges; a rendering library is a consumer, never the shape.

apps/majordomus-cli/src/capability/builtin/graph.rs

The commands that run it

  • majordomus decision work

    Record a decision that was made between real alternatives, with its reason, and read them back.

  • majordomus adr conclude

    The repository's architecture decisions as objects: list, show, propose one with provenance, and validate the whole set.

  • majordomus knowledge inspect · read-only

    The compiled index over what this repository states.

  • majordomus search inspect · read-only

    Find a durable record without reading all of them, in authority order.

  • majordomus history inspect · read-only

    Read the append-only ledger back, filtered by task, event or time.

  • majordomus question work

    Open a question that blocks acceptance, resolve it, and list what is still open.

The objects it is made of

Kinds of the layer. Each is a schema, a source class and a file on disk; the number beside it is what this repository holds today, counted at build time.

  • adr33
  • knowledge1
  • document210

What it answers

Operational moments from the Why catalogue that name one of this feature's mechanisms. Nothing here was assigned: a moment appears because it names a rule, a command, a capability or a claim this feature also names.

The rules that hold it

  • blockingArchitecture decision integritymajordomus.adr-integrity
  • advisoryDecision recordsmajordomus.decision-records
  • blockingThe decision thresholdmajordomus.decision-threshold
  • advisoryExternalise decisions and durable statemajordomus.externalise-decisions

What is guaranteed

Executable use cases