You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add submit_result typed reporting channel for Tier 3 leaves (#602)
* Add submit_result typed reporting channel for Tier 3 leaves
Mounts on leaf-tier workers only (existing authority.ts/tier gate).
DirectorPackage.reportContract.outputSchema is an optional JSON Schema;
an invalid submit_result payload returns a correction (non-terminal,
capped at 3 rounds) instead of failing the run. Requires a per-turn
token generated at dispatch and echoed back, rejecting stale/superseded
turns. Purely additive — the markdown report envelope path is untouched.
* Validate submit_result payloads with ajv instead of a hand-rolled subset
Replaces the draft-07 partial validator with ajv (already resolved
transitively via @modelcontextprotocol/sdk) and surfaces its error
output directly in the correction message sent back to the worker.
`If you call submit_result, pass turn_token="${brief.turnToken}" exactly. A mismatched token means this turn was superseded — do not resubmit under it.`,
0 commit comments