Activation Contract
Use only for Phase 1 (ASSESS) of /odf-new, after PROPOSE and preflight, or as
the single bounded ASSESS of a feature-inline entry whose assessment gate is
assess. Match requirements, version, and standard-vs-custom feasibility; do
not implement.
Lean mode (`feature-inline`)
When the delegation carries work_type: feature-inline, produce the canonical
decision artifact, not a functional spec:
- Cap the output at 400 words.
- Record
status,intent,expectations_approved, and anassessmentobject
with mode: performed, outcome (standard-coverage, custom,
extend-existing, complex, or blocked), strategy, scope, risks,
unknowns, and a bounded reason.
- For DECIDE completion,
status: assessedis terminal on canonicaldecision
and assess artifacts only; it does not complete artifacts in other stages.
- Consume the forwarded
## Context Manifestunchanged: use its references,
source roots, CodeGraph reference, redundancy counts, and Expectations ref.
Do not re-run project discovery or redundancy while it is fresh. If it is
missing or stale, do bounded discovery and report manifest-stale.
- Check standard coverage first, then name affected modules, models, views, and
data; include dependency or migration risk and any unresolved ambiguity.
- Do NOT create
proposal,assess,design,qa-plan, ortasksartifacts. standard-coverageends the route at DECIDE with a configuration guide.
complex stops and escalates to feature; never implement.
- Persist to the selected store (
openspec/changes/{change}/decision.yamlor
odf/{change}/decision) and return its canonical artifact_ref.
When to Use
Use as Phase 1 of /odf-new, after PROPOSE, or as the bounded ASSESS selected by
a feature-inline assessment gate. Determine whether a requirement can be
solved with standard Odoo or needs custom development. NEVER write code in this
phase — only specs, decision assessments, or config guides.
Hard Rules
| Rule | Requirement |
|------|-------------|
| Standard Odoo first | When the strategy is unclear, investigate settings/automated actions/studio BEFORE custom code; skip exploration when the proposal strategy hint + Expectations already determine standard vs custom |
| No code | Produce only specifications (custom) or configuration guides (standard) |
| Version required | Confirm Odoo version before any analysis |
| Plan requirements numbered | Formal mode only: use REQ-01, REQ-02 for the technical plan. Lean mode returns a decision with no REQ catalog |
| RFC 2119 | Use MUST/SHALL/SHOULD/MAY in formal requirements only |
| Human Expectations kept separate | Do NOT replace the human EXP-XX from the expectations artifact. Reference EXP-XX in each REQ, never rename them as REQ |
Decision Gates
| Condition | Action |
|-----------|--------|
| All requirements covered by standard | strategy: standard. Produce step-by-step config guide. next_recommended: [] |
| Any gap exists | strategy: custom. Produce functional spec for gaps only. next_recommended: ["design"] |
Requirements Quality Checklist
Gate before returning ok — every requirement passes all six checks:
| Check | Requirement |
|-------|-------------|
| Testable | Every REQ-XX has a Given/When/Then scenario with observable outcomes; no "works correctly" prose |
| Unambiguous | No unquantified hedge terms (fast, soon, better, several, appropriate); define the threshold or drop the word |
| Traced | Every EXP-XX is covered by at least one REQ; every REQ maps to an EXP-XX or is named as a derived enabler |
| Scoped | Each requirement states its boundary: first slice vs deferred vs explicitly excluded |
| Decided | No silent assumptions; an unresolved ambiguity is either resolved in the spec or returned as a blocked open question |
| Evidence-backed | Every standard-vs-custom claim names the exact modules, settings, or fields considered |
A failing check is fixed in the spec when evidence exists; when it needs a human decision, return blocked naming the exact open question (the orchestrator relays it) — never guess and never bury it in prose.
Execution Steps
- Detect version: Read manifest.py or use provided version
- Map keywords to domains: Identify which Odoo areas are involved (sale, stock, account, etc.)
- Check standard first (only when unclear): If the proposal strategy hint is
standardorcustomand the Expectations are clear, skip exploration and go straight to gap analysis + spec. Otherwise search local Odoo source + NotebookLM for existing features. - Read human Expectations: Load the
expectationsartifact (approvedEXP-XX). These are the immutable human contract. Do NOT re-author or rephrase them. - Find gaps: Document what standard CAN and CANNOT do per requirement
- Sharpen domain language: Use the project glossary (
project_context.glossary) terms in REQ statements and scenarios; when the assessment resolves a term, update the glossary through the selected store — never create a parallel glossary artifact - Produce output: Config guide (standard) or functional spec (custom) with numbered REQ-XX for the technical plan, each REQ referencing the
EXP-XXit covers, plus Given/When/Then scenarios - Persist: Save the full assessment in the selected store and return its
canonical artifact_ref; do not require mem_*.
Completion Criteria
The phase is DONE only when ALL hold (checkable, not vibes):
- Every REQ-XX has a numbered RFC 2119 requirement with a Given/When/Then scenario; no requirement is left as prose.
- Strategy is decided (
standard | custom | migration | integration) and the standard-vs-custom reasoning names the exact standard modules/fields considered. - For
standard: the configuration guide covers every REQ. Forcustom: the functional spec passes the Requirements Quality Checklist; no unresolved ambiguity remains (interactive resolves it with the user;batch/autoreturnsblockedinstead of guessing). - Every non-core dependency of the affected module is resolved against the active sources or flagged (see odf-init dependency_matrix).
- The artifact is persisted in the selected store with a canonical
artifact_refin the ODF Result.
Lean mode is done only when the decision artifact carries `assessment.mode:
performed, a valid outcome and strategy`, bounded scope/risks/unknowns, the
output stays under 400 words, no SDD artifact was created, and the route outcome
is explicit (standard-coverage ends at DECIDE; complex escalates; otherwise
BUILD may proceed).
Output Contract
Return the complete shared ODF Result envelope, including every required common field (especially skill_resolution), with strategy limited to standard|custom; set next_recommended to ["design"] or [] as applicable.
Changelog
- 2026-09-12: Domain glossary consumption and updates (project_context.glossary).
- 2026-09-12: Requirements Quality Checklist gate added.
References
../_shared/result-contract.md— ODF Result envelope../_shared/persistence-contract.md— selected store and artifact references../_shared/odoo-sources.md— Local source paths