Aller au contenu

Référence des commandes

Générée à partir de archvow <commande> --help (ne pas modifier : python3 tools/generate_command_reference.py). archvow parle anglais : ses commandes, options et messages sont en anglais, dans tous les projets. Hors d'un projet, les exemples et détails sont ceux du template intégré pyspark-pipeline ; dans un projet, --help montre ceux du template du projet.

Commandes : init, catalog, feature, feature add, feature rename, feature remove, component, component add, component edit, component accept, component move, component remove, show, specify, question, question add, question accept, question remove, decision, decision make, decision propose, decision accept, decision add, rule, rule add, rule edit, rule accept, rule remove, assumption, assumption add, assumption accept, assumption reject, brief, brief show, brief accept, hazard, hazard add, hazard dismiss, hazard edit, hazard accept, hazard remove, invariant, invariant add, invariant edit, invariant remove, column, column set, dependency, dependency add, dependency remove, example, example add, example remove, prompt, next, workspace, check, review, version, freeze, audit, changes, diff, doctor, completion, doc, try, pack, pack new, pack template, pack agent, pack rule, pack add, pack update, pack remove, pack check.

archvow

usage: archvow [-h] [--version] [-v] [--root ROOT] command ...

archvow - architecture specifications for AI-written code, and the guards that enforce them.

archvow never writes source code. It writes the spec (what must exist, what must never
happen, which decisions are made) and verifies that the code follows it.

positional arguments:
  command        archvow <command> --help: its options and examples

  everyday:
    next         planned components in build order, with what each one waits for
    show         everything about a component on one screen (the whole project: archvow next)
    specify      answer what is still open, one question at a time (in a terminal)
    check        verify the code against the spec (exit 1 on errors)
    doc          write the spec to read: the project, each feature, the status (.archvow/doc/,
                 never committed)
    prompt       print a component's task for an AI assistant: its spec, what it uses, the rules
    try          see archvow catch a mistake on a finished example, in a scratch folder

  shape the spec:
    feature      what the product does: add, rename or remove a feature (a folder of the spec
                 holding its components)
    component    what must exist: add, change, move or remove a component of the spec
    decision     what a component does: answer its questions, so nothing is left to chance
    question     an open question: it blocks the component until a person answers it
    rule         a rule of what components do, in plain words (R1, R2... for the project)
    assumption   what the implementer assumed: recorded, then accepted or rejected by a person
    hazard       what must never happen: record, dismiss, change, keep or remove a hazard
    invariant    what must always hold, so a hazard cannot happen
    column       personal data: classify columns, or say a component removes or pseudonymises them
    dependency   the third-party register (DORA): supplier, licence, criticality
    example      a business example: this input gives this result, locked by its fingerprint
    brief        the documents the spec is drawn from (briefs/): see what each section gives,
                 record a reviewed change

  set up and review:
    init         add archvow specs and guards to a repository (no source folders)
    catalog      list templates, their init answers and component types
    doctor       check this machine's setup for the project, with the fix for each problem
    diff         spec changes since a branch, in plain words (merge-request report)
    review       have an approved AI reviewer review the change, without a person (CI; it never
                 changes code)
    audit        who recorded each decision, hazard and invariant, cross-checked with Git
    changes      what a release contains, merge by merge: ticket, spec, components, tests, who
                 merged and approved
    freeze       accept today's violations; only new ones fail from now on
    pack         packs: a company's templates, agents and rules, in one folder (data only)
    version      archvow's version, and the version of its --json output (contract)
    completion   Tab completion for your shell (zsh, bash or powershell)
    workspace    everything an editor shows of the project, in one call (for tools)

options:
  -h, --help     show this help message and exit
  --version      show program's version number and exit
  -v, --verbose  say what archvow does and how long it takes, on stderr (-vv: every file, git call
                 and error it went on from); anywhere on the line; also ARCHVOW_LOG=info|debug
  --root ROOT    project root (default: search upwards from the current folder)

the words archvow uses (vow, feature, component, decision, hazard, invariant...): docs/glossary.md

how to build a project (every command prints what it changed;
`archvow <command> --help` lists all its options, with examples). What the spec stores is
written `archvow <noun> <verb>`: component, question, decision, rule, assumption, hazard,
invariant, column, dependency, feature - `archvow <noun> --help` lists its verbs:

  1. create the project
       archvow init <package> -t pyspark-pipeline -d "<what it does>" \
           -a architects=@<user or group> -a ai_tools=<assistant,...>
  2. declare what must exist: a feature (what the product does), then its components one at a time
       archvow feature add <feature> -d "<what the product does in it>"
       archvow component add <type> <name> -d "<what it must do>" -f <feature> -s <ticket> -u <component,...>
       (types: archvow catalog; settings, logging and the app that plugs the features in are in `shared`)
       or ask the AI assistant to "draft the spec of <feature>" (/archvow-draft-spec): it proposes these
       commands, you read and run them
  3. make the decisions: what each component does, so that nothing is left to chance
       archvow show <component>                  everything about it, on one screen
       archvow specify <component>               answers what is open, one question at a time
       archvow decision make <component> <number> "<answer>"
       archvow rule add <component>[,...] "<a rule in your own words>"   (or --type <type>, --all)
       archvow column set <schema> <column,...> personal|special|none   (personal data: every column classified)
       archvow decision make <component> P1 "<answer>"   (P: personal data, O: operations - when asked)
  4. decide what must never happen (archvow specify asks it too)
       archvow hazard add <component> S<number> <severity> "<what must never happen>"
       archvow invariant add <component> "<what always holds>" --prevents H1
  5. commit the spec
       git add .archvow && git commit -m "<ticket>: specify ..."
  6. write the code in this order - yourself, or tell the AI assistant "implement <component>"
       archvow next
  7. review what the AI assumed, run pytest, commit (the Git hook runs ruff and check), release
       archvow assumption accept <component> <number>        (or: archvow assumption reject ...)
       archvow check --complete
       archvow changes --from <last release> --markdown   (what the release contains)
     optional: a second, approved AI reviews the change and only reports (-a reviewers=<tool>):
       tell it "review the last change", or let the CI run archvow review --base develop

archvow init

usage: archvow init [-h] [-t TEMPLATE] [-d TEXT] [-a KEY=VALUE] [--dir DIR] [--src SRC] [--force]
                    [--no-git] [--no-input] [--adopt]
                    package

Add archvow specs and guards to a repository (no source folders).

positional arguments:
  package               snake_case Python package the code will live in (also the project name)

options:
  -h, --help            show this help message and exit
  -t TEMPLATE, --template TEMPLATE
                        architecture template: <pack>/<template>, or its short name when one pack
                        only has it (default: archvow/python-app; list: archvow catalog); a
                        company template comes in a pack: archvow pack add <folder> first
  -d TEXT, --description TEXT
                        what the system does, in one line: goes into the vow, the README and every
                        doc (default: the package name)
  -a KEY=VALUE, --answer KEY=VALUE
                        answer one of the template's questions (repeatable); the keys are listed
                        below
  --dir DIR             repository root (default: current folder)
  --src SRC             source root (default: src)
  --force               in a folder that is already a project: rewrite the generated files from
                        the template (AGENTS.md, CI, hooks...). A committed spec is always kept;
                        to start over, git rm -r .archvow and commit
  --no-git              do not create a Git repository (default: one is created, branch main)
  --no-input            never ask: in a terminal, init asks the main questions no -a answered
                        (scripts and CI are never asked)
  --adopt               existing code: propose `layer_paths` from folder and file names (core,
                        models, crud, services, api...) so the files stay where they are; written
                        into .archvow/project.vow and printed for the architects to review (with
                        --force in a project: adds the files not mapped yet)

answers of template archvow/python-app@2.1.0 (-a KEY=VALUE, repeatable; another template:
archvow init -t NAME --help, or archvow catalog):
  architects       required
                   Architects who approve guard changes (CODEOWNERS users or groups, e.g.
                   @acme/architects)
                   format: one or more @user or @group/subgroup, separated by spaces
  language         default: en; one of: en, fr
                   Language of the generated documents (README, AGENTS.md, guide, the docs and
                   tasks; archvow's commands stay English). One per project
  python_version   default: 3.12; one of: 3.11, 3.12, 3.13
                   Minimum Python version
  line_length      default: 88; one of: 79, 88, 99
                   Maximum line length (PEP 8 says 79; teams may agree on up to 99)
  platform         default: gitlab; one of: gitlab, github, none
                   Where the code lives (decides CODEOWNERS and the branch rules that make the
                   architects' approval binding)
  ci               default: auto; one of: auto, gitlab, github, jenkins, none
                   What runs the checks and the tests (auto = the platform's own CI - GitLab CI or
                   GitHub Actions; jenkins works with any platform)
  ai_tools         default: copilot; comma-separated agent names, any (a profile for: aider,
                   amazonq, antigravity, claude-code, cline, codex, continue, copilot, cursor,
                   gemini-cli, jetbrains-ai-chat, junie, kiro, opencode, roo, windsurf, none)
                   Approved AI assistants, comma-separated (only these get instructions; others are
                   flagged)
  reviewers        default: (empty); comma-separated agent names, any (a profile for: aider,
                   amazonq, antigravity, claude-code, cline, codex, continue, copilot, cursor,
                   gemini-cli, jetbrains-ai-chat, junie, kiro, opencode, roo, windsurf, none)
                   Approved AI reviewers, comma-separated (they read the change and write a report,
                   never code; never the tool that wrote the code; empty = no AI review)
  sonar            default: no; one of: no, yes
                   Analyse the code with SonarQube (sonar-project.properties, test reports, a scan
                   step in the CI)
  auto_approve     default: yes; one of: yes, no
                   Let the approved AI assistants run the safe commands (archvow check/next/show,
                   ruff, pytest, git status/diff/log...) and edit the code in src/ and tests/
                   without asking each time (no = they ask; the spec commands, the guard files,
                   commits and pushes are never auto-approved)
  mode             default: strict; one of: strict, guided, free
                   How much the AI decides on its own (strict = every open question stops the code
                   until a person answers; guided = the AI takes the suggested answer or proposes
                   its own and goes on, a person reviews before the release; free = the AI decides
                   and goes on, its choices are listed, never blocking)
  sandbox          default: yes with mode=strict, else no; one of: yes, no
                   Refuse to run inside an AI agent that is not in a sandbox (yes = an agent that
                   can write outside the project is stopped; whatever you choose, an agent in YOLO
                   mode is always stopped)
  rules            default: ARCH,STYLE,GDPR,TST; comma-separated, from: ARCH, STYLE, DORA, GDPR,
                   GLBA, US-PRIVACY, TST, all, none
                   Rules archvow check applies (several, all or none); a few safety checks always
                   run whatever you choose
  dependencies     default: (empty)
                   Approved third-party packages besides pytest and hypothesis, comma-separated, as
                   imported (e.g. requests, yaml)
  briefs           default: briefs
                   Folders holding the briefs the spec is drawn from with --from (user stories,
                   functional specs, a Spec Kit `specs` folder), comma-separated (e.g. briefs,specs)
  max_components   default: (empty)
                   The most components this project may hold, foundations included (empty = no
                   limit; past it, split the project) (e.g. 40)
                   format: a whole number, or empty for no limit
  max_code_lines   default: (empty)
                   The most lines of code under the package's folder - not blank, comments or
                   docstrings; tests not counted (empty = no limit) (e.g. 8000)
                   format: a whole number, or empty for no limit
  git_hooks        default: githooks; one of: githooks, pre-commit, none
                   Local checks before each commit (githooks = plain Git hook, no extra tool, no
                   download)
  branch_naming    default: gitflow; one of: gitflow, none
                   Branch names (gitflow = feature/<ticket>-<short-name>, hotfix/<ticket>-<short-
                   name>, release/<version>; none = free)
  ticket_pattern   default: [A-Z][A-Z0-9]*-[0-9]+
                   How this project's tickets are written, as a regular expression - branch names
                   and `component add -s` must follow it (e.g. FATTRIB-[0-9]+ for FATTRIB-002,
                   US-[0-9]+ for US-001; Enter = any Jira-style key)
                   format: a regular expression without quotes, spaces or slashes, such as
                   [A-Z]+-[0-9]+
  pip_index_url    default: (empty)
                   Internal Python package index for CI (empty = public PyPI)
                   format: an http(s) URL such as https://nexus.acme.local/repository/pypi/simple,
                   or empty
  ci_image         default: (empty)
                   Internal CI image with Python and git (empty = public python image)
                   format: an image reference such as registry.acme.local/data/python-spark:3.12, or
                   empty

examples:
  archvow init my_pipeline -a architects=@my-team
  archvow init "$NAME" -t pyspark-pipeline -d "PySpark pipeline for $NAME" \
      -a architects=@my-team -a ai_tools="$AI_TOOL"
  archvow init "$NAME" -d "Daily orders report" -a architects="@alice @data/architects" \
      -a ai_tools=copilot,claude-code -a platform=github -a python_version=3.12 \
      -a ci_image=registry.example.local/python-spark:3.12 \
      -a pip_index_url=https://nexus.example.local/repository/pypi/simple
  archvow init "$NAME" --force -a architects=@my-team -a ci_image=registry.example.local/py:3.12
      # an existing project: rewrites the generated files, keeps the committed spec

  Run init once, to create the project. Developers clone the repository instead.

archvow catalog

usage: archvow catalog [-h] [--json]

List templates, their init answers and component types.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow catalog
  archvow catalog --json

archvow feature

usage: archvow feature [-h] add|rename|remove ...

What the product does: add, rename or remove a feature (a folder of the spec holding its components).

positional arguments:
  add|rename|remove  archvow feature add|rename|remove --help: options and examples
    add              add a feature: .archvow/features/<name>/
    rename           rename a feature (its folder moves with its components)
    remove           remove a feature with no component left

options:
  -h, --help         show this help message and exit

examples:
  archvow feature add orders -d "A customer creates orders and reads their own" --brief briefs/orders.md
  archvow feature rename orders ordering
  archvow feature remove orders          # refused while it has components

archvow feature add

usage: archvow feature add [-h] [--json] -d TEXT [--brief FILE] name

Add a feature: .archvow/features/<name>/.

positional arguments:
  name                  lower case, digits and _: it names the folder (orders, invoices) - what
                        the product does, not a ticket

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -d TEXT, --description TEXT
                        what the product does in it
  --brief FILE          the brief people wrote for it (briefs/orders.md)

examples:
  archvow feature add orders -d "A customer creates orders and reads their own"
  archvow feature add orders -d "..." --brief briefs/orders.md

archvow feature rename

usage: archvow feature rename [-h] [--json] feature name

Rename a feature (its folder moves with its components).

positional arguments:
  feature     the feature (archvow show lists them)
  name        its new name

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow feature rename orders ordering

archvow feature remove

usage: archvow feature remove [-h] [--json] feature

Remove a feature with no component left.

positional arguments:
  feature     the feature (archvow show lists them)

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow feature remove orders

archvow component

usage: archvow component [-h] add|edit|accept|move|remove ...

What must exist: add, change, move or remove a component of the spec.

positional arguments:
  add|edit|accept|move|remove
                        archvow component add|edit|accept|move|remove --help: options and examples
    add                 specify a component (writes the spec, never code)
    edit                change a component's description, ticket, dependencies or signature
    accept              after a change of its description, signature or routes: a person looked at
                        what was recorded before and each item still holds (signs them again)
    move                move a component to another feature (its vow moves; its id, uses and tests
                        stay)
    remove              remove a component with its decisions, hazards and invariants (asks first)

options:
  -h, --help            show this help message and exit

examples:
  archvow component add <type> <name> -d "<what it must do>" --feature <feature> -s <ticket> -u <component>
  archvow component edit <component> -d "<the new description>"
  archvow component accept <component>     # what was recorded before that change still holds
  archvow component move <component> <feature>
  archvow component remove <component>

archvow component add

usage: archvow component add [-h] [--json] -d TEXT [-f FEATURE] [-s TICKET] [-u IDS] [-k KIND]
                             [--signature SIGNATURE] [--container CONTAINER] [-g GROUP] [-r ROUTE]
                             [--from BRIEF] [--file PATH]
                             type name

Specify a component (writes the spec, never code).

positional arguments:
  type                  component type (listed below)
  name                  short snake_case name; the type turns it into the component id (below)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -d TEXT, --description TEXT
                        what the component must do - the instruction the AI assistant or developer
                        implements, with the details that matter (change it with archvow component
                        edit)
  -f FEATURE, --feature FEATURE
                        the feature it belongs to (archvow feature add); default: the project's
                        one feature - the first component makes it, named after the project;
                        `shared`: what every feature uses
  -s TICKET, --spec TICKET
                        ticket or user story it implements, e.g. US-001
  -u IDS, --uses IDS    comma-separated ids of the components it uses
  -k KIND, --kind KIND  for the types that have kinds (listed below): what it reads or writes,
                        e.g. a reader of files (the default), a table, a database (jdbc), a
                        connector or custom code; fixed once added (remove and add again to change
                        it)
  --signature SIGNATURE
                        replace the public function's signature (only for the types that allow it,
                        listed below; e.g. a second input)
  --container CONTAINER
                        container id, when the project has several (default: the first)
  -g GROUP, --group GROUP
                        a folder inside the layer, to organise many components, e.g. orders:
                        <layer>/orders/<file>.py and tests/<layer>/orders/test_<id>.py
  -r ROUTE, --route ROUTE
                        for a router: one route, "<function>: <METHOD> <path>" (repeatable), e.g.
                        "get_order: GET /orders/{order_id}"
  --from BRIEF          the brief it is drawn from: briefs/<file>.md, or
                        briefs/<file>.md#<section> (a heading); archvow check warns when that text
                        changes (ARCH039)
  --file PATH           adopt an existing module where it is (path from the project root): its
                        layer comes from `layer_paths`, its symbols are the public functions,
                        classes, constants and routes the file has today

component types of template archvow/python-app@2.1.0 (TYPE NAME gives the component id):
  utility         <name>          A small helper every layer may use (no business rule, no I/O beyond what it says).
                                  name: verb_noun, e.g. parse_date; signature (--signature changes
                                  it)
  model           <name>_model    A data class - the shape and the validation of one kind of data.
                                  name: the data, e.g. invoice
  error           <name>_error    A domain error - raised by the domain and the services, turned into a message and an exit code by the entry point.
                                  name: what went wrong, e.g. invoice_not_found
  logic           <name>          A pure business rule - a function of its inputs, no I/O.
                                  name: verb_noun, e.g. compute_total; signature (--signature
                                  changes it)
  repository      <name>_repository Stores and finds one kind of data (files, a database).
                                  name: the data, plural, e.g. invoices
  client          <name>_client   Talks to one other system (an HTTP API, a mail server, a message broker...).
                                  name: the other system, e.g. mailer
  service         <name>          One operation - calls repositories and clients and applies the domain's rules.
                                  name: verb_noun, e.g. send_invoice; signature (--signature changes
                                  it)
  cli             <name>_cli      The command line - parses the arguments, calls a service, prints the result, sets the exit code.
                                  name: the program, e.g. invoices

examples:
  archvow component add model invoice -d "An invoice: number str, customer str, amount Decimal >= 0, status draft | sent | paid" -s US-001
  archvow component add error invoice_not_found -d "No invoice with this number"
  archvow component add logic compute_total -d "Sum of the lines, minus the discount, rounded to 2 decimals" -u invoice_model
  archvow component add repository invoices -d "Stores and finds invoices in a JSON file per invoice" -u invoice_model
  archvow component add client mailer -d "Sends an e-mail through the company's SMTP relay"
  archvow component add service send_invoice -d "Find the invoice, check it is a draft, send it, mark it sent" -u invoices_repository,mailer_client
  archvow component add cli invoices -d "Command line: send NUMBER, list [--status]" -u send_invoice
  archvow component add service export_invoices -g reports -d "..."    # in the folder p3_services/reports/

archvow component edit

usage: archvow component edit [-h] [--json] [-d TEXT] [-s TICKET] [-u IDS] [--signature SIGNATURE]
                              [-g GROUP] [-r ROUTE] [--owners WHO] [--from BRIEF]
                              component

Change a component's description, ticket, dependencies or signature.

positional arguments:
  component             component id, as `archvow next` or `archvow show` shows it

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -d TEXT, --description TEXT
                        the new description (what gets implemented); what was recorded before is
                        then to review (archvow component accept)
  -s TICKET, --spec TICKET
                        the new ticket or user story
  -u IDS, --uses IDS    the complete new list, comma-separated ('' for none)
  --signature SIGNATURE
                        only for types with an overridable signature
  -g GROUP, --group GROUP
                        move it to another folder inside its layer ('' for none); then git mv its
                        files
  -r ROUTE, --route ROUTE
                        for a router: the complete new list of routes, one -r each
  --owners WHO          who approves changes to its vow besides the architects: @user, @group
                        (several with spaces or commas; '' for the architects only). Written in
                        CODEOWNERS; a weakened guard still needs the architects (ARCH020)
  --from BRIEF          the brief it is drawn from: briefs/<file>.md, or
                        briefs/<file>.md#<section> (a heading); archvow check warns when that text
                        changes (ARCH039)

examples:
  archvow component edit send_invoice -d "Find the invoice, check it is a draft, send it, mark it sent; refuse a paid one"
  archvow component edit export_invoices -g exports

archvow component accept

usage: archvow component accept [-h] [--json] component

After a change of its description, signature or routes: a person looked at what was recorded before and each item still holds (signs them again).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow show <component>               # the items to review, and why
  archvow decision make <component> <n> "<the new answer>"   # one no longer holds: record it again
  archvow component accept <component>   # every one still holds

archvow component move

usage: archvow component move [-h] [--json] component feature

Move a component to another feature (its vow moves; its id, uses and tests stay).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  feature     the feature it goes to (archvow show lists them)

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow component move <component> <feature>

archvow component remove

usage: archvow component remove [-h] [--json] [--yes] component

Remove a component with its decisions, hazards and invariants (asks first).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow component remove send_invoice   # with its decisions, hazards and invariants; then delete its files

archvow show

usage: archvow show [-h] [--json] [component] [H<n>|INV<n>]

Everything about a component on one screen (the whole project: archvow next).

positional arguments:
  component    one component, a rule R1, a file (file.py or file.py:<line>), or any other name to
               find in the project
  H<n>|INV<n>  one of its hazards or invariants

options:
  -h, --help   show this help message and exit
  --json       machine-readable output (IDE plugin, scripts)

examples:
  archvow show send_invoice             # its questions, rules, safety questions S1, S2...
  archvow show send_invoice INV1        # one of its hazards (H1) or invariants (INV1); a rule: archvow show R1

archvow specify

usage: archvow specify [-h] [component]

Answer what is still open, one question at a time (in a terminal).

positional arguments:
  component   only this component (default: all)

options:
  -h, --help  show this help message and exit

examples:
  archvow specify                         # every component: decisions to make, then safety
  archvow specify <component>             # one component (in a terminal; to read: archvow show)

archvow question

usage: archvow question [-h] add|accept|remove ...

An open question: it blocks the component until a person answers it.

positional arguments:
  add|accept|remove  archvow question add|accept|remove --help: options and examples
    add              record an open question (blocks implementation until answered)
    accept           keep a question the AI asked, to answer it later (a person, never the AI;
                     answering it keeps it too)
    remove           remove a question a person added, with its answer (asks first; the template's
                     questions stay)

options:
  -h, --help         show this help message and exit

examples:
  archvow question add <component> "<the question>"
  archvow decision make <component> <n> "<the answer>"     # a person answers it
  archvow question accept <component> <n>                 # a person keeps the AI's question, to answer later
  archvow question remove <component> <n>

archvow question add

usage: archvow question add [-h] [--json] [--from BRIEF] [--why REASON] component question

Record an open question (blocks implementation until answered).

positional arguments:
  component     component id, as `archvow next` or `archvow show` shows it
  question      the question; a person answers it with archvow decision make

options:
  -h, --help    show this help message and exit
  --json        machine-readable output (IDE plugin, scripts)
  --from BRIEF  the brief it is drawn from: briefs/<file>.md, or briefs/<file>.md#<section> (a
                heading); archvow check warns when that text changes (ARCH039)
  --why REASON  why it is added, in a few words (what in the spec or the brief leaves it open) -
                shown to the person who keeps it

examples:
  archvow question add send_invoice "Is the customer copied on the e-mail?"

archvow question accept

usage: archvow question accept [-h] [--json] component number

Keep a question the AI asked, to answer it later (a person, never the AI; answering it keeps it too).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      the question's number, as archvow show prints it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow question accept <component> 4      # its number, as archvow show prints it

archvow question remove

usage: archvow question remove [-h] [--json] [--yes] component number

Remove a question a person added, with its answer (asks first; the template's questions stay).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      the question's number, as archvow show prints it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow question remove send_invoice 7      # a question a person added (the template's questions stay)

archvow decision

usage: archvow decision [-h] make|add|propose|accept ...

What a component does: answer its questions, so nothing is left to chance.

positional arguments:
  make|add|propose|accept
                        archvow decision make|add|propose|accept --help: options and examples
    make                answer questions by number (archvow show lists them)
    propose             the AI's answer to an open question, for a person to review (mode guided
                        or free)
    accept              accept what the AI proposed: it becomes a decision (a person, never the
                        AI)
    add                 add a question the template does not ask, with its answer

options:
  -h, --help            show this help message and exit

examples:
  archvow decision make <component> <n> "<the answer>"
  archvow decision add <component> "<a new question>" "<its answer>"

archvow decision make

usage: archvow decision make [-h] [--json] [--type TYPE] [--unset] component [number] [answer]

Answer questions by number (archvow show lists them).

positional arguments:
  component    component id, as `archvow next` or `archvow show` shows it (with --type: the
               question's number)
  number       the question's number in archvow show: 1, 3,4, P1 or O2 (with --type: the answer)
  answer       the decision, in plain words; it becomes a test (none: the template's suggested
               answer, when it gives one)

options:
  -h, --help   show this help message and exit
  --json       machine-readable output (IDE plugin, scripts)
  --type TYPE  answer the question once for every component of this type, today's and later ones
               (an architect's decision; a component's own answer still wins)
  --unset      with --type: no longer answer it for the whole type (each component answers it
               again)

examples:
  archvow decision make invoice_model 1 "number, customer and amount required; note optional, default empty"
  archvow decision make send_invoice 3,4 "Only drafts; sending twice is refused with AlreadySent"
  archvow decision make send_invoice 2         # no answer: the suggested one ("show" prints it)

archvow decision propose

usage: archvow decision propose [-h] [--json] component number answer

The AI's answer to an open question, for a person to review (mode guided or free).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      the question's number in archvow show
  answer      the answer the AI chose, in plain words

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow decision propose <component> 6 "<the answer the AI chose>"     # then it goes on
  archvow decision accept <component> 6                                  # a person reviews it

archvow decision accept

usage: archvow decision accept [-h] [--json] component number

Accept what the AI proposed: it becomes a decision (a person, never the AI).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      the question's number in archvow show

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow decision accept <component> 6

archvow decision add

usage: archvow decision add [-h] [--json] [--from BRIEF] component question answer

Add a question the template does not ask, with its answer.

positional arguments:
  component     component id, as `archvow next` or `archvow show` shows it
  question      the new question
  answer        the decision, in plain words; it becomes a test

options:
  -h, --help    show this help message and exit
  --json        machine-readable output (IDE plugin, scripts)
  --from BRIEF  the brief it is drawn from: briefs/<file>.md, or briefs/<file>.md#<section> (a
                heading); archvow check warns when that text changes (ARCH039)

examples:
  archvow decision add send_invoice "May an invoice of zero be sent?" "No, it is refused"

archvow rule

usage: archvow rule [-h] add|edit|accept|remove ...

A rule of what components do, in plain words (R1, R2... for the project).

positional arguments:
  add|edit|accept|remove
                        archvow rule add|edit|accept|remove --help: options and examples
    add                 record a rule for one or more components, a type, or all
    edit                change a rule's text (its scope stays)
    accept              keep a rule the AI added (a person, never the AI)
    remove              remove a rule (asks first)

options:
  -h, --help            show this help message and exit

examples:
  archvow rule add <component> "<a rule in your own words>"
  archvow rule edit R3 "<the new text>"
  archvow rule accept R3          # a person keeps a rule the AI added
  archvow rule remove R3

archvow rule add

usage: archvow rule add [-h] [--json] [--type TYPE | --all] [--from BRIEF] [--why REASON]
                        ARG [ARG ...]

Record a rule for one or more components, a type, or all.

positional arguments:
  ARG           <component>[,<component>...] "rule", or only "rule" with --type/--all

options:
  -h, --help    show this help message and exit
  --json        machine-readable output (IDE plugin, scripts)
  --type TYPE   every component of this type, including later ones
  --all         every component
  --from BRIEF  the brief it is drawn from: briefs/<file>.md, or briefs/<file>.md#<section> (a
                heading); archvow check warns when that text changes (ARCH039)
  --why REASON  why it is added, in a few words (what in the spec or the brief leaves it open) -
                shown to the person who keeps it

examples:
  archvow rule add send_invoice "Given a paid invoice, when it is sent, then it is refused"
  archvow rule add send_invoice "When the mail server does not answer, send_invoice keeps the invoice unsent"
  archvow rule add --type repository "Given a file half written, when it is read, then it is refused"

archvow rule edit

usage: archvow rule edit [-h] [--json] RULE text

Change a rule's text (its scope stays).

positional arguments:
  RULE        the rule's id, e.g. R3
  text        the new text

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow rule edit R1 "Given a paid invoice, when it is sent again, then it is refused"

archvow rule accept

usage: archvow rule accept [-h] [--json] RULE

Keep a rule the AI added (a person, never the AI).

positional arguments:
  RULE        the rule's id, e.g. R3

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow rule accept R3

archvow rule remove

usage: archvow rule remove [-h] [--json] [--yes] RULE

Remove a rule (asks first).

positional arguments:
  RULE        the rule's id, e.g. R3

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow rule remove R1

archvow assumption

usage: archvow assumption [-h] add|accept|reject ...

What the implementer assumed: recorded, then accepted or rejected by a person.

positional arguments:
  add|accept|reject  archvow assumption add|accept|reject --help: options and examples
    add              record an implementer assumption (blocks until accepted)
    accept           accept assumption number N (a person, never the AI)
    reject           reject assumption number N (a person, never the AI)

options:
  -h, --help         show this help message and exit

examples:
  archvow assumption add <component> "<what was assumed>"
  archvow show <component>                           # lists the assumptions
  archvow assumption accept <component> 1            # a person, never the AI (or: reject)

archvow assumption add

usage: archvow assumption add [-h] [--json] component text

Record an implementer assumption (blocks until accepted).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  text        what the implementer assumed

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow assumption add <component> "<what was assumed>"

archvow assumption accept

usage: archvow assumption accept [-h] [--json] component number

Accept assumption number N (a person, never the AI).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      assumption number, as archvow show shows it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow show <component>      # lists the assumptions
  archvow assumption accept <component> 1

archvow assumption reject

usage: archvow assumption reject [-h] [--json] component number

Reject assumption number N (a person, never the AI).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  number      assumption number, as archvow show shows it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow show <component>      # lists the assumptions
  archvow assumption reject <component> 1

archvow brief

usage: archvow brief [-h] show|accept ...

The documents the spec is drawn from (briefs/): see what each section gives, record a reviewed change.

positional arguments:
  show|accept  archvow brief show|accept --help: options and examples
    show       every brief, section by section: what the spec draws from it, the sections not used
               yet, the ones changed since
    accept     the brief changed and what was drawn from it is reviewed: record its new text (a
               person, never the AI)

options:
  -h, --help   show this help message and exit

examples:
  archvow brief show                              # each section: what is drawn from it, not used yet, changed
  archvow component add reader sales -d "..." --from briefs/sales.md#input-files
  archvow check                                   # ARCH039 when that section changes
  archvow brief accept briefs/sales.md#input-files     # reviewed: record its new text

archvow brief show

usage: archvow brief show [-h] [--json]

Every brief, section by section: what the spec draws from it, the sections not used yet, the ones changed since.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow brief show
  archvow brief show --json     # for an IDE plugin

archvow brief accept

usage: archvow brief accept [-h] [--json] BRIEF

The brief changed and what was drawn from it is reviewed: record its new text (a person, never the AI).

positional arguments:
  BRIEF       briefs/<file>.md, or briefs/<file>.md#<section>

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow brief accept briefs/sales.md#input-files     # one section
  archvow brief accept briefs/sales.md                 # every item drawn from the file

archvow hazard

usage: archvow hazard [-h] add|dismiss|edit|accept|remove ...

What must never happen: record, dismiss, change, keep or remove a hazard.

positional arguments:
  add|dismiss|edit|accept|remove
                        archvow hazard add|dismiss|edit|accept|remove --help: options and examples
    add                 record what must never happen
    dismiss             record that a guide word does not apply, and why
    edit                change a hazard's words or severity; its id, invariants and tests stay
    accept              keep a hazard the AI added, with the invariants it added to prevent it (a
                        person, never the AI)
    remove              remove a hazard, or undo a "not applicable" (asks first)

options:
  -h, --help            show this help message and exit

examples:
  archvow show <component>              # the numbered safety questions S1, S2...
  archvow hazard add <component> <number> <severity> "<what must never happen>"
  archvow hazard dismiss <component> <number> "<why it cannot happen here>"
  archvow hazard edit <component> H1 "<new words>" --severity critical
  archvow hazard accept <component> H1      # a person keeps a hazard the AI added
  archvow hazard remove <component> H1

archvow hazard add

usage: archvow hazard add [-h] [--json] [--why REASON]
                          component number {critical,high,medium,low} [description]

Record what must never happen.

positional arguments:
  component             component id, or 'system' for the whole system
  number                the safety question's number in archvow show, S2 or 2 (or its guide word,
                        listed below)
  {critical,high,medium,low}
                        critical | high | medium | low
  description           what must never happen, in plain words (default: the suggestion archvow
                        show shows; for critical or high, its invariant is added too - the
                        decision that covers the question, when one does)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --why REASON          why it is added, in a few words (what in the spec or the brief leaves it
                        open) - shown to the person who keeps it

safety questions: use the number archvow show <component> shows (S2, or 2); the guide word works too.
guide words of template archvow/python-app@2.1.0:
  missing    Something missing (an input, a file, a setting, a dependency down): what must never
             happen?
  more       Too much (duplicates, an unbounded list, a huge file): what must never happen?
  wrong      Wrong input (invalid values, out of range, a wrong format): what must never happen?
  partial    Half done (a file half written, a change saved here and not there, a crash in the
             middle): what must never happen?
  repeated   Done twice (run twice, retried, the same input twice): what must never happen?
  stale      Old data used as current (a cache, an old file): what must never happen?
  exposed    Data exposed (secrets or personal data in a log, an output, an error message): what
             must never happen?
  concurrent Two runs at the same time (two processes, two users): what must never happen?

severities - how bad it would be:
  critical  data lost, or wrong results that cannot be undone (needs a property test or stronger)
  high      wrong results reach users (needs an invariant with a test)
  medium    a delay or a re-run, no wrong data
  low       noticed and fixed without harm

examples:
  archvow hazard add send_invoice S1 critical      # the suggestion of question S1, and its invariant
  archvow hazard add send_invoice repeated high "An invoice is sent twice"
  archvow hazard add invoices_repository partial high "An invoice file is half written"

archvow hazard dismiss

usage: archvow hazard dismiss [-h] [--json] component number [rationale]

Record that a guide word does not apply, and why.

positional arguments:
  component   component id, or 'system'
  number      the safety question's number in archvow show, S2 or 2 (or its guide word, listed
              below); several: S2,S4
  rationale   why it cannot happen here (default: the decision that says there is nothing to
              protect, e.g. "decision 2: none")

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

safety questions: use the number archvow show <component> shows (S2, or 2); the guide word works too.
guide words of template archvow/python-app@2.1.0:
  missing    Something missing (an input, a file, a setting, a dependency down): what must never
             happen?
  more       Too much (duplicates, an unbounded list, a huge file): what must never happen?
  wrong      Wrong input (invalid values, out of range, a wrong format): what must never happen?
  partial    Half done (a file half written, a change saved here and not there, a crash in the
             middle): what must never happen?
  repeated   Done twice (run twice, retried, the same input twice): what must never happen?
  stale      Old data used as current (a cache, an old file): what must never happen?
  exposed    Data exposed (secrets or personal data in a log, an output, an error message): what
             must never happen?
  concurrent Two runs at the same time (two processes, two users): what must never happen?

severities - how bad it would be:
  critical  data lost, or wrong results that cannot be undone (needs a property test or stronger)
  high      wrong results reach users (needs an invariant with a test)
  medium    a delay or a re-run, no wrong data
  low       noticed and fixed without harm

examples:
  archvow hazard dismiss <component> S3 "<why it cannot happen here>"

archvow hazard edit

usage: archvow hazard edit [-h] [--json] [--severity {critical,high,medium,low}]
                           WHAT [H<n>] [words]

Change a hazard's words or severity; its id, invariants and tests stay.

positional arguments:
  WHAT                  the component (then H<n>), or the hazard's id <component>.H1
  H<n>                  with a component: its hazard H<n>
  words                 what must never happen, in new words

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --severity {critical,high,medium,low}
                        critical | high | medium | low

examples:
  archvow hazard edit <component> H1 "<new words>"
  archvow hazard edit <component> H1 --severity critical      # its invariants are marked to review

archvow hazard accept

usage: archvow hazard accept [-h] [--json] WHAT [H<n>]

Keep a hazard the AI added, with the invariants it added to prevent it (a person, never the AI).

positional arguments:
  WHAT        the component (then H<n>), or the hazard's id <component>.H1
  H<n>        with a component: its hazard H<n>

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow hazard accept <component> H1
  archvow hazard accept <component>.H1

archvow hazard remove

usage: archvow hazard remove [-h] [--json] [--yes] WHAT [H<n>|S<n>]

Remove a hazard, or undo a "not applicable" (asks first).

positional arguments:
  WHAT        the component (then H<n> or S<n>), or the hazard's id <component>.H1
  H<n>|S<n>   with a component: its hazard H<n>, or the safety question S<n> marked not applicable

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow hazard remove send_invoice.H1         # its invariants stay, no longer pointing to it
  archvow hazard remove send_invoice S2         # undo a "not applicable": the question is open again

archvow invariant

usage: archvow invariant [-h] add|edit|remove ...

What must always hold, so a hazard cannot happen.

positional arguments:
  add|edit|remove  archvow invariant add|edit|remove --help: options and examples
    add            add an invariant guarding one or more hazards
    edit           change an invariant's words; its id, hazards and test marker stay
    remove         remove an invariant (never the last guard of a critical or high hazard; asks
                   first)

options:
  -h, --help       show this help message and exit

examples:
  archvow invariant add <component> "<what always holds>"
  archvow invariant remove <component> INV1

archvow invariant add

usage: archvow invariant add [-h] [--json] [--from-decision N] [--prevents IDS] [--why REASON]
                             component [statement]

Add an invariant guarding one or more hazards.

positional arguments:
  component          component id, or 'system'
  statement          the property, in plain words; it must be checkable

options:
  -h, --help         show this help message and exit
  --json             machine-readable output (IDE plugin, scripts)
  --from-decision N  decision N of the component protects the hazard: the invariant says what it
                     answers (and follows it), and its test marked decision(N) proves it
  --prevents IDS     the hazard(s) it prevents: H1 (this component's), orders_reader.H1
                     (another's) (default: the component's one hazard that no invariant prevents
                     yet)
  --why REASON       why it is added, in a few words - shown to the person who keeps it

tested by - every invariant is checked by a test that carries its number:
  @pytest.mark.invariant("clean_orders.INV1")   on a test (a Hypothesis @given test for a critical hazard)
archvow check fails while a coded component's invariant has no such test. Experts can ask for
another kind of check (a guard in the code, a model, a proof): see the Rules documentation.

examples:
  archvow invariant add send_invoice "an invoice is sent at most once"
  archvow invariant add invoices_repository "an invoice file is complete or absent" --prevents H1

archvow invariant edit

usage: archvow invariant edit [-h] [--json] WHAT [INV<n>] [words]

Change an invariant's words; its id, hazards and test marker stay.

positional arguments:
  WHAT        the component (then INV<n>), or the id <component>.INV1
  INV<n>      with a component: its invariant INV<n>
  words       what always holds, in new words

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow invariant edit <component> INV1 "<new words>"

archvow invariant remove

usage: archvow invariant remove [-h] [--json] [--yes] WHAT [INV<n>]

Remove an invariant (never the last guard of a critical or high hazard; asks first).

positional arguments:
  WHAT        the component, then INV<n> (or the id <component>.INV1)
  INV<n>      the invariant's number in that component, e.g. INV1

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow invariant remove send_invoice.INV1    # never the last guard of a critical or high hazard

archvow column

usage: archvow column [-h] set ...

Personal data: classify columns, or say a component removes or pseudonymises them.

positional arguments:
  set         archvow column set --help: options and examples
    set       classify columns: personal, special (sensitive) or none, with tags

options:
  -h, --help  show this help message and exit

examples:
  archvow column set <schema> <column,...> personal|special|none

archvow column set

usage: archvow column set [-h] [--json] [--tag TAG] [--removes | --pseudonymises]
                          component names [{personal,special,none}]

Classify columns: personal, special (sensitive) or none, with tags.

positional arguments:
  component             a schema or model component (classes); any component for --removes /
                        --pseudonymises
  names                 column names, separated by commas
  {personal,special,none}
                        personal | special | none

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --tag TAG             what a privacy regime covers: health, financial, biometric, children,
                        precise-location (repeat it, or commas; none removes them)
  --removes             this component drops these columns
  --pseudonymises       this component pseudonymises or encrypts them

examples:
  archvow column set <schema> customer_email,phone personal
  archvow column set <schema> diagnosis special --tag health     # health, religion, biometrics... (sensitive)
  archvow column set <schema> card_number personal --tag financial   # GLBA: nonpublic personal information
  archvow column set <schema> order_id,amount none
  archvow column set <transformation> phone --removes        # dropped before the data is written
  archvow column set <transformation> customer_email --pseudonymises

archvow dependency

usage: archvow dependency [-h] add|remove ...

The third-party register (DORA): supplier, licence, criticality.

positional arguments:
  add|remove  archvow dependency add|remove --help: options and examples
    add       record a package of requirements.txt in the register
    remove    remove a package from the register

options:
  -h, --help  show this help message and exit

examples:
  archvow dependency add pyspark --supplier "Apache Software Foundation" --licence Apache-2.0 --criticality critical
  archvow dependency remove pyspark

archvow dependency add

usage: archvow dependency add [-h] [--json] --supplier WHO --licence SPDX --criticality LEVEL name

Record a package of requirements.txt in the register.

positional arguments:
  name                 the package, as requirements.txt names it

options:
  -h, --help           show this help message and exit
  --json               machine-readable output (IDE plugin, scripts)
  --supplier WHO       who provides and maintains it
  --licence SPDX       its licence (SPDX name, e.g. Apache-2.0, MIT)
  --criticality LEVEL  critical (the service stops without it; pinned with ==) | important | minor

examples:
  archvow dependency add fastapi --supplier "Sebastián Ramírez (tiangolo)" --licence MIT --criticality critical

archvow dependency remove

usage: archvow dependency remove [-h] [--json] name

Remove a package from the register.

positional arguments:
  name        the package

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow dependency remove requests

archvow example

usage: archvow example [-h] add|remove ...

A business example: this input gives this result, locked by its fingerprint.

positional arguments:
  add|remove  archvow example add|remove --help: options and examples
    add       record an example whose files are in tests/examples/<component>/<example>/ (input/
              and expected/); run again after its files change
    remove    remove an example from the spec (its files stay; asks first)

options:
  -h, --help  show this help message and exit

examples:
  archvow example add <component> <example> -s <ticket>   # its files: tests/examples/<component>/<example>/
  archvow example remove <component> <example>

archvow example add

usage: archvow example add [-h] [--json] [-s TICKET] [--from BRIEF] component example

Record an example whose files are in tests/examples/<component>/<example>/ (input/ and expected/); run again after its files change.

positional arguments:
  component             component id, as `archvow next` or `archvow show` shows it
  example               its folder name: letters, digits, - and _, often the ticket first

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -s TICKET, --spec TICKET
                        the ticket it comes from (e.g. the Jira story)
  --from BRIEF          the brief it is drawn from: briefs/<file>.md, or
                        briefs/<file>.md#<section> (a heading); a link only (a person copies the
                        rows into the files); archvow check warns when that text changes (ARCH039)

examples:
  archvow example add clean_orders FATTRIB-012-negative-quantity -s FATTRIB-012
  #   tests/examples/clean_orders/FATTRIB-012-negative-quantity/input/orders.csv
  #   tests/examples/clean_orders/FATTRIB-012-negative-quantity/expected/orders.csv
  #   tests/examples/clean_orders/FATTRIB-012-negative-quantity/scenario.feature  (optional; Rule: clean_orders.INV1)
  archvow example add clean_orders FATTRIB-012-negative-quantity --from briefs/orders.md#cleaning

archvow example remove

usage: archvow example remove [-h] [--json] [--yes] component example

Remove an example from the spec (its files stay; asks first).

positional arguments:
  component   component id, as `archvow next` or `archvow show` shows it
  example     the example, as archvow show <component> lists it

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --yes       do not ask for confirmation (scripts)

examples:
  archvow example remove clean_orders FATTRIB-012-negative-quantity

archvow prompt

usage: archvow prompt [-h] [-f FEATURE] [--task N] [--clarify] [--max N] [component]

Print a component's task for an AI assistant: its spec, what it uses, the rules.

positional arguments:
  component             component id, as `archvow next` or `archvow show` shows it (with
                        --feature: the one to build now; default: the feature's next ready one)

options:
  -h, --help            show this help message and exit
  -f FEATURE, --feature FEATURE
                        the whole feature: what it does, one line per component (the AI sees every
                        one), then the full task of the component to build now
  --task N              a spec cut into tasks (archvow show lists them): task N instead of the
                        next open one
  --clarify             ask the AI to list ambiguities as questions instead (it answers none)
  --max N               with --clarify: at most N questions, the riskiest first (default 5)

examples:
  archvow prompt <component>                 # paste into an assistant that cannot read files
  archvow prompt <component>                 # a big spec: its next open task (T2 of 3...)
  archvow prompt <component> --task 1        # one task of it
  archvow prompt <component> --clarify       # ask the AI what is unclear (it decides nothing)
  archvow prompt <component> --clarify --max 3    # at most 3 questions, the riskiest first
  archvow prompt --feature <feature>         # the feature, then its next component to build

archvow next

usage: archvow next [-h] [--json] [-f FEATURE] [--base REF]

Planned components in build order, with what each one waits for.

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -f FEATURE, --feature FEATURE
                        only this feature's components
  --base REF            the branch the merge request targets (main, origin/main): counts the
                        change against its review budget (ARCH022); when it is full, nothing more
                        is ready

examples:
  archvow next                     # then, to the AI assistant: implement everything archvow next lists as ready
  archvow next --base develop      # the same, and nothing is ready once the change is too big to review
  archvow next --feature orders    # one feature's components only

archvow workspace

usage: archvow workspace [-h] [--json] [--since DIGEST]

Everything an editor shows of the project, in one call (for tools).

options:
  -h, --help      show this help message and exit
  --json          machine-readable output (IDE plugin, scripts)
  --since DIGEST  the digest of an earlier answer: when nothing changed since, print only
                  {"unchanged": true, "digest": ...}

examples:
  archvow workspace --json                  # the spec, every component, next, check, briefs, templates
  archvow workspace --json --since 4f2a9c0d1e3b   # only {"unchanged": true} when nothing changed

archvow check

usage: archvow check [-h] [--json] [--file FILE] [--stdin] [--base REF] [--accept-weakening]
                     [--complete] [--all] [--test-report JUNIT_XML]

Verify the code against the spec (exit 1 on errors).

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --file FILE           only report violations for this file (an IDE, or an AI checking the file
                        it writes)
  --stdin               read --file content from stdin (unsaved buffer)
  --base REF            git ref to compare guards with, e.g. origin/main
  --accept-weakening    report ARCH020 as a warning (pass only after architect approval)
  --complete            also fail on planned components not built yet (release gate)
  --all                 list every warning one by one (by default the open safety questions,
                        ARCH035, and the tests not marked with their decision or rule, ARCH038,
                        are counted on one line)
  --test-report JUNIT_XML
                        pytest's JUnit report (pytest --junitxml=...): every invariant's test must
                        have run and passed (DORA004)

examples:
  archvow check                             # before every commit (the Git hook runs it)
  archvow check --base origin/main          # merge request: no guard weakened
  archvow check --complete                  # release gate: everything planned is built

archvow review

usage: archvow review [-h] [--json] --base REF [--acknowledged]

Have an approved AI reviewer review the change, without a person (CI; it never changes code).

options:
  -h, --help      show this help message and exit
  --json          machine-readable output (IDE plugin, scripts)
  --base REF      the branch the merge request targets, e.g. origin/main: the components changed
                  since then are reviewed
  --acknowledged  a person has read the report: HIGH findings no longer fail (CI passes it when
                  the merge request has the label review-acknowledged)

examples:
  archvow review --base origin/main                      # merge request: report in reviews/last-change.md
  archvow review --base origin/main --acknowledged       # a person has read the HIGH findings

archvow version

usage: archvow version [-h] [--json]

Archvow's version, and the version of its --json output (contract).

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow version
  archvow version --json      # {"contract": "MAJOR.MINOR", "archvow": ...}

archvow freeze

usage: archvow freeze [-h] [--json]

Accept today's violations; only new ones fail from now on.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow freeze      # adopting archvow on existing code; commit the result

archvow audit

usage: archvow audit [-h] [--json] [--strict]

Who recorded each decision, hazard and invariant, cross-checked with Git.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --strict    exit 1 if any record is flagged

examples:
  archvow audit
  archvow audit --strict      # in CI

archvow changes

usage: archvow changes [-h] [--json] --from REF [--to REF] [--markdown]

What a release contains, merge by merge: ticket, spec, components, tests, who merged and approved.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --from REF  the previous release (a tag or a commit)
  --to REF    the release (default: HEAD)
  --markdown  Markdown output

examples:
  archvow changes --from v1.2.0 --to v1.3.0 --markdown > CHANGES.md
  archvow changes --from v1.2.0                    # up to HEAD

archvow diff

usage: archvow diff [-h] [--json] --base REF [--markdown]

Spec changes since a branch, in plain words (merge-request report).

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)
  --base REF  git ref, e.g. origin/main
  --markdown  Markdown output for merge-request reports

examples:
  archvow diff --base origin/main --markdown

archvow doctor

usage: archvow doctor [-h] [--json]

Check this machine's setup for the project, with the fix for each problem.

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow doctor          # Python, archvow (command and version), Git hook, the template's tools

archvow completion

usage: archvow completion [-h] [--install] {zsh,bash,powershell}

Tab completion for your shell (zsh, bash or powershell).

positional arguments:
  {zsh,bash,powershell}
                        the shell to complete in

options:
  -h, --help            show this help message and exit
  --install             write the script to ~/.archvow-completion.<ext> and load it from the
                        shell's startup file (once); it works even when archvow is not on the PATH
                        yet when the shell starts

examples:
  archvow completion zsh --install          # zsh, the macOS default: ~/.archvow-completion.zsh + one line in ~/.zshrc
  archvow completion bash --install         # bash: ~/.archvow-completion.bash + one line in ~/.bashrc (~/.bash_profile on macOS)
  archvow completion powershell --install   # PowerShell: ~/.archvow-completion.ps1 + one line in $PROFILE
  archvow completion zsh                    # only print the script
  Run it once, open a new terminal. Then Tab completes commands, options and the project's own names: archvow sp<Tab> -> specify,
  archvow show <Tab> -> its components and rules R1..., then archvow show clean_orders <Tab> -> H1, INV1...

archvow doc

usage: archvow doc [-h] [--base BRANCH] [feature]

Write the spec to read: the project, each feature, the status (.archvow/doc/, never committed).

positional arguments:
  feature        only this feature (default: the project and every feature)

options:
  -h, --help     show this help message and exit
  --base BRANCH  mark what changed since this branch (archvow diff --base)

examples:
  archvow doc
  archvow doc orders
  archvow doc orders --base develop   # what the branch changed comes first (for a merge request)

archvow try

usage: archvow try [-h] [--json] [--dir FOLDER]
                   [{pyspark-pipeline,fastapi-service,python-app,langgraph-agent}]

See archvow catch a mistake on a finished example, in a scratch folder.

positional arguments:
  {pyspark-pipeline,fastapi-service,python-app,langgraph-agent}
                        the finished example to copy (default: pyspark-pipeline)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --dir FOLDER          where to copy it (default: a new temporary folder)

examples:
  archvow try                       # the PySpark pipeline
  archvow try fastapi-service       # the FastAPI service (python-app, langgraph-agent too)
  archvow try --dir /tmp/demo       # keep the copy where you choose

archvow pack

usage: archvow pack [-h] new|template|agent|rule|add|update|remove|check ...

Packs: a company's templates, agents and rules, in one folder (data only).

positional arguments:
  new|template|agent|rule|add|update|remove|check
                        archvow pack new|template|agent|rule|add|update|remove|check --help:
                        options and examples
    new                 create a pack: pack.yaml, README.md, commented examples
    template            add a template to a pack, extending another one
    agent               add an agent profile to a pack (only what differs from the standard)
    rule                add a declarative rule to a pack (refused unless it catches its bad
                        example and passes its good one)
    add                 copy a pack into the project and record it (version, source, digest)
    update              a new version of a pack, from the source it was added from
    remove              take a pack out of the project
    check               test a whole pack before sharing it (every part, every language)

options:
  -h, --help            show this help message and exit

examples:
  archvow pack new acme -d "ACME's templates and rules" --dir ~/packs
  archvow pack template ~/packs/acme acme-pyspark --extends pyspark-pipeline -a ci=jenkins
  archvow pack check ~/packs/acme
  archvow pack add ~/packs/acme                 # in a project: copied into .archvow/packs/acme/

archvow pack new

usage: archvow pack new [-h] [--json] -d TEXT [--dir FOLDER] [--version VERSION]
                        [--languages LANGUAGES]
                        name

Create a pack: pack.yaml, README.md, commented examples.

positional arguments:
  name                  the pack's name: lowercase letters, digits and dashes (acme)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  -d TEXT, --description TEXT
                        what the pack brings, in one line
  --dir FOLDER          create it in this folder (a company pack; no project needed); default:
                        inside this project
  --version VERSION     its version (default: 1.0.0)
  --languages LANGUAGES
                        its languages, English always (default: en,fr)

examples:
  archvow pack new acme -d "ACME's templates and rules" --dir ~/packs    # a company pack
  archvow pack new team -d "This team's rules"                           # in this project, recorded

archvow pack template

usage: archvow pack template PACK NAME --extends TEMPLATE [options]

Add a template to a pack, extending another one.

positional arguments:
  pack                  the pack's folder, or the name of a pack of this project
  name                  the template's name (acme-pyspark)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --extends TEMPLATE    the template it builds on: <pack>/<template>, or a short name (one of this
                        pack too)
  -d TEXT, --description TEXT
                        what the template is for (one line)
  -a KEY=VALUE, --answer KEY=VALUE
                        a company default for an init answer, repeatable (-a ci=jenkins); a
                        project can override it
  --allowed-paths FOLDERS
                        top folders of Python files that are not components (devops,tools): no
                        ARCH015 there
  --verbatim-folders FOLDERS
                        folders of files/ copied exactly as they are, .j2 included
                        (templates,deploy/ansible)
  --layer LAYER=FOLDER  rename a layer's folder, repeatable (--layer p1_domain=domain)
  --no-input            never ask: without options, settings stay examples

examples:
  archvow pack template ~/packs/acme acme-pyspark --extends pyspark-pipeline -a ci=jenkins --allowed-paths devops
      # without options, a terminal asks them

archvow pack agent

usage: archvow pack agent PACK NAME [options]

Add an agent profile to a pack (only what differs from the standard).

positional arguments:
  pack                  the pack's folder, or the name of a pack of this project
  name                  the agent's name, as a project approves it (acme-assistant)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --extends AGENT       start from a known agent's profile and files
  --title TITLE         how AGENTS.md names it (ACME Assistant)
  --detect-env VARIABLES
                        variables it sets where it runs commands (NAME or NAME=start), comma-
                        separated
  --detect-process PROGRAMS
                        the programs it runs, comma-separated
  --instructions FILE:KIND
                        its own instructions file: KIND import (a pointer to AGENTS.md) or rules
                        (AGENTS.md's rules copied there)
  --skills FOLDER       where it reads skills, when not .agents/skills (a copy)
  --unsafe-flag FLAG    an option that lets it act without asking, repeatable (archvow refuses to
                        run under it)
  --fix TEXT            how to start it again, protected
  --review-command COMMAND
                        how `archvow review` runs it without a person (the task is in
                        $ARCHVOW_REVIEW_PROMPT)
  --review-secret NAME  the CI secret its review command needs
  --owns FILES          its files, comma-separated: flagged while it is not approved
  --permissions TEXT    where a person lists its auto-approved commands, when that is outside the
                        project

examples:
  archvow pack agent ~/packs/acme acme-assistant --title "ACME Assistant" --detect-env ACME_ASSISTANT \
      --instructions .acme/instructions.md:rules --unsafe-flag=--no-confirm --owns .acme
  archvow pack agent ~/packs/acme claude-code --extends claude-code --review-command "claude -p ..."

archvow pack rule

usage: archvow pack rule PACK CODE --kind KIND --target TARGET --message TEXT [options]

Add a declarative rule to a pack (refused unless it catches its bad example and passes its good one).

positional arguments:
  pack                  the pack's folder, or the name of a pack of this project
  code                  its code: the company's letters and 3 digits (ACME001)

options:
  -h, --help            show this help message and exit
  --json                machine-readable output (IDE plugin, scripts)
  --kind {forbid_import,forbid_call,forbid_pattern,forbid_file,only_in,require_keyword,require_question}
                        what it checks
  --target TARGET       what the kind looks for (modules, calls or files: comma-separated; a
                        pattern, a keyword or a question: as it is)
  --in-types TYPES      only in these component types, comma-separated
  --in-layers LAYERS    only in these layers, comma-separated
  --severity {error,warning}
                        error (default) or warning
  --message TEXT        what the finding says
  --message-fr TEXT     the same, in French
  --fix TEXT            how to fix it
  --fix-fr TEXT         the same, in French
  --why TEXT            why the rule exists
  --why-fr TEXT         the same, in French
  --bad CODE            an example it must catch (a file path for forbid_file)
  --good CODE           an example it must pass

examples:
  archvow pack rule ~/packs/acme ACME001 --kind forbid_import --target legacy_billing --in-layers p2_io \
      --message "No direct use of the old billing API" --fix "use acme_billing.client" \
      --bad "import legacy_billing" --good "import acme_billing.client"

archvow pack add

usage: archvow pack add [-h] [--json] [--project FOLDER] source

Copy a pack into the project and record it (version, source, digest).

positional arguments:
  source            the pack's folder, or an installed package that carries one

options:
  -h, --help        show this help message and exit
  --json            machine-readable output (IDE plugin, scripts)
  --project FOLDER  the project's folder before init (default: here)

examples:
  archvow pack add ~/packs/acme                 # a folder
  archvow pack add acme-archvow-pack            # a pip package that names its pack (entry point archvow.packs)

archvow pack update

usage: archvow pack update [-h] [--json] [--from SOURCE] name

A new version of a pack, from the source it was added from.

positional arguments:
  name           the pack's name

options:
  -h, --help     show this help message and exit
  --json         machine-readable output (IDE plugin, scripts)
  --from SOURCE  another folder or package to take it from

examples:
  archvow pack update acme

archvow pack remove

usage: archvow pack remove [-h] [--json] name

Take a pack out of the project.

positional arguments:
  name        the pack's name

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow pack remove acme

archvow pack check

usage: archvow pack check [-h] [--json] pack

Test a whole pack before sharing it (every part, every language).

positional arguments:
  pack        the pack's folder, or the name of a pack of this project

options:
  -h, --help  show this help message and exit
  --json      machine-readable output (IDE plugin, scripts)

examples:
  archvow pack check ~/packs/acme