Skip to content

Project management

How a team runs a project with archvow: who decides what, how changes are approved, how archvow itself is upgraded.

Roles

Role Does Approves
Architects (-a architects=@group) create the project (init, once), write or review the spec, decide hazards and invariants, accept or reject AI assumptions every change to .archvow/ and to the guard files (code owners)
Developers implement components from their specs, alone or with an approved AI assistant; ask instead of guessing code merge requests (normal review)
AI assistants implement components as AGENTS.md says; record questions and assumptions nothing: they never decide, accept or change the spec (Claude Code is even denied these commands)

Name at least two architects: one person alone cannot be on holiday.

Owners per component. On a big project the architects should not be a queue for every component's vow. archvow component edit orders_writer --owners @acme/payments lets that team approve changes to its vow, .archvow/features/<feature>/components/orders_writer.vow (the architects still can): archvow writes the line at the end of CODEOWNERS, in a block it keeps up to date, and the CODEOWNERS change itself is approved by the architects. What stays theirs whatever the owners: the project's vow (.archvow/project.vow: modes, approvals, rules, answers for a whole type) and every weakened guard - a hazard removed, a severity lowered, a test deleted fails check --base (ARCH020) until they accept it. --owners "" gives the component back to the architects.

Making the approval binding

archvow writes the code owners file; your Git server makes it binding. init prints the settings to switch on, once:

Platform (-a platform=) Code owners Settings
gitlab (default) .gitlab/CODEOWNERS Premium/Ultimate. Protected main: push = No one, code owner approval on; "Pipelines must succeed"
github .github/CODEOWNERS Ruleset on main: pull request + code owner review + the CI's status checks
none - protect main on your Git server; architects approve .archvow/ and the guard files

What each check relies on, setting by setting: What your Git host must enforce.

The CI (-a ci=: the platform's own by default, or jenkins) runs the same checks as the Git hook, plus the tests and the merge-request comparison. See The pyspark-pipeline template.

Changing the spec

Never by hand. Every command updates .archvow/; commit the whole folder with the change.

Change Command
add a component archvow component add <type> <name> -d "..." -s <ticket> -u <components>
change what it does, its ticket, its dependencies, its signature archvow component edit <component> -d "...", -s, -u a,b, --signature "(...) -> ..."
rename or remove archvow component remove <component> (refused while another component uses it), then add the new one; delete the old file and test
see everything about a component archvow show <component> (the whole project: archvow next, or .archvow/doc/project.md)
answer a question, add a rule archvow specify <component>, or archvow decision make <component> <n> "..."; archvow rule add <component> "..." (--type <type>, --all)
what must never happen archvow hazard add|dismiss, archvow invariant add

Two rules for everyone, people and AI alike:

  1. The spec and the code that follows it travel together. Code without its spec fails (ARCH001, ARCH002); a spec without its code is simply planned.
  2. Spec changes are approved by the architects (code owners of .archvow/). For anything beyond a small change, two merge requests: the spec first, then the code.

Merge requests

The CI compares the branch with its target (archvow check --base origin/main):

  • Guards may not be weakened (ARCH020): a lower severity or a weaker verification, a removed hazard or invariant, a relaxed ruff rule, changed test settings, a deleted test, an edited guard file, a newly approved AI tool or dependency, more frozen violations.
  • The change must be reviewable (ARCH022, the change budget): by default at most 30 files, 1000 lines added and 300 deleted, outside .archvow/. A project can set its own budget in .archvow/project.vow, under rules then ARCH022: max_files 50, max_added_lines 2000 (a guard change too; Rules shows the lines).
  • New suppressions are reported (ARCH021, warning).
  • A changed contract is pointed out: when a component's public names, signatures or routes differ from the target branch, check --base lists the components that use it - their code and tests may need to follow. A list for the reviewer, not a failure.
  • archvow diff --base origin/main --markdown writes every spec change in plain words for the reviewer (the CI attaches it to the merge request).

When the architects have approved a weakening or a big change, they say so to the CI: the architecture-approved label (GitLab, GitHub) or ARCHITECTURE_APPROVED=true (Jenkins). The same errors then become warnings. The label is a signal, not an access control: the code owners' approval is.

Approvals that live in the project

What How it is approved Checked by
AI assistants allowed archvow init <package> --force -a ai_tools=a,b ARCH040 (files of other tools), ARCH018 (the @assisted header)
AI reviewers allowed archvow init <package> --force -a reviewers=a,b ARCH041, ARCH042 (reports in reviews/), archvow review in CI
third-party packages archvow init <package> --force -a dependencies=yaml,requests ARCH023
briefs folders (briefs by default) - inside the project, not hidden, not the package nor tests/, none inside another archvow init <package> --force -a briefs=briefs,specs --from outside them refused; TST002 on their files; removing one is ARCH020
AI agents stopped outside a sandbox (yes by default in mode strict; YOLO mode is always stopped) archvow init <package> --force -a sandbox=yes ARCH051, ARCH052, ARCH053 - Agent security
CI image, package index, scheduler, Sonar... archvow init <package> --force -a <answer>=<value> the generated files

init remembers its answers in .archvow/project.vow (init_answers): --force changes only what you pass, and keeps the spec. Each approval is a guard change, visible in the merge request.

Running init: once

The architect runs init once, to create the project. Developers never need it: they clone, run make install and git config core.hooksPath .githooks, and work. In a folder that already is a project, init refuses and says so. init --force rewrites the generated files (to change an answer, or after an upgrade) and, once the spec is committed, always keeps it. Only git rm -r .archvow, a visible and reviewed change, starts over.

Upgrading archvow in a project

Projects pin the archvow version that created them, so an upgrade is deliberate:

git switch -c feature/<ticket>-upgrade-archvow develop
python3 -m pip install archvow==<new version>
archvow init <package> --force              # rewrites the generated files: pin, CI, AGENTS.md, README (only between its archvow markers)...
git diff                                     # review what changed
git add -A && git commit -m "Upgrade archvow to <new version>"

The merge request shows the guard files that changed; the architects approve it. Until a project is upgraded, archvow check warns (ARCH012) when the installed template version differs from the project's, and names this command. If you had edited a generated file (the README, say), git diff shows it: keep your lines.

A project on a company template keeps a copy of its pack in .archvow/packs/. A new version of the pack comes with archvow pack update <pack> (reviewed in the merge request), then init --force.

The project's language

A project's documents - README, AGENTS.md and the assistants' files, .archvow/README.md, the specs, the questions each component type asks - are in one language, chosen at init: English (-a language=en, the default) or French (-a language=fr). archvow itself (commands, options, messages), the rule codes and keywords (statuses, severities, guide words, verification methods), file and layer names stay English.

To switch a project:

archvow init <package> --force -a language=en         # then review and commit

The generated files are rewritten, and the texts archvow wrote into the spec (the questions of each component type, the starting components' descriptions) follow; what people wrote - descriptions, answers, hazards - stays as it is.

How much the AI decides: mode

Chosen at init (asked in a terminal, like the language), changed with init --force:

strict (default) guided free
An open question stops the code (ARCH033) until a person answers the AI takes the suggested answer, or chooses, and records it with archvow decision propose <c> <n> "...", then goes on the AI chooses, records it the same way, and goes on
The AI asks always only when there is no suggestion and the answer changes the data or the results never, except on safety
What the AI proposed - a warning (ARCH043), an error at the release gate (check --complete) until a person reviews it a warning, never blocking
A component the plan needs a person adds it (component add is person-only, ARCH054) the AI adds it with archvow component add, marked "created by the AI": a warning, an error at the release gate until a person accepts it the AI adds it the same way: a warning, never blocking
A package nobody approved (ARCH024) an error: only an architect approves it (-a dependencies=) a warning, an error at the release gate a warning
Merge request carrying proposals - the architects approve it (CODEOWNERS owns .archvow/features/<feature>/proposals.vow) and review each proposal in it the developers approve it; the architects review later, in a spec merge request
archvow init <package> --force -a mode=guided        # then review and commit (a guard change)

The AI never decides in a vow: what it proposes goes into .archvow/features/<feature>/proposals.vow. A person reviews each proposal with archvow decision accept <component> <n> (it becomes a decision of the component's vow, marked as proposed by the AI) or archvow decision make <component> <n> "..." (their own answer); archvow specify walks through them too (Enter accepts). archvow show <component> and next mark them, archvow diff --base lists them in the merge-request report, archvow changes in the release report. Recording nothing is never allowed: code written while a question has neither an answer nor a proposal fails (ARCH033), in every mode.

A component the AI adds (guided or free) carries origin: ai and the agent's name (created_by) in its vow; archvow warns when its name is almost the name of an existing one. archvow next lists it under "Created or proposed by the AI - to review", show says who created it. A person reads it, changes it if needed (component edit), and runs archvow component accept <component>; or removes it (component remove). The AI may not edit, accept or remove a component.

In the same modes the AI may add a hazard, an invariant or a rule itself (hazard add, invariant add, rule add, with --why "..."), and in every mode a question (question add). Each is marked with the agent (added_by) until a person keeps it: archvow hazard accept <id>, rule accept <id>, an answer or question accept <component> <n> for a question - or an edit, which keeps it too. ARCH043 counts what is still waiting, like the proposals. Dismissing a safety question ("not applicable") stays a person's command in every mode.

Project limits: max_components, max_code_lines

Two init answers cap the size of the whole project, one total each (not per layer); empty, the default, means no limit:

archvow init <package> --force -a max_components=40 -a max_code_lines=8000   # a guard change, reviewed

component add refuses the component over max_components. archvow check reports ARCH058: an error over a limit, a warning from 90%. Lines of code are counted in the components' files, without blank lines, comments or docstrings. archvow next shows a Limits: line. Raising or removing a limit is a weakening (ARCH020): the architects approve it.

Which rules: rules

Also chosen at init, in one question: the families of checks (listed in .archvow/doc/project.md, Checks) - ARCH, STYLE, SPARK or FASTAPI, a company's own, and the compliance ones GDPR, TST and DORA (Compliance).

Rules archvow check applies (several, all or none); a few safety checks always run whatever you choose
  1. ARCH   Architecture: structure, layers, tests, hazards, AI policy
  2. STYLE  Size, scripts and comments
  3. SPARK  PySpark style and layer purity
  4. GDPR   Personal data (GDPR / RGPD): every column classified, then the code checked
  5. TST    Test data: no real data in tests
  6. DORA   DORA: traceability, separation of duties, third parties, tested resilience
  7. all
  8. none
rules (several: 1,3) [ARCH,STYLE,SPARK,GDPR,TST]:

Enter keeps every family but DORA (for banks and insurers). -a rules=ARCH,GDPR chooses a list (any case), -a rules=all takes them all, DORA included, and -a rules=none keeps only the spec, the specs, the tasks, the briefs and next, plus the floor. .archvow/project.vow keeps the answer as families (the code families) and compliance (gdpr, tst, dora).

The floor stays on in every mode and with every rules answer: ARCH020 (a guard weakened), ARCH030 and ARCH031 (a critical or high hazard needs a tested invariant), ARCH040 (an unapproved AI tool), ARCH050 (a file nobody owns in .archvow/) and, with any privacy regime (GDPR, US-PRIVACY, GLBA...), PRIV001 (every column classified) and PRIV003 (no special data written in the clear). A rules: override in .archvow/project.vow cannot switch them off.

Loosening is a weakening: a looser mode (strict -> guided -> free) or a family switched off is reported by check --base (ARCH020) and approved by the architects.

Audit: who decided what

Every decision, accepted assumption, hazard and invariant records who recorded it and when. archvow audit cross-checks with Git: a record nobody committed, or committed by another account than the one that recorded it (an AI agent's, say), is flagged. archvow audit --strict fails the CI on any flag.

One repository per pipeline

Keep one project per pipeline or business domain, each with its own archvow init. A project created inside another repository gets its own Git repository; init says how to ignore it in the outer one.

Tools on top of archvow

Every command that reads or reports supports --json (check, next, show, specify, audit, diff, catalog, doctor...) and archvow show --json prints the whole spec as JSON. That is the contract for IDE plugins and dashboards: they never re-implement the engine's logic.