Silently extract scope contract from opening message. Walk up from cwd to find .optimusprime/. If not found, skip.
Write .optimusprime/contract.json:
goal: verb-first one sentence ("Implement X", "Fix Y in Z")in_scope: file globs inferred from taskout_of_scope: always include["node_modules/**", ".env", ".git/**", "__pycache__/**"]; add others if obviouscomplexity_budget:"minimal"(1–2 files) /"moderate"(3–10 files) /"full"(cross-cutting)agent_id:"main"created_at: ISO 8601 UTCsession_id: random 8-char hex
If goal is clear: write contract, output nothing, proceed to task. If genuinely ambiguous: ask exactly ONE question to resolve scope, then write.
After writing: no output. Proceed directly to the user's task.