Multi-agent parallel work¶
This repo is often edited by multiple humans or coding agents at once. These rules reduce merge pain and silent overlap.
Branch strategy¶
- One logical change per branch (feature, fix, docs-only governance pass). Avoid long-lived “kitchen sink” branches.
- Name branches by scope, e.g.
bench/registry-fix,docs/agents-governance,browser/playwright-opts. - Rebase or merge
mainfrequently before large edits so schema/CLI drift is caught early.
File ownership zones (soft boundaries)¶
| Zone | Typical paths | Conflict risk |
|---|---|---|
| CLI surface | src/agent_llm_wiki_matrix/cli.py |
High—coordinate before adding commands/flags. |
| Contracts | schemas/v1/, artifacts.py, models.py |
High—serial changes preferred. |
| Benchmarks | benchmarks/v1/, fixtures/benchmarks/, benchmark/ |
Medium—merge defs and runner separately when possible. |
| Prompts | prompts/registry.yaml, prompts/versions/ |
Medium—add new ids; avoid reusing ids for different text. |
| Browser | src/agent_llm_wiki_matrix/browser/ |
Medium—runner vs formatting vs CLI. |
| Docs | docs/ (except simultaneous edits to same file) |
Low–medium—split by file. |
| Examples / fixtures | examples/, fixtures/ |
Medium if same filenames. |
Rule: If two agents touch the same file in one PR, split work or sequence merges.
Conflict avoidance¶
- Do not rename
alwmsubcommands or flags without an explicit migration note indocs/implementation-log.mdand README. - Prefer additive changes (new schema field with default, new CLI flag) over breaking renames.
- Prompt text: prefer
prompt_refin benchmark YAML over duplicatingtext:(seeAGENTS.md). - Run
just cibefore push; fix conflicts locally—do not merge brokenmain.
Merge order (suggested)¶
- Contracts first (schemas,
artifacts.py, Pydantic) if other work depends on them. - Implementation (library + tests).
- CLI (thin wrappers over library).
- Docs (README, AGENTS, architecture, workflows).
Docs-only PRs can merge anytime; if they change command names, merge after or with code.
Required handoff summary (for agent-to-agent or PR description)¶
Paste this block and fill it in:
## Handoff
- Branch:
- Scope (1–2 sentences):
- Files touched (paths):
- Commands run (exact): e.g. just ci; alwm … --help
- Contracts changed: yes/no (schemas / artifacts kinds)
- Follow-ups: none / list
- Known gaps: none / list
Related¶
- Operating manual:
AGENTS.md - Capability labels:
docs/audits/capability-classification.md(do not claim “complete” without evidence)