mvp-ai's picture
|
download
raw
3.11 kB
# Module 2 Prompt Adaptation
Module 2 prompts are generated from a stable role contract plus project-specific
profile data.
Module 2 is execution, not another product meeting. All broad discussion,
feature negotiation, red-line setting, and boundary discovery must already have
happened in Module 1. A Module 2 role may clarify only the current task mechanics.
If it discovers ambiguous requirements or conflicting boundaries, it must report
the blocker and send the work back to Module 1 artifacts instead of inventing a
new direction.
```text
role contract
+ step guide
+ project-profile.json
+ execution-manifest.json task slice
+ project-type guidance
= actual sub-agent prompt
```
The generated prompt is intentionally not a full project briefing. The role must
write durable facts into its required artifact; the coordinator then records a
compact summary in `.harness/context-ledger.json` and closes/discards the role
context.
Use:
```powershell
python scripts\build_agent_prompt.py --task-dir <task_dir> --role developer --task-id T1
python scripts\build_agent_prompt.py --task-dir <task_dir> --role code-qa
python scripts\build_agent_prompt.py --task-dir <task_dir> --role func-qa
python scripts\build_agent_prompt.py --task-dir <task_dir> --role user-acceptance
```
## Why this matters
The developer role should feel different for different project types:
- CLI: arguments, exit codes, stdout/stderr, deterministic output.
- Web app: API contracts, responsive UI, loading/error states, browser checks.
- Quant trading: capital protection, slippage, replayable backtests, live-trade
safety.
- Data pipeline: schema, malformed rows, idempotency, partial failures.
- Video/design: storyboard timing, visual continuity, format compliance.
The role boundary stays stable; the project pressure changes.
## Final user-side acceptance
After code QA and func QA, Module 2 performs a final user-side acceptance pass.
This is different from engineering verification: it simulates the real user
entering through the product surface and trying the promised workflows.
- Web/mobile: Browser clicks, viewport checks, screenshots, visible states.
- CLI: real commands, exit codes, stdout/stderr, exact observed output.
- Data pipeline: sample input through final output/schema checks.
- Quant trading: simulated/backtest scenarios with risk and position evidence.
- Video/design: rendered/exported artifact review with frames/screenshots.
The output is `user-acceptance-report.md`; `USER_ACCEPTANCE_GATE` must pass
before `AUDIT_GATE`.
## Recording handoff
After every Module 2 role:
```powershell
python scripts\record_agent_result.py --task-dir <task_dir> --phase <module_step> --role <role> --agent-id <role-task-id> --input-summary "<what this role was given>" --output-summary "<what it produced or blocked on>" --artifact <artifact_path>
```
## Non-negotiable execution rule
```text
Module 1 decides.
Module 2 executes with TDD.
If Module 2 discovers an undecided product/rule/boundary issue, it stops and
returns a precise blocker. It does not hold a new debate inside implementation.
```

Xet Storage Details

Size:
3.11 kB
·
Xet hash:
ac2bad879e792b23634b3b00eede285340b6890ff8c82c25720e842ea32985c1

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.