Packs¶
A pack is how a company extends archvow: one folder holding its own templates (variants of
pyspark-pipeline with your defaults, your deployment files, your layers), its AI agents (an internal
assistant, or another review command for a known one) and its rules (forbidden imports, calls, files...,
declared as data). A pack holds data only - YAML, Jinja files, text - never Python: nothing of a pack runs in
check or init.
archvow's own content is a pack too, archvow (its templates archvow/pyspark-pipeline,
archvow/fastapi-service..., the agents it knows, its French texts): what archvow ships, a company ships the
same way. Names are qualified by pack (archvow/pyspark-pipeline, acme/acme-pyspark), so two companies never
clash; the short name is enough when one pack only has it.
Make one when several projects share the same setup. For a single project, init answers (-a ...) and files
added by hand are enough.
| Command | Does |
|---|---|
archvow pack new <pack> -d <text> [--dir <folder>] |
creates the pack: pack.yaml, README.md, examples/. With --dir, a company pack in that folder (no project needed); without, a pack of this project, written into .archvow/packs/ and recorded |
archvow pack template <pack> <template> --extends <base> ... |
adds a template to the pack (step 1 below) |
archvow pack agent <pack> <agent> ... |
adds an agent profile (Agents) |
archvow pack rule <pack> <CODE> --kind ... --bad ... --good ... |
adds a declarative rule (Rules), refused unless it catches its bad example and passes its good one |
archvow pack check <pack> |
tests the whole pack before you share it (Check a pack) |
archvow pack add <folder or package> |
copies the pack into the project and records it (step 4) |
archvow pack update <pack> [--from <source>], archvow pack remove <pack> |
a new version of the pack, from the same source; take it out |
<pack> is a pack's folder, or the name of a pack of the current project. Every pack command is a person's:
an AI agent is refused (ARCH054).
1. Create the pack and its template¶
Keep your pack in one Git repository of your company:
acme/ a pack (a Git repository of your company)
├── pack.yaml name: acme, version: 1.0.0, archvow: ">=1.26,<2", languages: [en, fr]
├── templates/
│ └── acme-pyspark/
│ ├── template.yaml extends: archvow/pyspark-pipeline
│ ├── template.fr.yaml its own texts in French
│ └── files/ copied into every new project
│ ├── devops/
│ │ ├── {{ package }}.spec.j2 named after the project, rendered with its answers
│ │ └── {{ package }}.yml.j2
│ └── scripts_communs/
│ └── transfert_file_hdfs.sh copied as it is
├── agents/acme-assistant/agent.yaml an agent profile
└── rules/ACME.yaml the rules of family ACME
Create it with archvow (no project needed):
archvow pack new acme -d "ACME's templates, agents and rules" --dir ~/packs
archvow pack template ~/packs/acme acme-pyspark --extends pyspark-pipeline
pack template writes templates/acme-pyspark/template.yaml, commented, an empty files/, and a
template.<lang>.yaml for each other language of the pack. In a terminal it first asks, one by one (Enter
skips): the description, the company defaults for every init answer, one at a time as init asks them (its
choices numbered, the base's default in brackets: Enter keeps it), allowed_paths, verbatim_folders (step 3)
and the layers' folders. Or give them as options - each is checked against the base template before anything is
written:
archvow pack template ~/packs/acme acme-pyspark --extends pyspark-pipeline \
-d "ACME PySpark pipeline - Jenkins, SonarQube, Oozie" \
-a ci=jenkins -a sonar=yes -a scheduler=oozie \
--allowed-paths devops,tools --verbatim-folders templates
| Option | Written as | What it does |
|---|---|---|
-d TEXT |
description |
one line, shown by archvow catalog |
-a KEY=VALUE (repeatable) |
questions_defaults |
a company default for an init answer (archvow catalog lists them); a new project takes it unless its architect gives another value, then keeps its own |
--allowed-paths devops,tools |
allowed_paths |
top folders of Python files that are not components: no ARCH015 there; added to the base's |
--verbatim-folders templates |
verbatim_folders |
folders of files/ copied exactly as they are, .j2 included |
--layer p1_domain=domain (repeatable) |
layer_names |
rename a layer's folder: src/<package>/domain/, tests/domain/; the template lists every layer with its folder, so you can also change it there later |
--no-input |
never ask: what is not given stays a commented example |
2. Write template.yaml¶
Only what differs from the base:
# ACME's PySpark pipelines: everything of pyspark-pipeline, plus our defaults and deployment files.
name: acme-pyspark
extends: pyspark-pipeline
version: 1.0.0
description: ACME PySpark pipeline - Jenkins, SonarQube, Oozie, RPM and Ansible deployment.
# Our defaults: nobody types them at init (a project can still override them with -a).
questions_defaults:
ci: jenkins
sonar: "yes"
scheduler: oozie
ci_image: registry.acme.local/data/python-spark:3.12
pip_index_url: https://nexus.acme.local/repository/pypi/simple
Version your template like a package (1.0.0, then 1.1.0...): each project records the
version that generated it, and archvow check warns (ARCH012) when the installed one
differs, until the project is upgraded with init --force.
3. Add your files¶
Everything under files/ is written into each new project, at the same path:
.j2files are rendered with Jinja2 and the project's answers, then written without the.j2:{{ package }},{{ description }},{{ architects }},{{ scheduler }}, every other answer, and{{ project_name }}(the package with dashes).- Other files are copied as they are. Use this for files that use
{{ }}themselves and need nothing from archvow. - A path may contain
{{ package }}:devops/{{ package }}.spec.j2becomesdevops/my_pipeline.spec. - A file of your own with
{{ }}of another tool (Ansible, Helm...) that also needs an archvow value: protect the other tool's part with{% raw %}...{% endraw %}:
# files/devops/{{ package }}.yml.j2
- hosts: edge
tasks:
- name: Deploy {{ package }}
ansible.builtin.package:
name: "{% raw %}{{ rpm_name }}{% endraw %}"
- Files to copy exactly as they are, even
.j2ones (your Oozie or Ansible templates that their own tool renders later): list their folders inverbatim_folders: [templates]- a folder and everything under it,deploy/ansiblefor a sub-folder. - A file with the same path as one of the base replaces it (your own
Jenkinsfile.j2,README.md.j2...). To keep up with archvow's improvements, replace as little as possible. - Existing files are never overwritten by
init(only byinit --force).
4. Check the pack, then give it to a project¶
archvow pack check ~/packs/acme # every part, every language: see below
cd my_pipeline && archvow pack add ~/packs/acme # copied into .archvow/packs/acme/, recorded in project.vow
archvow init my_pipeline -t acme/acme-pyspark -d "PySpark pipeline for my_pipeline" -a architects=@acme/architects
pack add takes a folder, or the name of an installed pip package that carries a pack (from your company's
internal index): the package names its pack folder in the entry point group archvow.packs
(acme = acme_archvow_pack.pack), and archvow reads it from the package's metadata without importing it - no
company code runs. Only architects is still needed at init; every company default applies. A project can still
override one (-a scheduler=airflow). pack add works before init too (the pack is recorded at init).
The pack travels with the project. The copy in .archvow/packs/acme/ is committed with the rest of
.archvow/: every clone, the Git hook and the CI read it there - no environment variable, no install in CI, no
network, fit for critical projects - and CODEOWNERS protects it. project.vow records its version, its source and a
digest of the copy: a copy edited by hand fails check (ARCH060, in the floor). A new version of the pack:
archvow pack update acme (from the source it was added from; --from another one); review it in the merge
request (archvow diff shows what changed for the project).
A project whose template cannot be found gets one error, ARCH009, with the fix - nothing else is judged without
its template. A pack whose archvow range does not include the archvow installed stops with one line saying which
version it needs.
What a template of a pack can change¶
template.yaml keys, all optional in a child template. Merging: mappings merge key by key
with the base, layers merge by layer name, questions and initial_components by id, and
any other value replaces the base's, except allowed_paths, executable_files and answer_rules, which add to the base's - a list
such as protected_paths must be repeated in
full, with your additions.
The built-in templates are built the same way: pyspark-pipeline and fastapi-service both
extend python-base, an abstract template that holds what they share (the init answers, the
guards, the CI files). A company base for several kinds of projects can do the same.
| Key | What it is |
|---|---|
name, version, description |
identity (name defaults to the folder name) |
extends |
the base template |
abstract |
true: a shared base, only extended - init refuses it and catalog hides it |
language (the programming language, e.g. python), kind, style |
shown by catalog |
questions_defaults |
new defaults for the base's init answers: {ci: jenkins, ai_tools: acme-assistant, briefs: "briefs,specs"} |
questions |
the init answers (id, prompt, default, default_from, choices, required, multiple, pattern, pattern_hint, choices_from, ask: asked in a terminal when no -a answers it). default_from makes the default follow an earlier answer: {mode: {strict: "yes"}}. Replaces the whole list: prefer questions_defaults |
answer_rules |
answers checked together: {check: "<expression>", message: "..."}; a child's add to its base's |
derived |
values computed from the answers, available in every file: ci_tool: "..." |
context |
constant values available in every file |
file_conditions |
files written only when an expression is true, by path prefix: {"devops/": "scheduler == 'oozie'"}; "False" never writes a base file |
executable_files |
files written with the executable bit, added to the base's (the Git hooks), e.g. entrypoint.sh |
merged_files |
files shared with the team ([README.md]): archvow writes its part between <!-- archvow:begin --> and <!-- archvow:end -->, added at the end of an existing file; init --force rewrites only that part |
gitignore |
lines added to .gitignore |
next_steps |
text printed after init (Jinja2, with the answers) |
verbatim_folders |
folders of files/ copied exactly as they are, .j2 included: [templates, deploy/ansible] |
layer_names |
the folder of each layer, {p1_domain: domain, p2_io: io}: archvow uses the new name everywhere - the layers and what they may import, the component types, the starting components and every file the template writes (AGENTS.md, README, entrypoint.sh...). The built-in templates list their layers with their own names. Choose them before projects use the template: a project's components keep the folder they were added in |
doctor |
what archvow doctor checks on a developer's machine: {name, command, version, fix} (a command that must run) or {name, module, version, fix} (a Python package); optional: true for a warning |
protected_paths |
guard files: changes need the architects, deleting or editing one is ARCH020 |
allowed_paths |
folders of Python files outside the architecture (tests, docs, dags) |
free_test_dirs |
test folders without the one-test-per-component layout (tests/integration) |
test_layout, test_kinds |
where tests live (mirror: tests/<layer>/test_<component>.py), and what each kind means |
file_header |
the header every component file starts with (ARCH018) |
dependencies |
third-party packages every project may import, as imported (ARCH023) |
dependencies_by_path |
packages allowed in one folder (or sub-folder) only: {dags: [airflow, pendulum]}, {src/my_pipeline/p2_io: [acme_common]}; a project can add its own in its .archvow/project.vow |
auto_approved |
what the approved AI assistants do without asking when the answer auto_approve is yes: commands (a command ending with * takes any arguments; Jinja allowed, e.g. python{{ python_version }} -m pytest *) and edit (folders). See AI assistants |
withdrawn_files |
files written only under their file_conditions and deleted by init --force once the condition turns false (a stale copy would keep granting what it grants) |
| the agents | not template keys: an agent is a profile of a pack (agents/<name>/agent.yaml, its files, how archvow sees it, how it reviews) - see Agents |
rule_sets |
rule families on top of the generic ones: [pyspark] for SPK001-014, [fastapi] for FAPI001-005, [agent] for AGT001-012 |
agent_roles |
with rule_sets: [agent], which component types play which part in the agent rules: {settings_ids: [models, settings], retriever_types: [retriever, index_job], mcp_types: [mcp_client], tool_types: [tool], agent_types: [agent, graph]} (the ids that may name a model, the types that may search the index, connect to MCP, are tools, or run tools); a tool type's risk_decisions: {untrusted: 1, private: 2, acts: 3} names the decisions the Rule of Two reads (AGT005, a "yes" answer counts). See The langgraph-agent template |
rules |
severities and limits: {SPK009: {severity: error, max_chain: 4}, STY001: {max_lines: 300}}; severity: off switches a rule off |
session_layer |
the only layer that may build a SparkSession (SPK003) |
http_layers, app_type |
FastAPI: the layers that may raise HTTPException (FAPI002), the component type that creates the app (FAPI003) |
guide_words |
the safety questions S1, S2... of archvow show and archvow specify |
rule_families |
one section per family of checks in the project's .archvow/doc/project.md (Checks): {ARCH: {name: ARCH, title: "..."}} lists the codes starting with ARCH (the longest matching prefix wins); a code no family claims gets the family of its letters, so a company's ACME001 lands in section ACME - declare ACME: {name: ACME, title: "Acme rules"} to give it a title |
| your rules | not a template key: a pack's rules/<FAMILY>.yaml - see Rules |
roles |
which component types play each role for the regimes: {purpose: [job], store: [writer], share: [client], run: [job]} - where personal data is processed, written and sent, and what runs; each regime asks its questions there (P1, U1, G1, O1...) |
question_sets |
questions asked beyond each type's own when a rule family is on - the regimes' questions come from their files (A regime, below) - per component type, each with its id, the rule that fails while it is open on coded code, text, and when (personal, writes, special or always). Answered with archvow decision make <component> O1 |
third_parties |
the template's own packages, recorded in the DORA register by init when dora is on: {name, supplier, licence, criticality} |
safety_suggestions |
for each guide word, the suggested hazard and invariant texts archvow show shows and hazard add <component> S<number> <severity> takes without text; a component type can override them, and its safety_decisions: {more: 7} names the decision whose answer becomes the suggested invariant |
verification_floor |
the weakest check of an invariant each hazard severity accepts |
help_examples |
examples shown by archvow <command> --help |
task_items |
a spec with more items than this (decisions, rules, invariants, P/O questions) is cut into tasks T1, T2... done one at a time (default 6) |
run |
the run line of archvow next and archvow show <entry point>: types (the entry points: [entrypoint]), command ('SPARK_MASTER="local[*]" ./entrypoint.sh {name} {arguments}'), arguments_from ({component: config, question: 1}: one --name <name> per required parameter of that decision; a secret one is never on the command line), then (e.g. a curl for a GET route, {path}). Only for a laptop: deployment keeps its own settings |
layers |
name, description, may_import, io_allowed, lazy_only, forbidden_imports, must_never |
component_types |
see below |
initial_components |
components created by init (spark, config) |
A component type:
component_types:
stream_reader:
layer: p2_io
test: integration # unit, integration or none
description: Structured Streaming source.
module: "{name}_stream_reader" # the file: {name} orders, {NAME} ORDERS, {Name} Orders
name_pattern: "^[a-z][a-z0-9_]*$"
name_hint: "source name, e.g. orders"
symbols: # its public API
- {kind: function, name: "read_{name}_stream", signature: "(spark: SparkSession, source: str) -> DataFrame"}
signature_overridable: false # true: `add/edit --signature` may change it
guide_words: [missing, wrong, repeated]
core_questions: 1 # questions 1..n are built first, in task T1 (default 0)
examples: true # takes business examples (archvow example add); default false
requires_uses: [schema] # it must use a schema component (ARCH019 warns otherwise)
edge_cases: # the questions `decision make` answers, each with a short example
- "The source is unavailable: fail or wait (e.g. wait 10 min, then fail)?"
- question: "A record has no event time: drop it or fail (e.g. drop and count it)?"
suggested: "fail with the record's key in the error" # `decision make <c> <n>` without text takes it
- question: "A late record: keep it, drop it or fail?"
choices: ["Keep it", "Drop and count it", "Fail the run"] # offered, numbered, by show, specify and the plugin; any other answer still goes
test_hints: ["..."] # shown in the spec
requirements: ["..."] # always-true rules, shown in the spec
Two more keys of a component type: routes: true lets component add/component edit -r declare its HTTP routes
(the FastAPI router), and extra_symbols: true allows more public symbols than the type lists
(the routes). Three tell the GDPR rules where personal data goes: columns: structfield (the
type's file defines columns with StructField("x"), classified with archvow column set) or
columns: fields (the fields of its classes, a Pydantic model); orchestrates: true (a job: it
hands its data to every component it wires); writes_data: true (it writes or sends the data:
retention, location, special data).
A type can have kinds (archvow component add reader customers -k jdbc): kinds: maps each kind
to what changes for it - description, symbols, edge_cases, guide_words, safety_decisions
(replaced as a whole), safety_suggestions, test_hints - and default_kind names the kind used
without -k (an empty files: {} keeps the type as it is). The built-in reader and writer follow
Spark: files, table, jdbc, connector, custom. The kind is stored on the component and
fixed once added.
Rules¶
A pack declares rules as data - no Python, no plugin - in rules/<FAMILY>.yaml, one entry per code. The code's
letters are its family (ACME001 goes to section ACME of .archvow/doc/project.md); archvow's own families (ARCH, STY,
SPK, FAPI, AGT, GDPR, TST, DORA, PRIV) are taken. Each rule has a kind, a target, where it looks, a severity, its
message, fix and why in each language of the pack, and an example it must catch (bad) and one it must pass
(good):
ACME001:
kind: forbid_import
target: [legacy_billing]
in_layers: [p1_domain, p2_io]
severity: error
message: No direct use of the old billing API
message_fr: Pas d'appel direct à l'ancienne API de facturation
fix: use acme_billing.client instead
fix_fr: utilisez acme_billing.client
why: the old API bypasses the audit log
bad: "import legacy_billing"
good: "import acme_billing.client"
archvow pack rule writes it for you, and refuses a rule that misses its bad example or catches its good one:
archvow pack rule ~/packs/acme ACME001 --kind forbid_import --target legacy_billing --in-layers p1_domain,p2_io \
--message "No direct use of the old billing API" --fix "use acme_billing.client instead" \
--bad "import legacy_billing" --good "import acme_billing.client"
| Kind | Target | Checks |
|---|---|---|
forbid_import |
modules (prefixes) | an import of them, in the component files (in_types / in_layers limit it) |
forbid_call |
call patterns (*.toPandas, time.sleep) |
a call matching them (aliases resolved) |
forbid_pattern |
a regular expression | a line of code matching it |
forbid_file |
globs (**/*.ipynb) |
a file matching them, anywhere in the repository (bad / good are paths) |
only_in |
modules | an import of them outside the given types or layers (requests only in clients) |
require_keyword |
a regular expression | a file of the given types or layers that does not contain it |
require_question |
the question | a question C1, C2... asked of these component types; coded code fails while it is open |
The rules of a pack apply to the projects whose template comes from that pack (or extends one of its templates).
Like every rule, a project can lower or switch one off in its .archvow/project.vow (under rules, then ACME004:
severity off) - a guard change the architects approve. A need no kind can express is a request for a new kind.
Agents¶
Every project gets the standard files whatever its agents: AGENTS.md (the rules) and .agents/skills/archvow-*/
(the procedures: implement, draft-spec, clarify, analyze, review), read by most agents today. Any name can be
approved (-a ai_tools=claude-code,newagent): an agent with no profile gets the standard one - it reads AGENTS.md
and .agents/skills, archvow recognises it by AI_AGENT=<name> or AGENT=<name>, and archvow doctor says it knows
nothing more about it. A new agent works the day it ships.
A profile lists only how an agent differs from the standard - its own files, how archvow sees it running, its
unsafe options, how it reviews in CI. archvow's pack has profiles for the agents it knows (archvow catalog lists
them); a company pack adds its internal assistant, or replaces a known one (another review command):
# agents/acme-assistant/agent.yaml (every key optional)
title: ACME Assistant # how AGENTS.md names it
skills: .acme/skills # a copy of .agents/skills, when it reads its skills elsewhere
detect: {processes: [acme-assistant], env: [ACME_ASSISTANT]}
yolo: [--no-confirm] # options that let it act without asking: archvow refuses them
fix: start ACME Assistant without --no-confirm
review: {command: acme-assistant review "$ARCHVOW_REVIEW_PROMPT", secret: ACME_TOKEN}
permissions: "~/.acme/allow.json" # where a person lists the auto-approved commands
owns: [.acme] # its files: flagged (ARCH040) while it is not approved
Its own files (an instructions file that copies AGENTS.md's rules, a permission file) go in
agents/<name>/files/ (and files-fr/), rendered like a template's files when the agent is approved; when:
gives a file a condition (.cursor/cli.json: "auto_approve == 'yes'"). archvow pack agent writes the profile:
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 ..." # replace one
--instructions FILE:rules writes AGENTS.md's rules into FILE for that agent, FILE:import a one-line pointer
to AGENTS.md. Approval stays in project.vow (ai_tools, reviewers, guarded by ARCH020); the agent gate
(ARCH051-054) reads the profiles; archvow still calls no AI service itself.
A regime¶
archvow ships four regimes, each one a file of its own pack, regimes/<id>.yaml: three privacy laws - GDPR,
US-PRIVACY (the US state laws) and GLBA - and DORA (operational resilience, kind: resilience). A company adds a law archvow does not ship (HIPAA, LGPD, PIPEDA, Quebec's Law 25,
Switzerland's nFADP...) or its own reading of one, with one file in its pack: no Python, no archvow release.
The example below is archvow's own examples/packs/acme-health/ (its tests add it to a project and check it):
# regimes/hipaa.yaml - the file's name is the regime's id
name: HIPAA # the file's name in capitals: -a rules=...,HIPAA
prefix: HIPAA # its codes: HIPAA001...
letter: H # its questions: H1, H2... (archvow decision make <component> H1 "...")
default: false # not in the default `rules` answer
title: "HIPAA (US health information): minimum necessary, safeguards, business associates, breach notification"
law: "HIPAA Privacy, Security and Breach Notification Rules (45 CFR Parts 160 and 164)"
checked: "2026-11-11" # the day its texts were checked against the law
sources: [https://www.hhs.gov/hipaa/for-professionals/index.html]
covers: [health] # only the columns tagged health (archvow column set <schema> <columns> special --tag health)
rules:
HIPAA001: {title: "Protected health information used without a decided minimum necessary"}
HIPAA002: {title: "Protected health information stored without decided safeguards"}
questions: # by privacy role: purpose (processes it), store (writes it), share (sends it)
purpose:
- {id: minimum_necessary, rule: HIPAA001, text: "Minimum necessary: which health information does it use, and why no more - e.g. the diagnosis code only?"}
store:
- {id: safeguards, rule: HIPAA002, when: writes, text: "Safeguards: who may access it, how is access logged, how is it encrypted - e.g. ...?"}
register:
file: PROTECTED_HEALTH_INFORMATION.md
title: "Protected health information (HIPAA)"
intro: "Every column tagged health, and the components that read, change and write it."
answers: "Minimum necessary, safeguards"
| Key | What it says |
|---|---|
name, prefix, letter |
how the rules answer names it, its codes, its questions - unique among the project's regimes (O and C are taken: DORA's operations, company questions) |
kind |
privacy (the default: archvow's PRIV rules run with it) or resilience (DORA) |
default |
on in the default rules answer (archvow's: GDPR only) |
title, law, checked, sources |
what it is, which law it follows, when its texts were checked, where - every regime says it supports compliance work and is not legal advice |
covers |
only the columns with one of these tags (health, financial, biometric, children, precise-location); without it, every personal column |
leaves_out |
{glba: [financial]}: the columns with these tags are left out while that other regime is on (US-PRIVACY leaves GLBA data to GLBA) |
rules |
the codes of its questions, each with its title (severity: warning to only warn) |
questions |
per role (purpose, store, share, run), each with its id (where the answer is kept: H.safeguards), its rule, its text with an example answer, when (personal, writes, special, always) and tags (asked only when such a column is there) |
register |
the section it adds to .archvow/doc/project.md: its file, title, intro, the heading of its answers (answers), and what it lists (lists: answers, the default - the columns it covers and the questions' answers; or third_parties, DORA's register of the packages the code depends on) |
Every text has its _fr twin (title_fr, text_fr...) when the pack is French. Which component types play
each role is the template's (roles), so one regime works with every template. archvow's PRIV rules (every
column classified, never logged, special data protected) run with any privacy regime: a regime only adds what
its law asks on top. archvow pack check reads the regime as archvow will, checks its letter and prefix
against archvow's regimes, and that each of the pack's languages has every text; pack new writes a commented
example in examples/regime.yaml.
Check a pack¶
archvow pack check <pack> is the architect's test before sharing a pack. It reads every part as archvow will
(pack.yaml and its archvow range, each template with what it extends, each agent profile, each rule), creates a
throwaway project from each template in each language of the pack (so every file renders and every answer rule
holds), checks that each language has the template's texts and files, and proves each rule catches its bad
example and passes its good one. It writes nothing in the pack; it exits 1 on a problem (--json for a tool).
Languages¶
Projects are English by default (-a language=en) or French. A template translates what it
generates with two optional additions next to template.yaml:
template.fr.yaml: the texts oftemplate.yamlin French (questions of each component type, guide words, layer rules, test kinds, next steps...), merged over it with the same rules;files-fr/: French versions of files offiles/(same paths).
Anything not translated falls back to the template's own text. The built-in template is fully
translated; a company template inherits that and only translates its own additions. A template
for another language adds template.<code>.yaml and files-<code>/, and a language question
that offers it.
Upgrading a pack¶
Change the files, raise version in pack.yaml, run archvow pack check, commit and push. Each project adopts it
deliberately: archvow pack update <pack>, reviewed in the merge request, then archvow init <package> --force to
rewrite the generated files - like an archvow upgrade:
Upgrading archvow in a project.
A new default in questions_defaults is for new projects. A project records every init
answer when it is created (given with -a, asked, or the template's default), and keeps them on
every upgrade: only its architects change one, with archvow init <package> --force -a
<answer>=<value> - a guard change they review in the merge request.
A pack of one project¶
A pack only one project uses can live in the project itself: archvow pack new team -d "..." inside the project
writes .archvow/packs/team/ and records it (a guard: changes need the architects); add its parts with
archvow pack template team ..., pack rule team ... - archvow records the new digest each time.
A template for another stack¶
The engine is generic: a template written from scratch (no extends) defines its own layers,
component types and rules, and leaves out rule_sets: [pyspark]. The built-in
templates/pyspark-pipeline/template.yaml of archvow's pack (in the installed package,
archvow/resources/archvow/) is the
complete, commented example.