discipline_tokens_auto_emit
Automatically emit all discipline tokens required for a target flow transition when standard body-field emission fails, enabling the flow to proceed.
Instructions
DF-437 — Bulk auto-emit all discipline-tokens required for a target transition (POST /api/flows/:id/discipline-tokens/auto-emit).
PREFER the DF-435 body fields on flow_update itself — they carry real evidence and the backend derives the tokens from them:
testStrategy: "<Red→Green-Strategie ≥30 Zeichen>" (approval/ready → devflow-tdd)
acVerification: [{acId, command, output}] (done → devflow-verification-gate)
planReconciliation: { perAcStatus: [{acId, status}] } (done → devflow-plan-reconciliation)
filesChanged: [] (done → devflow-adr-compliance)
Use this tool as a FALLBACK when the body-field path is not available (e.g. older backend) or a token is missing after a 403 discipline_incomplete. Tokens land in the DB — the next flow_update passes via implicit self-approval (DF-371), no token-strings needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flowId | Yes | Flow id | |
| targetState | Yes | The transition the tokens are needed for |