Rolling out archvow in a company¶
What a company sets up around archvow before many teams use it: who owns what, how a version reaches the developers, how projects upgrade, and a pilot that shows whether it works for you. Write your own names and addresses in place of the examples.
Who owns what¶
| Role | Who (example) | Owns |
|---|---|---|
| archvow owner | the platform team, @acme/dev-platform |
which archvow version the company uses, publishing it, this page |
| template owners | one architect per stack, @acme/data-architects |
the company templates (acme-pyspark...), their versions and upgrades |
| project architects | the CODEOWNERS group of each project, @acme/sales-architects |
the project's spec, guard changes, merging into develop and main |
| developers | every team member | the code; spec changes go through the architects |
| support | a channel, #archvow |
questions, bugs, ideas - answered by the archvow owner |
The architects of a project approve its spec and its guards (CODEOWNERS); they never need the archvow owner for that. The archvow owner decides only which version the company runs.
Publishing a version¶
archvow is one wheel with no external service. Each version comes with its release notes and a
checksum file (SHA256SUMS).
sha256sum -c SHA256SUMS # the wheel is the one released
python3 -m pip install twine
python3 -m twine upload --repository-url https://nexus.acme.local/repository/pypi-internal/ \
archvow-<version>-py3-none-any.whl # your internal index
Projects pin it: archvow==<version> in requirements.txt and in the CI (ARCHVOW_PIP_SPEC),
written by init. Nothing changes in a project until its architects upgrade it.
Upgrading¶
- The archvow owner reads the release notes and the
CHANGELOG.md(what changed, what a project must do), publishes the version, and says so in the support channel. - The template owners bump their company templates if needed (a new version number in
pack.yaml), and test them:archvow pack check <the pack's folder>. - Each project, when its architects choose: on a branch,
archvow init <package> --force, thenarchvow doc, review the merge request (the template version and anything the release notes name), merge.archvow checkwarns (ARCH012) until it is done, never blocks.
A project skips versions freely: init --force goes from the version it has to the installed one.
A pilot before the rollout¶
One real project, one team, 2 to 4 weeks, before more teams start.
| Choose | Example |
|---|---|
| a project | a new pipeline or service of moderate size (5 to 20 components), not the most critical one |
| a team | 1 or 2 architects, 2 to 5 developers, the AI assistants the company already approves |
| the setup | the company template, the internal index, GitLab or GitHub with the branch rules of Project management |
What to measure, each week:
| Measure | Where it comes from | What it says |
|---|---|---|
| merge requests green on the first pipeline | GitLab / GitHub | the spec is clear enough to implement right the first time |
guard changes approved (ARCH020 with the label) |
merge requests | how often the rules had to bend - each one is worth a look |
| decisions recorded, and asked again in review | archvow audit, review comments |
whether the questions catch what reviewers would ask |
| time from a spec merged to its code merged | Git history | whether the spec speeds the work up or slows it down |
| findings in code review that archvow could have caught | review comments | candidates for a company rule (a pack's rules/, archvow pack rule) |
| what the team says | a short retrospective | where it helps, where it is in the way |
It is a success when the team would keep it: most merge requests pass the first time, the reviews talk about design rather than missing tests or edge cases, and nobody asks to switch the checks off. Write down what you changed in the company template during the pilot: that is the template the next teams get.
Before many teams start¶
- [ ] the pilot is done, and its changes are in the company template
- [ ] the wheel is on the internal index, the version is pinned in the company template
- [ ] the roles above have names, the support channel exists
- [ ] the branch rules are on in every project (only Maintainers merge; with GitLab Premium or GitHub rulesets, code owner approval is required)
- [ ] the approved AI assistants are agreed (
-a ai_tools=...), and so are the AI reviewers if any - [ ] developers have read Getting started and Daily workflow