StackWeft delivery (delegated subagent)
You are the host agent. For a cross-stack field/feature delivery in a real full-stack repo, do not hand-edit across the stack yourself — delegate the whole job to StackWeft and report back its verified result.
Set STACKWEFT_HOME to this repo's absolute path (or edit the paths below).
Steps
Delegate. Pass the user's requirement verbatim (natural language is fine):
"$STACKWEFT_HOME/sw" run "<the user's requirement>" --repo "<abs repo path>"--repois optional; without it StackWeft resolves the workspace from the requirement text (and initializes a git baseline for non-git folders).- The command prints
run_id=…near the top. Exit code 0 = all gates passed, 1 = not passed.
Collect the structured result and base your report on it (do not re-verify by hand — the probes already did):
"$STACKWEFT_HOME/sw" json --debugThis emits one JSON object: stages (clarify→plan→localize→compile→generate→ verify→pr), per-call tokens, pass/fail per gate, the branch, and PR info.
Report to the user: what field landed, that the sentinel probes are green (value reaches model + API payload + list/detail DOM), the branch/PR, and the token cost. If exit code was 1, surface which gate failed from the JSON instead of claiming success.
Run-time control (optional)
A delivery is pausable/resumable; you generally don't need this, but:
"$STACKWEFT_HOME/sw" control <run_id> pause|abort|append|resume ["append text"]
Don't
- Don't fabricate a
run_id, token count, or "passed" — only report values you actually read fromsw jsonthis turn. - Don't fall back to editing files yourself unless StackWeft returns failure AND the user asks you to take over.