Skip to content

Concepts

Why archvow

AI writes plausible code. Two failures survive compilers and tests:

  1. It builds something other than the architecture - other names, other files, imports across layers, a "helpful" utility module. archvow fails the build on any of it.
  2. It decides silently. Faced with an ambiguous spec, it picks a reasonable default ("negative value -> 0", "on timeout, retry") without telling anyone. archvow makes every such choice an explicit question a person answers before the code may exist.

And the most valuable part of a spec is what must never happen. Following critical-systems practice, archvow finds hazards systematically, keeps the essential invariants few, and requires a test for each.

The spec

Everything lives in .archvow/, committed with the code. One rule to read it: the vows are the spec (what must be; archvow commands change them), archvow doc writes them to read (Markdown, into .archvow/doc/, ignored by Git). There is one vow for the project, one per feature and one per component, each component's named like its code file, so one file search finds the code and its vow. The vows are written in the .vow format: one fact per line, every value with its keyword.

.archvow/
├── project.vow                      the project
├── features/
│   ├── shared/                      what every feature uses
│   │   ├── shared.vow
│   │   └── components/settings.vow
│   └── orders/                      what the product does
│       ├── orders.vow
│       ├── components/create_order.vow
│       └── proposals.vow
└── doc/                             archvow doc - ignored by Git
File What it is
project.vow The project's vow: mode, the families of checks that run, approved AI assistants, reviewers and packages, the project's own rules R1, R2..., the third-party register. Changed through archvow commands, never by hand (only its rules severity overrides, by an architect, see Rules)
features/<feature>/<feature>.vow A feature's vow: what the product does in it, and the brief it comes from
features/<feature>/components/<component>.vow One component's vow: its file, layer and public names, its decisions, assumptions, columns, hazards (H1, H2...) and invariants (INV1...)
features/<feature>/proposals.vow Decisions the AI proposed for the feature's components, waiting for a person (modes guided and free)
README.md How the project is specified and guarded, and why
frozen.json Violations accepted when adopting archvow on existing code (if any)
packs/ The packs the project uses: a company template, its own checks (if any)
doc/ Written by archvow doc, ignored by Git: project.md (the whole project on one page: diagram, features, components, rules, hazards and what prevents them, invariants and how they are tested, personal data and third parties - see Compliance - and every check that is on), <feature>.md (one feature: its components, what it uses, what changed on the branch), status.md (what the code does today)

archvow show <component> prints a component's spec; archvow prompt <component> gives it to an AI as a task, with what it uses. Hazards and invariants are numbered per component: clean_orders.H1, clean_orders.INV1 (typed archvow show clean_orders H1). Two branches can each add a hazard without a clash.

Nothing generated is committed, so nothing can go stale: CI runs archvow doc --base <target> for each merge request and attaches the docs, with what the branch changed in the spec.

Features

A feature is what the product does - orders, invoices, the VAT report - named after it, never after a ticket: tickets come and go, the feature stays. It holds its components (their vows are in its components/ folder) and its own proposals file, so two people working on two features never touch the same file.

archvow feature add orders -d "A customer creates orders and reads their own"
archvow component add service create_order -d "..." -f orders
archvow component move create_order invoices      # its vow moves; its id, file and tests stay
archvow feature rename orders ordering             # its components move with it
  • shared comes with every project: settings, logging, the app or job that plugs the features in - what every feature uses. init puts the template's own components there.
  • Which feature? component add takes -f <feature>; without it, a project with one feature besides shared puts the component there, and a project with none makes one, named after the system (rename it: archvow feature rename).
  • A feature may use another one: its components declare it with -u, as any use. archvow derives the links between features from them; they must not loop (ARCH061), and shared uses a feature only from an entry point - a component nothing uses, like the app (ARCH062).
  • The layer is a field of the component, not a folder: a feature has components in every layer it needs, and check holds each one to its layer's imports as before.
  • Work by feature: archvow show <feature> prints it, archvow next --feature <feature> the next component to build in it, archvow prompt --feature <feature> gives an AI the whole feature in a few lines - what it does, what it uses, one line per component - then the full task of the next component to build (the context of the feature, the budget of one component), archvow doc <feature> its page.

Commands: one grammar

What the spec stores is written archvow <noun> <verb>, the same way for every thing:

Noun Verbs What it is
component add, edit, accept, remove what must exist: a file, its public function, its layer
question add, remove an open question; it blocks the component until a person answers it
decision make, add the answer to a question by its number (make), or a new question with its answer (add)
rule add, edit, remove a rule in plain words for one or more components, a type, or all
assumption add, accept, reject what the implementer assumed; a person accepts or rejects it
hazard add, edit, dismiss, remove what must never happen
invariant add, edit, remove what always holds, so a hazard cannot happen
column set personal data: the class of a column, or a step that removes or pseudonymises it
dependency add, remove the third-party register (DORA)

archvow <noun> --help lists its verbs, archvow <noun> <verb> --help their options and examples. The other commands act on the whole project and are one verb: init, show (the only reader: show <component>, show <component> H1, show <component> INV1, show R1), specify, next (the whole project, in build order), check, prompt, docs... An AI assistant may run the readers and the checks, and only two commands that write: question add and assumption add. A person makes every decision.

Every command that records something prints back what it recorded, then the command that changes it, filled in and ready to copy - a typo is seen at once and fixed without searching the docs:

✔ decision made: aucub
  to change it: archvow decision make spark 1 "..."

init ends the same way: to change an answer: archvow init <package> --force -a <question>=<answer>.

Components

A component is one file with a declared public API. Its type comes from the template and fixes its layer, its file name, its public symbols and the questions it asks. In the PySpark template: schema, reader, transformation, writer, job, entrypoint, utility, plus two foundations created by init (spark, config).

archvow component add transformation clean_orders -d "Keep paid orders only" -s US-12 -u orders_schema

creates the spec of clean_orders: file src/<package>/p1_domain/clean_orders.py, public function clean_orders(df: DataFrame) -> DataFrame, test tests/p1_domain/test_clean_orders.py. Anything public in the code that the spec does not declare fails the build; helpers start with _ and need no declaration.

Many components in one layer can be organised in groups, one folder level inside the layer: archvow component add transformation clean_orders -g orders ... writes p1_domain/orders/clean_orders.py, tested in tests/p1_domain/orders/test_clean_orders.py. Nothing else changes: same id, same layer rules. archvow component edit <component> -g <group> moves one (then git mv its files).

Some types have kinds: a PySpark reader or writer is files (the default), table, jdbc, connector or custom, like the sources Spark itself knows - archvow component add reader customers -k jdbc .... The kind gives it its own function and its own questions (where the password comes from, how a big table is read in parallel...); see The pyspark-pipeline template.

Changing a component (archvow component edit <component> -d "...", --signature, -r) deletes nothing: its decisions, hazards, invariants, "not applicable" answers, accepted assumptions and business examples were recorded against what it was, and each may no longer hold ("keep the rows where amount > 0" when the description now says "> 1"). Each of them is marked to review: archvow show lists them, the spec tells the AI to stop, archvow next says the component is blocked and archvow check warns (ARCH057; an error with --complete). A person looks at each one: the one that no longer holds is recorded again (archvow decision make clean_orders 1 "..."), which takes it off the list; when every one still holds, archvow component accept clean_orders signs them again. A new ticket, other dependencies, a group or owners change nothing that was recorded: nothing is marked.

What to do about a finding: archvow check prints, under the first finding of each kind, what to do and who does it (an architect, a person, whoever writes the code), in the project's language; check --json gives it for every finding (guide: meaning, fix, who, blocking, then, the command to run with the values the message names, the file to open) - the IDE plugins show it.

Layers

Code is organised in layers; a layer may import only the layers below it. In the PySpark template:

Layer Holds May import
p0_common SparkSession factory, configuration, shared helpers -
p1_domain schemas and pure, lazy transformations (no I/O, no actions) p0_common
p2_io readers and writers: the only place that touches storage p0_common, p1_domain
p3_jobs jobs wiring readers, transformations, writers p0_common, p1_domain, p2_io
p4_entrypoints command lines and exit codes p0_common, p3_jobs

So business logic never depends on storage or orchestration, and each piece is testable alone.

Decisions

Each component type asks questions: what it computes, then its edge cases (empty input, nulls, duplicates, re-runs...). They are answered with archvow decision make; rules the questions do not cover are added with archvow rule add, best written as a scenario: "Given an empty input, when it is cleaned, then the result is empty". Every answer appears in the spec and becomes a test.

archvow show <component> shows everything about a component on one screen: its questions and answers, the rules that apply to it, its safety questions, its assumptions and the next step; archvow next gives the whole project, in build order, one line per component. archvow specify asks what is open, one question at a time (decisions first, then safety): the component once at the top, 3/12 before each question, the question wrapped to the terminal with its example in grey. Typing an answer works like a text field - arrows, Home/End, Option+click (Alt+click in VS Code) to place the cursor, Up for earlier answers (kept in ~/.cache/archvow/history, never in the project), and Tab puts the greyed suggestion into the line to edit it; Enter takes it as it is. A vow question (S1, S2...) shows its situation, then asks what must never happen (the hazard) and how it is prevented (the invariant: what is always true, so it cannot happen); each suggestion appears once, greyed in the prompt, with the keys (Enter: suggestion - Tab: edit - n: not applicable - s: skip - q: quit). The hazard is recorded high (an example test of its invariant is enough); archvow hazard add sets another severity. In a French project, specify speaks French around its questions; hazard, invariant and the severities stay as they are, like in the commands. Without a terminal, specify stops and points to archvow show.

Suggested answers, choices, or neither. A question gets a suggested answer only when one choice is the cautious one whatever the project (fail with an error naming the path; stop the job on bad rows): decision make <component> <n> without words takes it. When the right answer depends on the business (read one date or everything; an approved library or Spark), a default would be a silent decision taken by the template: the question has none, and may list choices to start from instead - archvow show and its spec print them ("no default (it depends on this project) - to start from: ..."), archvow specify numbers them (type 2, or 2 - from the --run-date argument to complete one). None is chosen for you.

Answered once for a type. When every writer (or every utility, every router...) answers a question the same way, an architect answers it once: archvow decision make --type writer 2 "Through a temporary folder, then rename". Every writer takes it - today's and the ones added later - and its spec says "(the same for every writer)"; archvow show marks it "(project answer, every writer)". A component that already has its own answer keeps it, and any component can still get its own with archvow decision make <component> 2 "...". --unset gives the question back to each component. The answer lives once, in .archvow/project.vow.

Light components. A small helper is a utility (two questions: what it takes and returns, invalid input). Answer them once for the type (--type utility) and a new helper needs no question at all: its file, public names, layer and test are still checked like any component's.

Project rules

A rule is a sentence of what components do, numbered R1, R2... for the whole project and listed in .archvow/doc/project.md (Rules). It applies to one component, a list, every component of a type - including the ones added later - or all of them:

archvow rule add compute_vat "vat is rounded half-up to 2 decimals"
archvow rule add clean_orders,compute_vat "Given a row without an id, when it runs, then it is dropped"
archvow rule add --type reader "Given a missing input path, when it reads, then the job fails"
archvow rule add --all "Amounts are Decimal, never float"
archvow rule edit R2 "..."         # change the text
archvow rule remove R2                  # asks first; --yes in scripts

Each component a rule applies to shows it in its spec and needs a test for it.

When a component's code exists while it has... the build fails with
an unanswered question (from its type, or raised with question add) ARCH033
an assumption nobody reviewed yet (recorded with assumption add) ARCH034 - until a person runs archvow assumption accept or reject

A planned component may have open questions: archvow next shows it as blocked until they are answered.

A decision or an assumption? A decision answers a question of the spec before the code is written: a person makes it (archvow decision make), and while it is open the component is blocked. An assumption is what the implementer - usually the AI assistant - still had to guess while coding, recorded after the fact (archvow assumption add). It blocks the commit until a person reviews it: assumption accept (it becomes part of the spec) or assumption reject (the spec says not to rely on it, and the code must be changed if it does). Either way it no longer blocks. archvow next shows the assumptions waiting on each component's line. When an assumption is really a missing decision, answer it as a decision too: archvow question add, then archvow decision make.

Business examples: this input gives this result

The business team often writes, in a ticket or a brief, an example: these rows in, these rows out. archvow keeps it as data the AI cannot change. A person copies it into a folder and records it:

tests/examples/clean_orders/FATTRIB-014-zero-amount/
    input/orders.csv          one file per source the component reads
    expected/orders.csv       one file per output it gives
    scenario.feature          optional: the case in the business team's words
    actual/orders.csv         written by the test at each run (not committed)
archvow example add clean_orders FATTRIB-014-zero-amount -s FATTRIB-014 --from briefs/orders.md#zero-amounts

archvow checks the files first - text only (CSV, JSON...), small, no real-looking e-mail, IBAN or card number (TST002, TST003) - then stores in the component's vow the example's name, ticket, the rule it shows, the brief section it is drawn from, who and when, and a fingerprint of its files:

  • the spec lists it under Examples (reproduce exactly), with its small files printed: the AI writes a test that reads input/, runs the component, writes what it gave to actual/, compares with expected/, and marks it @pytest.mark.example("FATTRIB-014-zero-amount");
  • archvow check fails when the files differ from the recorded ones (ARCH055, always on): an AI that changes the expected result to make its test pass is caught, in every editor;
  • once the code exists, an example without its marked test is reported (ARCH056), and the CI's test report must show the test ran and passed (ARCH046);
  • archvow show <component> gives each example's state: ✔ its test passes, ✖ it fails, ○ no test yet, · not run - and, when it fails, the rows or lines where actual/ differs from expected/.

Who writes what

An example is a few files in tests/examples/<component>/<example>/ and one test. A person says what must happen; the code shows what does happen. The AI writes the code and the test, never a result.

Part What it holds Who writes it When Locked (fingerprint) In git If it changes
input/ what goes in: one file per source the component reads a person, from the ticket or brief before the code, with archvow example add yes yes archvow check fails (ARCH055) until the files are put back, or a person records them again
expected/ what must come out: one file per output a person, from the business team's answer before the code, with archvow example add yes yes same as input/ (ARCH055): an AI cannot make a test pass by changing it
scenario.feature (optional) the case in the business team's words: one Given/When/Then, and Rule: the rule it shows a person with input/ and expected/ yes yes same as input/ (ARCH055)
the marked test, @pytest.mark.example("<example>") reads input/, runs the component, writes actual/, compares with expected/ - it decides pass or fail the AI (or a developer), from the spec with the code no (it is code, reviewed like code) yes none from archvow; a missing mark is ARCH056, a failing or skipped test ARCH046
actual/ what really came out at the last run, with the same file names as expected/ the test, at every run - nobody by hand each time the tests run no no (gitignored) nothing: the next run writes it again; expected/ decides

The same example, FATTRIB-014-zero-amount, when the code has a bug:

orders.csv
input/ A1 (5.00), A2 (0.00), A3 (12.50) what clean_orders receives
expected/ A1, A3 the business team: a zero amount is dropped
actual/ A1, A2, A3 what the code gave: A2 is extra, the test fails

The test says whether it passes. archvow show and the IDE plugins compare actual/ with expected/ as text and show which rows or lines differ. input/ is never compared: it is only what the component is given. When the business team changes its mind, a person replaces expected/ and runs archvow example add again; the code is then fixed to match - never the other way round.

Formats

The test decides, archvow shows. Whether an example passes is its test's verdict in the JUnit report test-results.xml (make test and the generated CI write it): a test may round 5.0 and 5.00, ignore the order of rows or allow a tolerance, which archvow cannot know. archvow never reads a value as a number or a date: everything is text to it, accents and commas included. It compares texts only to show where actual/ differs, by kind of file:

Kind Files Shown as Differences
table .csv, .tsv a table (quoted texts, commas and line breaks inside a cell are fine) rows in order: + only in actual, - only in expected, ~ changed (the changed cells marked)
records .jsonl, .ndjson a table, one record per line, the keys as columns as a table
document .json, .yaml, .yml the content with sorted keys and a 2-space indent: key order and spacing never count lines + and -
text .txt, .md, .xml as it is lines + and -

Each output file of expected/ is compared with the file of the same name in actual/ (a file missing, or only in actual/, is said); a file that is not valid in its kind (bad JSON) is compared as text, with a note. Line endings and a UTF-8 BOM never count. Binary files (.parquet, .xlsx) are refused: export them as CSV or JSON, with invented values. The spec prints a file of at most 20 lines and 4 KB; a bigger one stays a path.

Example files are UTF-8 text. Re-saving a CSV in Excel can add a BOM, switch to Windows-1252, use ; and write 5,00: the fingerprint changes (ARCH055). Export "CSV UTF-8" and check the file in a text editor. In the test, open the files with encoding="utf-8" (and newline="" for CSV) and compare what you read (rows, JSON objects), not bytes. A test file that is not UTF-8 cannot be read for its marks: the "no marked test" message (ARCH031, ARCH056) names it.

The rule it shows, the brief it comes from

The example's folder may also hold a scenario.feature: the same case in the business team's words, one Gherkin scenario (English or French keywords), at most 30 lines. Its Rule: line (Règle:), at most one, names the rule or invariant the example shows - an invariant of the component (INV1 or clean_orders.INV1) or a project rule that applies to it (R2), checked by example add:

Feature: clean the orders
  Rule: clean_orders.INV1
    Scenario: an order with a zero amount is dropped
      Given the orders A1 (5.00), A2 (0.00) and A3 (12.50)
      When clean_orders runs
      Then only A1 and A3 are kept

It is part of the fingerprint (locked like the files) and the spec shows it under the example. archvow checks its shape and never runs it: the test stays a pytest test marked example(...), so no step definitions and no extra package. archvow show and the plugins group the examples under their rule.

--from briefs/<file>.md#<section> links the example to the brief section it comes from, as for a component, a question or a rule: archvow check warns when that section changes (ARCH039), and archvow brief show counts it. It is a link only: archvow never reads the rows out of the brief. When an AI drafts the spec from a brief, it lists the sections that give an example and the example add command a person runs once the rows are copied - it never writes the files.

When the business team changes an expected result, a person replaces the files and runs example add again (a spec change, reviewed as usual; the ticket, the rule and the brief are kept). archvow example remove takes one out of the spec; on a merge request that is a weakening (ARCH020). Only types that compute something take examples (a job, a transformation, a router...): the template says which, and the example's test is of the same kind as the type's tests - a job's runs with the integration tests. Examples prove the cases written down; invariants and their property tests prove what holds for every row.

Tasks: a big spec, one part at a time

A spec with many items - decisions, rules, invariants, personal-data and operations questions - is hard to implement in one go: an assistant skips items in a long list. When a spec has more than task_items items (6 by default), archvow cuts it into tasks T1, T2..., computed from the spec, never stored, with no command to manage them:

  • T1 is the core: the file, its public API and description, and the questions of what the component computes (a transformation's questions 1-4). It is never cut in two.
  • Then the other decisions, the rules, the invariants, then personal data and operations, packed up to task_items per task.
  • A task is done when the code exists and each of its items has a marked test: @pytest.mark.decision(3), @pytest.mark.rule("R2"), or the invariant's own test. check warns about a decision or rule of a coded component that no test is marked with (ARCH038).

archvow show <component> lists the tasks (✔ done, ✖ open), archvow next says ready - task 2 of 3, and archvow prompt <component> prints the next open task (--task N for another). More than 3 tasks usually means the component should be split.

Briefs: where the spec comes from

People write user stories and functional specs; put them, as Markdown or text, in briefs/. Ask the AI assistant to "draft the spec from briefs/sales.md": in mode strict it proposes the commands, each with --from briefs/sales.md#<section> (the anchor of a heading), and a person runs them; in modes guided and free it runs them itself, each item marked as the AI's until a person keeps it. The spec then records where each component, question, rule or business example came from, with a short hash of the section's text. When the section changes, check warns (ARCH039) and names what to review; after review, archvow brief accept briefs/sales.md#<section> records the new text. The Briefs section of .archvow/doc/project.md lists what is drawn from each brief; the local status report lists the sections nothing is drawn from. archvow brief show (--json for the IDE plugins) shows every brief section by section: what is drawn from it, the sections not used yet, the ones changed since. A brief is checked for real-looking personal identifiers like test data (TST002).

The briefs folders are the architects' choice, at init: briefs/ by default, more with -a briefs=briefs,specs (a Spec Kit specs/ folder, say). A brief must be in one of them: --from a file elsewhere is refused, with the command that adds its folder. Removing a folder later is a weakening on a merge request (ARCH020): its files would no longer be checked.

Safety: hazards, invariants, tests

A hazard is what could go wrong. An invariant is what is always true, so it can't go wrong. The test checks the invariant. Example: sales_reader.H1 "an empty input is processed as if it were complete" is prevented by sales_reader.INV1 "an empty or missing input fails the job", tested by test_empty_input_fails.

  • Safety questions. archvow specify <component> asks the questions its type calls for (HAZOP-style guide words: missing, more, less, wrong, partial, repeated, stale, exposed) as plain questions numbered S1, S2... (archvow show <component> lists them), red while open and green once answered, each with a suggested hazard and invariant, and the decision that already answers it if there is one. Each one ends as a hazard (hazard add <component> S<number> <severity>, the suggestion when no text is given) or as not applicable with a reason (hazard dismiss <component> S<number> "...", several at once: S2,S4; no H number); the plain number (2) and the guide word work too. The skill archvow-analyze lets the AI propose the commands.
  • Covered by a decision. When a decision already answers the question (the reader's decision 1, "the path is missing: fail with an error naming the path", answers S1 "input missing"), hazard add <component> S1 high without words records the hazard and an invariant that is decision 1 - its words are the decision's, never copied, and follow it if it changes (the hazard is then marked to review). The test marked @pytest.mark.decision(1) proves it: one record, one test. When the decision says there is nothing to protect ("none" personal data), the question is not applicable: hazard dismiss <component> S2 takes "decision 2: none" as its reason.
  • Refused when recorded. An invariant that says nothing ("none"), the same words twice for a hazard, a verification weaker than the severity needs, "not applicable" for exposed on personal data: archvow refuses them with the command that fits. It warns about the doubtful (a hazard its decision says cannot happen). Whether an invariant's meaning contradicts a decision's ("fail" against "return empty") is not something rules can tell: that is a reviewer's job (a person, or an approved AI reviewer).
  • Changing them. archvow hazard edit <component> H1 "..." --severity critical and archvow invariant edit <component> INV1 "..." keep the id, the links and the test markers; what protects a changed hazard is marked to review. hazard remove takes away the invariants that protected only that hazard.
  • Severities: critical = data lost or wrong results that cannot be undone; high = wrong results reach users; medium = a delay or a re-run, no wrong data; low = noticed and fixed without harm.
  • A critical or high hazard needs an invariant (invariant add <component> "..." --prevents H1, or orders_reader.H1 for another component's; --prevents can be left out when the component has one hazard that no invariant prevents yet). hazard add without text adds the suggested invariant itself (or the decision that covers the question). A medium or low hazard may have one.
  • Tested by. Every invariant is checked by a test marked @pytest.mark.invariant("sales_reader.INV1")
  • a Hypothesis @given test for a critical hazard. archvow check fails while a coded component's invariant is not tested. Experts can ask for another check (a guard in the code, a rule, a model or a proof): see Rules.
  • Three levels of evidence. Declared: the test is marked, and it can fail - assert True is no evidence (ARCH045). Executed: the CI passes pytest's report to archvow check --test-report test-results.xml, and every invariant's test must have run and passed (ARCH046). Verified: what the test checks is right - a person reviewing it; archvow does not judge that.

On one page: the Hazards section of .archvow/doc/project.md (each hazard and what prevents it) and its Invariants section (each invariant, what it prevents and how it is tested).

Statuses

planned (spec only) -> implemented (code matches the spec) -> tested (its test exists) -> verified (every invariant is tested), or drift (errors). Planned is never an error, except at the release gate (archvow check --complete).

A file that exists is not enough: a component stays planned while one of its public names is missing or only holds the place - a function with nothing but pass, ..., a docstring or raise NotImplementedError, or an empty class (an empty exception class is complete). archvow next lists such a component with what is left (started - get_settings is a placeholder). Whether the code does what the decisions say is for its tests to show.

Guards

The guards are what keeps the rules in force: AGENTS.md, ruff.toml, the test settings, the Git hook, the CI files, the code owners file, .archvow/. A merge request is compared with its target branch (archvow check --base main): weakening any guard - a lower severity, a weaker verification, a relaxed ruff rule, a deleted test, an edited guard file, a newly approved AI tool or dependency - fails until the architects approve it. See Rules.

Templates

A template defines a kind of project: its layers, component types, questions, rules and generated files. archvow ships two: pyspark-pipeline for batch data pipelines (reference) and fastapi-service for web services (reference). Both extend a shared base, python-base (the init answers, the guards, the CI), which is never used on its own. Your company can extend either (Packs).

What archvow does not do

  • It does not write code, and it does not judge whether code is correct by reading it: it checks structure, decisions and the existence of the evidence each invariant requires.
  • It does not prove anything itself: property tests, runtime guards, model checkers and proof tools run in your CI; archvow checks they exist, can fail, passed in the CI's test report, and are not removed.
  • It reads the code, it does not run it: imports and aliases are followed (from time import sleep as nap), calls made through getattr, importlib or a function passed as a value are not seen. The GDPR checks follow personal data through the spec's declared uses, not through the running code: they are policy checks and documentation, not a certificate of compliance.
  • It cannot know who approved a change: names in files (@assisted, @reviewer) are declared. Your Git host makes approvals binding: What your Git host must enforce.
  • It does not prevent someone from using an AI tool the project has not approved: that is company policy (IDE allow-lists, network rules). See AI assistants.