Skip to content

The .vow format

A vow says what a project, one of its features or one of its components must be and do. archvow writes the vows in .archvow/ in the .vow format:

File What it holds
.archvow/project.vow the project's vow: template, mode, checks, approved AI tools and packages, rules R1, R2...
.archvow/features/<feature>/<feature>.vow a feature's vow: what the product does in it, its brief
.archvow/features/<feature>/components/<component>.vow one component's vow: its file, public names, decisions, hazards, invariants, columns
.archvow/features/<feature>/proposals.vow decisions the AI proposed, waiting for a person (modes guided and free)

archvow commands write the vows; you read them - or their Markdown, archvow doc - and review their changes in merge requests. The only lines a person writes by hand are an architect's, in project.vow: rules, allowed_paths, dependencies_by_path and layer_paths (a guard change the architects approve; init --adopt proposes layer_paths).

One example

vow 1 component clean_orders
# archvow vow of clean_orders - what it must be and do; archvow check holds the code to it.
# Read: archvow show clean_orders. Change: archvow specify clean_orders. Never edit by hand.
name clean_orders
type transformation
layer p1_domain
module my_pipeline.p1_domain.clean_orders
ticket US-002
description "Keep only the valid rows: order_id not null and amount >= 0"
uses []

# --- symbols
symbol clean_orders
  kind function
  signature "(df: DataFrame) -> DataFrame"

# --- decisions
decision 1
  question "Which rows does it keep (filter conditions), or all of them?"
  answer "Rows where order_id is not null and amount >= 0"
  by architect@example.com
  on 2026-10-08T13:06:24.289189+00:00

decision 2
  template_question 74490ed79f85

assumptions []

# --- hazards
hazard H1
  guide_word less
  severity high
  never "A valid input row is dropped"
  by architect@example.com
  on 2026-10-08T13:06:26.136877+00:00

# --- invariants
invariant INV1
  always "every order_id of an input row with amount >= 0 appears in the output"
  prevents [H1]
  verified_by property_test
  by architect@example.com
  on 2026-10-08T13:06:26.187286+00:00

The rules of the syntax

  • The first line says what the file is: vow 1 project, vow 1 feature <name>, vow 1 component <id> or vow 1 proposals. 1 is the version of the format: archvow refuses a version newer than the ones it reads.
  • One fact per line: a keyword, a space, its value. Nothing follows the value.
  • Indentation is two spaces, never tabs. Lines under a keyword belong to it.
  • Comment lines start with #. archvow writes them; they are not part of the vow.
  • An item of a list (a decision, a hazard...) is its keyword and its number or id, then its lines, indented: decision 3, hazard H1, invariant INV1, symbol clean_orders. Decisions and assumptions are numbered in order from 1: the number is the one the commands take (archvow decision make clean_orders 3).
  • A group is a keyword alone, with its lines under it: columns, rules, init_answers.
  • A keyword is letters, digits and _ . / - - a code (ARCH022), a column name, a folder (src/my_pipeline/p2_io); any other key is written in double quotes.

Values

Value Written Example
a word: letters, digits and _ @ . / : + - as is transformation, @acme/architects, archvow/pyspark-pipeline@2.0.0
text: words with spaces, a sentence in double quotes (JSON escapes: \", \\) "Drop rows where amount < 0"
a number as is 200, 0.5
yes / no, nothing true, false, null all true (a rule for every component)
a list in brackets, separated by commas [orders_schema, compute_vat], ["a b", c]
an empty list, an empty group [], {} uses [], rules {}

Text a person wrote (a description, a question, an answer, a hazard, an invariant, a reason) is always in quotes, even one word. A word that would read as something else - "3.12" (a number), "true" - is in quotes too.

The keywords

A component (features/<feature>/components/<component>.vow)

Keyword What it is
name, type, kind, layer, group, module what archvow component add set: its file is <module>.py
adopted true for an existing module declared where it is (--file): its layer comes from layer_paths
origin, created_by ai and the agent, for a component the AI added (mode guided or free), until a person accepts it; then accepted (by, on)
container the deployable it belongs to (only when the project has several)
ticket the user story or ticket of the component (-s)
description what it does: what the developer or the AI implements
uses the components it uses
owners who approves changes to its vow besides the architects (--owners; written in CODEOWNERS)
source the brief it was drawn from: file, section, hash
symbol <name> a public name: kind (function, class, constant, route), signature, annotation, method, path
decision <n> a question and its answer: question, answer, origin (ai when accepted from an AI proposal), source, by, on; a template question not answered yet is template_question <hash> (its words come from the template); a question an AI agent asked (question add) has added_by (the agent) and why, then accepted (by, on) when a person keeps it without answering it yet
example <name> a business example (archvow example add): ticket, rule (the Rule: of its scenario), source (file, section, hash: the brief it is drawn from, --from), fingerprint (of its files in tests/examples/<component>/<name>/), by, on
assumption <n> what the implementer assumed: text, status (proposed, accepted, rejected), by, on, reviewed_by, reviewed_on
answers the answers to the privacy and operations questions (P1, O1...), by the question's id in the template (P.purpose): answer, by, on
columns personal data: each column and its class (none, personal, special)
privacy the columns it removes or pseudonymises
hazard H<n> what must never happen: guide_word, severity (critical, high, medium, low), never, by, on; added by an AI agent (mode guided or free): added_by, why, then accepted (by, on) once a person keeps it
invariant INV<n> what always holds: always, prevents (hazard ids), verified_by, by, on; from_decision N instead of always: the invariant says what decision N answers (invariant add --from-decision N); added_by, why, accepted as for a hazard
not_applicable <guide word> a safety question answered "not applicable": because, by, on

The project (project.vow)

Keyword What it is
system name, description
container <id> a deployable: template (<pack>/<template>@<version>), package, path
packs the packs copied into .archvow/packs/ (archvow pack add): per pack, its version, source and digest (a copy that differs is ARCH060)
rules check settings, by code: severity (error, warning, off) and the check's limits (by hand, an architect)
allowed_paths, dependencies_by_path more folders allowed outside the architecture; packages allowed in one folder only (by hand, an architect)
layer_paths existing code kept where it is: <layer> [<folder>/, <file>.py] puts those files in that layer (init --adopt proposes it; an architect reviews it)
language, mode, families, compliance the init answers about the project's language, how much the AI decides, the families of checks, the compliance rules
ai_tools, reviewers, dependencies the approved AI assistants, AI reviewers and packages
init_answers every init answer the project uses
rule R<n> a project rule: text, scope, source, by, on; added by an AI agent (mode guided or free): added_by, why, then accepted (by, on) once a person keeps it
third_party <name> the third-party register (DORA): supplier, licence, criticality
type_answer <type> a question answered once for every component of a type: question, answer, by, on (archvow decision make --type)
hazard, invariant, not_applicable the same as in a component, for the whole system

A feature (features/<feature>/<feature>.vow)

description (what the product does in it), brief (the file people wrote for it, if any). Its components are the vows in its components/ folder; the feature a component is in is its folder.

The proposals (features/<feature>/proposals.vow)

proposal, then its component, number, question, answer, by, on.

In your editor

IntelliJ IDEA (and PyCharm and the other JetBrains IDEs, 2024.3 and later) reads vows with the vow plugin, in its own repository, vow-plugin-intellij:

  • the .vow file type and icon, and colours for keywords, block keywords, ids, text, people and dates;
  • errors as you read, with their line, and folding of every block;
  • the Structure tool window, and Ctrl+click from a component in uses, a hazard in prevents or a module to what it names;
  • ```vow blocks in Markdown files, coloured the same way.

Build it with ./gradlew buildPlugin in that repository (a JDK 21: IntelliJ's own runtime works), then Settings > Plugins > Install Plugin from Disk. Its README.md says more. The plugin has its own version and reads .vow format 1 (the first line of every vow: vow 1 ...).

An editor that shows a whole project (the archvow plugins for IntelliJ and VS Code) asks archvow once: archvow workspace --json gives the spec, every component as archvow show <component> --json gives it, the build plan, the findings, the briefs, the templates, packs and agents, the project's packs with their state, and the first steps of a new project (first_steps: five steps, each done or not, read from the spec, the check and Git), from one process. With --since <digest> (the digest of the last answer) it says only "unchanged": true when no file of the project changed. Every --json object starts with "contract": the version of this output (2.1), which a tool compares with the one it was made for (archvow version --json).

Errors

archvow reads every vow strictly: a line it does not understand stops the command, with the file, the line and what is wrong - for example .archvow/project.vow:12: indented by 3 spaces - two spaces per level. Since only archvow writes the vows, an error means a hand edit: git diff shows it.