Feature Engineering
Purpose
Prevent two opposite failures: implementation beginning before intent, contracts, and authority are
settled; and every small feature receiving the same ceremony as a migration or public contract.
The lifecycle has a stable forward spine and explicit return paths. How much analysis a feature earns,
and what a new finding invalidates, are the judgements. A phase is never repeated for ceremony; it is
reopened when evidence makes a downstream artefact stale.
Workflow
- Run definition intake before depth. Identify the accepted Product intent and available
Engineering Analysis, or an engineering-owned Tech Feature; concise session input can establish
a Light baseline. Missing analysis is work to route, not a reason analysis cannot start.
If the input is still an idea, route
co-authoring to collaborative-feature-definition; do not make lifecycle analysis impersonate
Product. Validate revision, stage, accountable owners, accepted gaps, and authority using
the artefact contract.
- Classify depth and persistence separately — Light, Standard or Deep; Inline or Dossier
(depth and phases). State every driver; the highest evidenced
driver wins.
- Follow the forward spine with explicit returns. A phase may be skipped by the depth rule; it
may never be faked. When evidence changes an accepted baseline, apply the artefact contract's
invalidation rules and return to the owner of the affected stage.
- Hold the gates. A BLOCKING question prevents dependent implementation. Continue independent
analysis or resources only when their own readiness is satisfied and they do not prejudge the
unresolved choice. No resource becomes DONE without observed validation evidence.
- Write decisions when made, not at the end. A decision recalled at review time is a
justification, and those differ from reasoning exactly where it matters.
- Report state, not intention: reviewed revisions, current phase, decisions, stale artefacts,
accepted gaps, blockers, and the next valid transition.
Depth and persistence
| Depth |
Fits when |
| Light |
One local outcome, known behavior, reversible, no boundary/schema change and no material choice |
| Standard |
Several components, a shared boundary touched, a meaningful choice, or a regulated concern |
| Deep |
New technology/integration, public or breaking contract, migration, PoC, costly reversal, or several authority domains |
Persistence is Dossier when work crosses sessions or owners, or depth is Standard/Deep; otherwise
it is Inline. Crossing a session changes persistence, not technical risk. Reclassify on evidence;
never lower past an active material driver merely to shorten the process.
Phase graph
The forward spine is:
Definition intake
-> discovery
-> targeted repository context
-> adaptive clarification
-> scope
-> architecture impact
-> solution [-> feasibility experiment] -> decision -> contract
-> decomposition -> risk -> implementation plan
-> readiness -> execution/progress -> completion review
| Responsibility |
Skill |
| Co-author the initial definition |
collaborative-feature-definition |
| Separate known, assumed, and unknown |
feature-discovery |
| Establish what the repository answers |
feature-context-analysis |
| Ask adaptive rounds and identify blockers |
feature-requirement-clarification |
| Fix what is in and out |
feature-scope-analysis |
| Map touched elements and boundary crossings |
feature-architecture-analysis |
| Generate and evaluate options |
feature-solution-analysis |
| Resolve one decision-relevant feasibility uncertainty |
feature-feasibility-experiment |
| Record provenance, authority, and outcome |
feature-decision-analysis |
| Define changed contracts and compatibility |
feature-contract-definition |
| Preserve observable business and technical criteria |
requirements-and-acceptance |
| Split into valuable features and executable resources |
feature-decomposition |
| Derive risks, detection, mitigation, and fallback |
feature-risk-analysis |
| Produce the executable plan |
feature-implementation-plan |
| Gate before implementation and review completion |
feature-readiness-review |
| Implement resource by resource |
feature-execution |
| Persist truthful status and chronology |
feature-progress-tracking |
The spine is not a one-way checklist. Use these returns:
| Finding |
Return to |
| Product value, rule, scope, or BAC is disputed |
Product Definition |
| Repository evidence closes or contradicts an answer |
Discovery/clarification, then affected outputs |
| Feasibility refutes an option or premise |
Solution and decision |
| Contract exposes a product trade-off |
Product owner for the affected rule/BAC |
| Contract changes compatibility or rollout |
Architecture, risk, decomposition, and plan |
| Implementation departs from an accepted decision |
Impact, decision, contract/plan, then readiness |
Only traced downstream artefacts are invalidated. A return is focused, not a restart.
Decision rules
IF the repository can answer a question
THEN establish and cite the fact before asking the user.
IF a question changes behavior, contract, data semantics, security, or failure handling
THEN use evidenced authority/delegation from the session and project; identify a missing accountable
role only where the consequence requires one. Do not demand approval already supplied.
IF feasibility is unknown and pass/fail changes a decision
THEN run feature-feasibility-experiment before selecting or recording the option.
IF a boundary crossing has no accepted contract and owner
THEN return to engineering; a DTO or file shape in the plan is not a contract.
IF a plan needs a BAC-* or TC-* that the accepted definition does not contain
THEN return to the accountable role; planning does not author acceptance criteria.
IF a Product Definition changes after Engineering Analysis starts
THEN create a new revision, invalidate traced downstream artefacts, and reapprove only what changed.
IF implementation contradicts a recorded decision
THEN determine whether the implementation is wrong or the decision has been invalidated.
Restore intended behavior, or revise the affected decision/plan with appropriate authority;
do not automatically rewrite the decision to justify a deviation.
IF work will cross a session or owner
THEN persistence is Dossier and the resumption artefact is current before handoff.
Non-negotiable rules
- Never invent business requirements, corporate standards, compliance obligations, or approval.
- Never select a major technology silently.
- Never treat repository practice as organisational authority.
- Never reuse an identifier for a different artefact type.
- Never expand or shrink accepted scope without a revision and impact entry.
- Never mark RES-* DONE without observed EV-*.
- Never waive a gap without the role authorised to accept its consequence.
Dossier
When persistence is Dossier, use the dossier layout, adapted to the
repository's existing convention. The dossier is a working resumption and audit artefact, not a
ceremonial deliverable assembled at the end.
When reviewing or evolving the lifecycle itself, use
the behavioral validation cases. They are evaluation scenarios,
not extra runtime ceremony.
Output
Open with input revisions, depth, persistence, and their drivers. Then report current phase, decisions,
stale artefacts, accepted gaps, blockers, and next transition. Normalize readiness to:
- PASS;
- PASS WITH ACCEPTED GAPS;
- RETURN TO PRODUCT;
- RETURN TO ENGINEERING;
- DECOMPOSE BEFORE PROCEEDING.
Only the first two advance. A Light/Inline report may still be three lines.
1---2name: feature-engineering3description: Owning a Product Feature or Tech Feature from definition intake to completion review: selecting proportionate depth, routing iterative analysis and explicit returns, holding readiness gates, and keeping versioned evidence another engineer can resume. Use when feature implementation is being prepared, resumed, or validated and its scope, contracts, decisions, or completion need a trustworthy lifecycle. Does not co-author the initial feature brief (collaborative-feature-definition), own any specialist phase in depth, orchestrate an arbitrary change (clean-delivery-workflow), or define the ADR record format (architecture-decision-making).4---56# Feature Engineering78## Purpose910Prevent two opposite failures: implementation beginning before intent, contracts, and authority are11settled; and every small feature receiving the same ceremony as a migration or public contract.1213The lifecycle has a stable forward spine and explicit return paths. How much analysis a feature earns,14and what a new finding invalidates, are the judgements. A phase is never repeated for ceremony; it is15reopened when evidence makes a downstream artefact stale.1617## Workflow18191. **Run definition intake before depth.** Identify the accepted Product intent and available20 Engineering Analysis, or an engineering-owned Tech Feature; concise session input can establish21 a Light baseline. Missing analysis is work to route, not a reason analysis cannot start.22 If the input is still an idea, route23 co-authoring to collaborative-feature-definition; do not make lifecycle analysis impersonate24 Product. Validate revision, stage, accountable owners, accepted gaps, and authority using25 [the artefact contract](references/artefact-contract.md).262. **Classify depth and persistence separately** — Light, Standard or Deep; Inline or Dossier27 ([depth and phases](references/depth-and-phases.md)). State every driver; the highest evidenced28 driver wins.293. **Follow the forward spine with explicit returns.** A phase may be skipped by the depth rule; it30 may never be faked. When evidence changes an accepted baseline, apply the artefact contract's31 invalidation rules and return to the owner of the affected stage.324. **Hold the gates.** A BLOCKING question prevents dependent implementation. Continue independent33 analysis or resources only when their own readiness is satisfied and they do not prejudge the34 unresolved choice. No resource becomes DONE without observed validation evidence.355. **Write decisions when made**, not at the end. A decision recalled at review time is a36 justification, and those differ from reasoning exactly where it matters.376. **Report state, not intention:** reviewed revisions, current phase, decisions, stale artefacts,38 accepted gaps, blockers, and the next valid transition.3940## Depth and persistence4142| Depth | Fits when |43| ------------ | ---------------------------------------------------------------------------------------------------------------------- |44| **Light** | One local outcome, known behavior, reversible, no boundary/schema change and no material choice |45| **Standard** | Several components, a shared boundary touched, a meaningful choice, or a regulated concern |46| **Deep** | New technology/integration, public or breaking contract, migration, PoC, costly reversal, or several authority domains |4748Persistence is **Dossier** when work crosses sessions or owners, or depth is Standard/Deep; otherwise49it is **Inline**. Crossing a session changes persistence, not technical risk. Reclassify on evidence;50never lower past an active material driver merely to shorten the process.5152## Phase graph5354The forward spine is:5556```text57Definition intake58 -> discovery59 -> targeted repository context60 -> adaptive clarification61 -> scope62 -> architecture impact63 -> solution [-> feasibility experiment] -> decision -> contract64 -> decomposition -> risk -> implementation plan65 -> readiness -> execution/progress -> completion review66```6768| Responsibility | Skill |69| ----------------------------------------------------- | --------------------------------- |70| Co-author the initial definition | collaborative-feature-definition |71| Separate known, assumed, and unknown | feature-discovery |72| Establish what the repository answers | feature-context-analysis |73| Ask adaptive rounds and identify blockers | feature-requirement-clarification |74| Fix what is in and out | feature-scope-analysis |75| Map touched elements and boundary crossings | feature-architecture-analysis |76| Generate and evaluate options | feature-solution-analysis |77| Resolve one decision-relevant feasibility uncertainty | feature-feasibility-experiment |78| Record provenance, authority, and outcome | feature-decision-analysis |79| Define changed contracts and compatibility | feature-contract-definition |80| Preserve observable business and technical criteria | requirements-and-acceptance |81| Split into valuable features and executable resources | feature-decomposition |82| Derive risks, detection, mitigation, and fallback | feature-risk-analysis |83| Produce the executable plan | feature-implementation-plan |84| Gate before implementation and review completion | feature-readiness-review |85| Implement resource by resource | feature-execution |86| Persist truthful status and chronology | feature-progress-tracking |8788The spine is not a one-way checklist. Use these returns:8990| Finding | Return to |91| --------------------------------------------------- | ----------------------------------------------- |92| Product value, rule, scope, or BAC is disputed | Product Definition |93| Repository evidence closes or contradicts an answer | Discovery/clarification, then affected outputs |94| Feasibility refutes an option or premise | Solution and decision |95| Contract exposes a product trade-off | Product owner for the affected rule/BAC |96| Contract changes compatibility or rollout | Architecture, risk, decomposition, and plan |97| Implementation departs from an accepted decision | Impact, decision, contract/plan, then readiness |9899Only traced downstream artefacts are invalidated. A return is focused, not a restart.100101## Decision rules102103```text104IF the repository can answer a question105THEN establish and cite the fact before asking the user.106107IF a question changes behavior, contract, data semantics, security, or failure handling108THEN use evidenced authority/delegation from the session and project; identify a missing accountable109 role only where the consequence requires one. Do not demand approval already supplied.110111IF feasibility is unknown and pass/fail changes a decision112THEN run feature-feasibility-experiment before selecting or recording the option.113114IF a boundary crossing has no accepted contract and owner115THEN return to engineering; a DTO or file shape in the plan is not a contract.116117IF a plan needs a BAC-* or TC-* that the accepted definition does not contain118THEN return to the accountable role; planning does not author acceptance criteria.119120IF a Product Definition changes after Engineering Analysis starts121THEN create a new revision, invalidate traced downstream artefacts, and reapprove only what changed.122123IF implementation contradicts a recorded decision124THEN determine whether the implementation is wrong or the decision has been invalidated.125 Restore intended behavior, or revise the affected decision/plan with appropriate authority;126 do not automatically rewrite the decision to justify a deviation.127128IF work will cross a session or owner129THEN persistence is Dossier and the resumption artefact is current before handoff.130```131132## Non-negotiable rules133134- Never invent business requirements, corporate standards, compliance obligations, or approval.135- Never select a major technology silently.136- Never treat repository practice as organisational authority.137- Never reuse an identifier for a different artefact type.138- Never expand or shrink accepted scope without a revision and impact entry.139- Never mark RES-* DONE without observed EV-*.140- Never waive a gap without the role authorised to accept its consequence.141142## Dossier143144When persistence is Dossier, use [the dossier layout](references/dossier-layout.md), adapted to the145repository's existing convention. The dossier is a working resumption and audit artefact, not a146ceremonial deliverable assembled at the end.147148When reviewing or evolving the lifecycle itself, use149[the behavioral validation cases](references/validation-cases.md). They are evaluation scenarios,150not extra runtime ceremony.151152## Output153154Open with input revisions, depth, persistence, and their drivers. Then report current phase, decisions,155stale artefacts, accepted gaps, blockers, and next transition. Normalize readiness to:156157- PASS;158- PASS WITH ACCEPTED GAPS;159- RETURN TO PRODUCT;160- RETURN TO ENGINEERING;161- DECOMPOSE BEFORE PROCEEDING.162163Only the first two advance. A Light/Inline report may still be three lines.