"""The v2 loop-taxonomy labels + laya question (docs/components/loop-taxonomy.md, "Entry criteria"). Nine request labels, first match wins in this order. v1 -> v2: make->produce, react->stabilize, arrange/acquire/execute->transact, tend->conversation (a standing-concern review is a lookup; the wake that raises it is a trigger, not a request label). `plan` is new. """ LABELS = { "stabilize": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window) and a cheap, reversible action plausibly stops the worsening.", "transact": "The outcome is a commitment or possession in the world: a booking, reservation, purchase, payment, transfer, or a named procedure completed to acceptance.", "plan": "The outcome is the person's own standing structure, set up or changed in their personal records: a goal, a routine, a budget or spending limit, a tracker. Reversible, nobody else involved.", "produce": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste): a document, spreadsheet, script, letter.", "diagnose": "The outcome is the cause of a specific malfunction or anomaly, including causes in the person's own data.", "research": "The outcome is understanding assembled from investigation: multi-source, current, comparison or synthesis-shaped.", "learn": "The outcome is the person's own ability, built over sessions: practice, tutoring, review.", "companion": "Inner-life support with no outcome in the world: explicitly reflective or support-seeking.", "conversation": "None of the above: questions, quick asks, lookups, reports of a measurement, a single reminder or note, chatter.", } V1_TO_V2 = { "make": "produce", "react": "stabilize", "arrange": "transact", "acquire": "transact", "execute": "transact", "tend": "conversation", "conversation": "conversation", "diagnose": "diagnose", "research": "research", "learn": "learn", "companion": "companion", } QUESTIONS = { "loop": { "type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": LABELS, } }