Skip to content

Engineering Activities

An activity is a kind of engineering work with its own output, context, and definition of done. This note defines the six activities in general terms, so the definitions hold in any project. Each project then implements them in its own way. Engineering Workflows gives the overview, and Cycles in Engineering Work describes the cycles the activities belong to. The Bottom-Up Approach tests these definitions against real tasks, which combine activities into task types. The activities first appeared as “types of work” in step 6 of the Reasoning Log; step 10 there explains why they’re in their own note.

The Six Activities

Each activity can serve discovery (reducing uncertainty that matters to a decision), delivery (building, verifying, releasing, and operating behavior people can rely on), or both.

  1. Problem & Opportunity Framing: Understanding who is affected, what needs to change, what the product should promise (and not promise), and what open questions remain.
  2. Investigation & Uncertainty Reduction: Identifying which assumptions could break the plan and testing them against the real code, data, contracts, or running system before committing.
  3. Trade-off Analysis & Design Decisions: Comparing useful alternatives against real constraints (data ownership, consistency, retries, failure handling, cost) and deciding what implementation must preserve.
  4. Implementation: Writing the code, configuration, migrations, and tests to fulfill the agreed design.
  5. Verification & Review: Checking that the change actually works–including failure paths, callers, and edge cases–independently of the author’s assumptions.
  6. Release, Operation & Learning: Deploying with clear limits, monitoring, rollback/recovery, and feeding production evidence back into the next decision.

An activity can be one step of a larger change or a task on its own, such as investigating an incident. Skills that support each activity are listed in the Reading Map.

Outputs, Context, and Acceptance for Each Activity

Each activity produces a different output, needs different context from the environment, and has its own definition of done.

ActivityWhat We Are DoingPrimary Output / ArtifactWhat the Agent Needs from the EnvironmentWhat “Done / Acceptance” Means
1. Product Framing & Scoping (cf. product-framing.md)Clarifying who the change is for, the workflow, fixed requirements vs. assumptions, and open questionsProduct brief, scope definition, list of open decisions for the ownerProduct docs (docs/product/, evergreen/), existing behavior, issue contextNext step can proceed without guessing product intent; assumptions and open product choices are explicit
2. Investigation & Diagnosis (cf. working-with-an-agent.md)Answering a specific question about system behavior, reproducing a bug, triaging an incident, or testing an assumption with a prototypeEvidence-backed finding, root-cause diagnosis, reproducer, or measurement noteCodebase, running local stack, logs/traces/metrics, diagnostic commands, read-only data accessQuestion is answered (or bounded) with reproducible evidence, cited files/logs, and explicit statement of what remains unknown
3. System Design & Planning (cf. system-design-decisions.md)Turning intended behavior into components, data ownership, failure/retry rules, trade-offs, and an implementation planDesign note, ADR (docs/adr/), feature contract, or plan.mdArchitecture docs, existing contracts, schemas, constraints, findings from investigationTrade-offs and failure modes are addressed; rules that implementation must preserve are explicit; human owner approves key design choices
4. Implementation & RefactoringWriting or changing code, configuration, migrations, and tests within agreed design and architecture boundariesCode/config diff + tests + updated contract/docsCommand layer (Taskfile), local conventions, feature contracts, linters, structural checks, test suiteBaseline checks (task quality:verify) pass and the change satisfies the feature contract / design rules
5. Verification, Testing & Review (cf. code-review.md, testing-during-review.md)Independently checking whether a change or component meets requirements, handles failures, and respects contractsReview report, failure-mode test cases, eval results, or drift auditDiff/PR, requirements/brief, feature contracts, running system or test harness, eval datasetsClaims are verified independently of the author’s explanation; blocking risks and unverified assumptions are surfaced
6. Environment & Knowledge Upkeep (cf. ade.md, build-protocol.md)Turning recurring failures or project decisions into better docs, commands, checks, or AGENTS.md rules; cleaning up driftUpdated canonical docs, Taskfile target, lint/structural rule, or justified AGENTS.md changeSession/review observations, placement rules, change log (trigger, expected effect, removal condition)Fix is placed at the right layer (preferring enforcement/tooling over prose) and measurably reduces recurring friction

Row 6 covers only environment and knowledge upkeep. The release and operation part of activity 6 has no row yet.

The Cycle Inside Each Activity

Inside each activity, the reasoning goes through the four parts of the problem-solving cycle: frame, choose, act, and look back and learn. The table shows what each part looks like in each activity. Features of a Good Approach lists the practices for each part, with examples for each activity.

ActivityFrameChooseActLook back and learn
1. FramingWho is affected and what should changeWhich scope and product promise to commit toDraft the brief; ask the owner about open product choicesCheck that the next step can proceed without guessing intent
2. InvestigationThe question, and the assumptions that could break the planWhich hypothesis to test first, and howRun a reproducer, query, trace check, or prototypeRecord what was observed and what remains unknown
3. Design decisionsConstraints, failure modes, and what must holdCompare useful alternatives, including the simplestRecord the decision and what implementation must preserveRevisit the decision when an assumption behind it fails
4. ImplementationThe agreed design and local conventionsWhich small change comes nextWrite the change and run baseline checksFix from check output; send a broken premise back to design
5. Verification and reviewThe requirements and the failure modes that matterWhich checks would expose a wrong implementationRun the checks independently of the authorState what was checked and what wasn’t; decide to merge, request changes, or escalate
6. Release, operation, and learningWhat people may rely on, and the limitsRollout scope and recovery planRelease with monitoring and a way to roll backFeed production evidence and repeated mistakes back into framing and the environment

Shortcut vs. Deliberate Assistant Use in Each Activity

When a team uses a coding assistant deliberately across activities, the assistant’s job in each activity differs from the “generate and accept” shortcut:

Activity“Generate and Accept” ShortcutDeliberate Use with an Assistant
1. FramingSkip framing; paste a rough ticket and ask for codeAssistant reads docs, code, and issues, separates current behavior from intended behavior, drafts a short brief, and lists open questions for the owner
2. InvestigationGuess how the system or API works without checkingEngineer asks a clear question; assistant checks code, logs, or contracts, reproduces the bug, or runs a small test, and reports what it saw and what is still unknown
3. Design decisionsLet the agent invent structure while writing codeAssistant finds affected parts and callers, compares options (including the simplest one), and writes down what implementation must keep true
4. ImplementationGenerate a large change across the repo in one goAssistant makes small changes within the agreed design and project conventions, running fast checks as it goes
5. Verification and reviewTrust passing tests written by the same agentAssistant traces callers and failure paths, writes tests for consequential failures (such as a response lost after a write), and records what was checked and what wasn’t
6. Release, operation, and learningMerge and move on until something breaksCheck rollout, migration, and rollback steps; inspect production logs; turn repeated mistakes and new decisions into docs, checks, commands, or AGENTS.md rules

Activities in Each Phase

The Project Design and Delivery Cycle defines a phase as “a configurable grouping of related activities oriented toward a delivery objective or decision.” A phase is a period in a project’s life, and an activity is a kind of work. Every phase can use every activity, so each activity is defined once above. The table shows which activities each phase uses most and what objective or decision ends the phase.

PhaseObjective or decision that ends itActivities used most
1. Product and artifact framingAgreed product promises, guarantees, invariants, and use cases that the design builds onFraming, investigation
2. DesignAn approved design for the system, the AI behavior, and the evaluation harnessInvestigation, design decisions, verification and review of the design
3. Baseline and prototypingEvidence that the chosen approach works on a narrow baseline (inferred: the source note lists this phase without describing it)Investigation, implementation of prototypes, verification
4. Build, product evaluation, and releaseA release decision backed by validation evidence and a rollout and rollback planImplementation, verification and review, release
5. Operation and evolutionNo final decision: production evidence keeps deciding what to change nextOperation, investigation of incidents, learning and environment upkeep, framing of the next change

The phase sets the standard for an activity: how much evidence it needs, how much exposure is acceptable, and which obligations apply. An investigation during framing can use a quick prototype. An investigation during operation works against a production system and needs more care. Teams can start at any phase, and later evidence can send work back to an earlier one.

A Project’s Version of an Activity

The definitions above hold in any project. Each project implements each activity in its own way. A project’s version of an activity states:

  • Sources of truth: which docs, contracts, and data the activity reads, and which one wins when they disagree.
  • Commands and tools: how to run the system, reproduce a problem, run checks, or deploy.
  • Checks: which checks must pass and which failure modes need a test.
  • Owners and escalation: who decides what, and when the agent must stop and ask.
  • Local definition of done: what the output must contain and what evidence it needs.

The column “What the Agent Needs from the Environment” in the outputs table lists what each activity needs in general. A project’s version names where those things are in that project. It lives in the project’s docs, command catalog (Taskfile), and checks, and AGENTS.md routes the agent to it with its three jobs: where to look, what differs here, and what done means (step 8 of the Reasoning Log).

A short template for one activity:

## Investigation in <project>

- Sources of truth:
- Commands and tools:
- Checks:
- Owners and escalation:
- Done means:

Open Questions

  • The outputs table has no row for release and operation; its sixth row covers only upkeep.
  • The outputs table still uses fuller labels (such as Investigation & Diagnosis and System Design & Planning) than the short activity names used in the cycle and shortcut tables above.
  • Phase 3, baseline and prototyping, has no description in the source note, so its row above is inferred.