Commands
One executable, 28 subcommands. Exit codes are a contract.
majordomus initCreate the .ai/ layer in this repository, and refuse to overwrite an existing one.
majordomus updateRegenerate every provider instruction file from the one policy, deterministically.
majordomus doctorIs Majordomus itself healthy, and is every enforcement it declares actually wired here?
read-onlymajordomus watchWhat has drifted since the last update — policy, projections, state, retention.
read-onlymajordomus startBegin one scoped task under a profile, and refuse while another is active.
majordomus contextWhat the next worker needs to know now, in authority order and within a budget.
read-onlymajordomus checkpointRecord compact progress inside the active task, so the next worker does not start over.
majordomus handoverWrite an append-only continuation record, and resolve the most relevant prior one.
majordomus checkIs the current task still consistent with its policy, its scope and this checkout?
read-onlymajordomus finishEvaluate the finish contract and refuse the outcome if any line of it is unmet.
majordomus historyRead the append-only ledger back, filtered by task, event or time.
read-onlymajordomus decisionRecord a decision that was made between real alternatives, with its reason, and read them back.
majordomus questionOpen a question that blocks acceptance, resolve it, and list what is still open.
majordomus promptList, show and render the repository's own prompt assets, substituting known tokens only.
read-onlymajordomus evidenceRecord that one obligation the active task declared has been discharged, as a ledger line carrying the hash of the files that obligation names.
majordomus skillsThe repository's skills — provider-neutral procedures under the skills section — listed, shown and checked from the one catalogue every surface reads.
read-onlymajordomus captureRecord the person's raw prompts from a provider hook as a record with its renderings, draw the episode boundary from the provider's own lifecycle hooks, install those hooks, and report what each provider actually does here.
majordomus searchFind a durable record without reading all of them, in authority order.
read-onlymajordomus doctrineWhat rules are enforced, by what, and whether each one is actually wired.
read-onlymajordomus planThe milestone and issue model — validate it, read it, and move one issue through it.
majordomus versionPrint the version, without needing a repository or an installation.
read-onlymajordomus sessionOpen, inspect and close one execution episode.
majordomus knowledgeThe compiled index over what this repository states.
read-onlymajordomus adrThe repository's architecture decisions as objects: list, show, propose one with provenance, and validate the whole set.
majordomus usecaseThe executable use cases: list, show, validate, run against the real tool, coverage, impact, scaffold.
majordomus rulesThe effective rule set, vendored baseline plus project rules.
majordomus migrateMove pre-.ai project data from .majordomus/ into .ai/, explicitly and backed up.
majordomus benchTime every public command of the registry, cold and warm, and compare with the baseline.
Exit codes
0ok2usage10contract unmet11drift found12missing artifact13internal error15refused
There is no "warn and continue" code.