Datasets:
laya loop-taxonomy v1 corpus (5,280 train + 24 boundary drills)
Browse files- README.md +103 -0
- eval_drills.jsonl +24 -0
- generate_synthetic.py +305 -0
- taxonomy_labels.py +26 -0
- train.jsonl +0 -0
README.md
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
pretty_name: Agent Task Classifier Dataset (laya loop-taxonomy v1)
|
| 8 |
+
size_categories:
|
| 9 |
+
- 1K<n<10K
|
| 10 |
+
tags:
|
| 11 |
+
- agent
|
| 12 |
+
- routing
|
| 13 |
+
- task-classification
|
| 14 |
+
- decision-model
|
| 15 |
+
- laya
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# agent-task-classifier-dataset
|
| 19 |
+
|
| 20 |
+
5,304 labeled English examples for training classifiers that map a user request (to a
|
| 21 |
+
personal-assistant agent) to the **agent-loop shape** it demands — the skeleton of the
|
| 22 |
+
high-level process a task of that kind must follow — rather than its topic.
|
| 23 |
+
|
| 24 |
+
Companion model: [kumarabd1996/agent-task-classifier](https://huggingface.co/kumarabd1996/agent-task-classifier)
|
| 25 |
+
(a fine-tuned [laya](https://huggingface.co/convaiinnovations/laya) checkpoint; 20/24 on the
|
| 26 |
+
boundary drills included here, vs 8/24 for the untuned base).
|
| 27 |
+
|
| 28 |
+
## The eleven labels
|
| 29 |
+
|
| 30 |
+
| label | the loop it demands |
|
| 31 |
+
|---|---|
|
| 32 |
+
| `conversation` | answer/act directly — the default, safe fallback |
|
| 33 |
+
| `diagnose` | find the cause of a specific malfunction or anomaly |
|
| 34 |
+
| `research` | assemble understanding from investigation (multi-source, synthesis) |
|
| 35 |
+
| `arrange` | commit a real-world arrangement — book, reserve, schedule, hire |
|
| 36 |
+
| `acquire` | obtain a purchasable good, and verify it arrived |
|
| 37 |
+
| `execute` | complete a known, externally-defined procedure (renew, file, claim) |
|
| 38 |
+
| `make` | produce an artifact judged against a standard (tests, spec, taste) |
|
| 39 |
+
| `tend` | review/maintain a standing concern (budget, health, home, wardrobe) |
|
| 40 |
+
| `learn` | build the user's own ability over sessions (practice, tutoring) |
|
| 41 |
+
| `companion` | inner-life support with no outcome in the world (reflection, therapy) |
|
| 42 |
+
| `react` | urgent/deteriorating situation — act before full understanding |
|
| 43 |
+
|
| 44 |
+
Two requests share a label iff they demand the same loop skeleton — same phases, same iteration
|
| 45 |
+
driver, same exit criterion. Topic is irrelevant.
|
| 46 |
+
|
| 47 |
+
## Format
|
| 48 |
+
|
| 49 |
+
`train.jsonl` — one JSON object per line, laya's native training format:
|
| 50 |
+
|
| 51 |
+
```json
|
| 52 |
+
{"state": "<the request text>", "questions": {"loop": {"type": "choice", "instructions": "...", "criteria": {...}}}, "expected": {"loop": "<label>"}}
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Continuations carry the request being continued, in the exact format used at inference:
|
| 56 |
+
|
| 57 |
+
```
|
| 58 |
+
Earlier request: <prior request>
|
| 59 |
+
New request: <follow-up>
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
`eval_drills.jsonl` — 24 held-out boundary cases (info-vs-procedure, understanding-vs-commitment,
|
| 63 |
+
urgency-vs-worry, artifact-vs-investigation). Never trained on; the model card reports against it.
|
| 64 |
+
|
| 65 |
+
## Composition
|
| 66 |
+
|
| 67 |
+
| source | items | license | note |
|
| 68 |
+
|---|---|---|---|
|
| 69 |
+
| MultiWOZ 2.1 | ~990 | permissive (research; Budzianowski et al. 2018) | human booking utterances + continuations (`arrange`) |
|
| 70 |
+
| MASSIVE en-US | ~920 | CC-BY-4.0 (Amazon Science) | takeaway orders, transport bookings, sampled commands |
|
| 71 |
+
| OASST2 (English) | ~1,060 | Apache-2.0 (OpenAssistant) | real prompts + continuations, model-labeled with the taxonomy spec, spot-audited |
|
| 72 |
+
| Synthetic (this release) | ~2,315 | Apache-2.0 | all eleven labels incl. 34 hand-written boundary cases; labels by construction |
|
| 73 |
+
| — continuation-form subsets | 1,056 total | — | `Earlier request: … / New request: …` examples across sources |
|
| 74 |
+
|
| 75 |
+
Label distribution (after per-class caps, none above ~28%): arrange 1,500 · conversation 1,200 ·
|
| 76 |
+
make 549 · diagnose 406 · acquire 404 · execute 292 · research 225 · learn 221 · companion 186 ·
|
| 77 |
+
tend 174 · react 123.
|
| 78 |
+
|
| 79 |
+
## Provenance and licensing
|
| 80 |
+
|
| 81 |
+
- **MASSIVE**: Amazon Science, CC-BY-4.0 — attribution required and given.
|
| 82 |
+
- **OASST2**: OpenAssistant Conversations Dataset, Apache-2.0.
|
| 83 |
+
- **MultiWOZ 2.1**: Budzianowski et al., 2018; distributed for research use.
|
| 84 |
+
- **Synthetic items**: generated for this release; scripts included
|
| 85 |
+
(`generate_synthetic.py`, `taxonomy_labels.py`) so the construction is reproducible.
|
| 86 |
+
|
| 87 |
+
## Limitations
|
| 88 |
+
|
| 89 |
+
- A large share of items is synthetic; template patterns bias the text distribution.
|
| 90 |
+
- English only. The eleven labels are fixed; out-of-taxonomy requests resolve to `conversation`.
|
| 91 |
+
- OASST2 labels are teacher-model labels following the taxonomy spec (spot-audited), not fully
|
| 92 |
+
human-verified. Labels for some continuation-of-ongoing-work patterns are under review for a
|
| 93 |
+
v1.1 revision.
|
| 94 |
+
- **Privacy**: contains only public datasets and synthetic text. The maintainer's own evaluation
|
| 95 |
+
turns are deliberately excluded.
|
| 96 |
+
|
| 97 |
+
## Example use
|
| 98 |
+
|
| 99 |
+
```python
|
| 100 |
+
import json
|
| 101 |
+
from datasets import load_dataset
|
| 102 |
+
ds = load_dataset("kumarabd1996/agent-task-classifier-dataset")
|
| 103 |
+
```
|
eval_drills.jsonl
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"state": "Why is my gateway restarting?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "diagnose"}, "src": "drill", "id": "drill-0"}
|
| 2 |
+
{"state": "How does our gateway routing work?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "conversation"}, "src": "drill", "id": "drill-1"}
|
| 3 |
+
{"state": "Book me a table for four, Saturday 8pm.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "arrange"}, "src": "drill", "id": "drill-2"}
|
| 4 |
+
{"state": "We're out of laundry detergent.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "acquire"}, "src": "drill", "id": "drill-3"}
|
| 5 |
+
{"state": "Plan the Bali trip for December.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "arrange"}, "src": "drill", "id": "drill-4"}
|
| 6 |
+
{"state": "Is Bali worth visiting in December?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "research"}, "src": "drill", "id": "drill-5"}
|
| 7 |
+
{"state": "Renew my passport.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "execute"}, "src": "drill", "id": "drill-6"}
|
| 8 |
+
{"state": "What does renewing a passport require?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "conversation"}, "src": "drill", "id": "drill-7"}
|
| 9 |
+
{"state": "Write a cover letter for the Stripe job.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "make"}, "src": "drill", "id": "drill-8"}
|
| 10 |
+
{"state": "Research whether I should switch to a MacBook.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "research"}, "src": "drill", "id": "drill-9"}
|
| 11 |
+
{"state": "My flight just got cancelled and I fly tomorrow.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "react"}, "src": "drill", "id": "drill-10"}
|
| 12 |
+
{"state": "Remind me to renew my passport in June.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "conversation"}, "src": "drill", "id": "drill-11"}
|
| 13 |
+
{"state": "Teach me Spanish.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "learn"}, "src": "drill", "id": "drill-12"}
|
| 14 |
+
{"state": "Explain how TLS works.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "conversation"}, "src": "drill", "id": "drill-13"}
|
| 15 |
+
{"state": "Review how my budget is doing this month.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "tend"}, "src": "drill", "id": "drill-14"}
|
| 16 |
+
{"state": "How much did I spend on food last month?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "conversation"}, "src": "drill", "id": "drill-15"}
|
| 17 |
+
{"state": "I'm feeling really anxious about this move.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "companion"}, "src": "drill", "id": "drill-16"}
|
| 18 |
+
{"state": "I'm annoyed today \u2014 anyway, book the table.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "arrange"}, "src": "drill", "id": "drill-17"}
|
| 19 |
+
{"state": "Build me a spending dashboard.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "make"}, "src": "drill", "id": "drill-18"}
|
| 20 |
+
{"state": "Why have I been so tired lately?", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "diagnose"}, "src": "drill", "id": "drill-19"}
|
| 21 |
+
{"state": "Compare the top three EV lease deals.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "research"}, "src": "drill", "id": "drill-20"}
|
| 22 |
+
{"state": "Sign me up for the best EV lease deal you find.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "arrange"}, "src": "drill", "id": "drill-21"}
|
| 23 |
+
{"state": "Make me a workout plan.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "make"}, "src": "drill", "id": "drill-22"}
|
| 24 |
+
{"state": "Earlier request: Shall I book the table for 8pm?\nNew request: Do it.", "questions": {"loop": {"type": "choice", "instructions": "What does this request (or the request it continues) demand?", "criteria": {"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).", "acquire": "The outcome is possession of a purchasable good \u2014 buy, order, restock, replace.", "arrange": "The outcome is a commitment in the world with other parties or the calendar \u2014 book, reserve, schedule, hire, plan-to-commit.", "execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance \u2014 renew, file, claim, apply, submit.", "make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).", "diagnose": "The outcome is the cause of a specific malfunction or anomaly.", "research": "The outcome is understanding assembled from investigation \u2014 multi-source, current, or synthesis-shaped.", "learn": "The outcome is the user's own ability, built over sessions \u2014 practice, tutoring, review.", "tend": "The request concerns the ongoing state of a standing concern \u2014 review, maintain, adjust; recurring or wake-arrived.", "companion": "Inner-life support with no outcome in the world \u2014 explicitly reflective or support-seeking.", "conversation": "Nothing above fits \u2014 questions, quick asks, lookups, chatter, micro-tasks."}}}, "expected": {"loop": "arrange"}, "src": "drill", "id": "drill-23"}
|
generate_synthetic.py
ADDED
|
@@ -0,0 +1,305 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Synthetic corpus for the loop taxonomy — template x slot generation, labels
|
| 2 |
+
by construction, plus hand-written boundary items and continuation forms.
|
| 3 |
+
|
| 4 |
+
Built against docs/components/loop-taxonomy.md's entry criteria. Template bias
|
| 5 |
+
is the known limitation (recorded in the corpus README); slot pools span the
|
| 6 |
+
personal-assistant life domains: finances, home, devices, travel, health,
|
| 7 |
+
wardrobe, work/software, family/social, admin, learning, food.
|
| 8 |
+
"""
|
| 9 |
+
import json
|
| 10 |
+
import random
|
| 11 |
+
|
| 12 |
+
rng = random.Random(7)
|
| 13 |
+
|
| 14 |
+
SLOTS = {
|
| 15 |
+
"thing": ["dishwasher", "washing machine", "dryer", "car", "bike", "gateway", "home server",
|
| 16 |
+
"laptop", "phone", "wifi", "router", "coffee machine", "water heater", "printer",
|
| 17 |
+
"door lock", "thermostat", "robot vacuum", "car charger", "monitor", "keyboard"],
|
| 18 |
+
"bad": ["making a grinding noise", "running really slow", "restarting every few hours",
|
| 19 |
+
"draining battery fast", "overheating", "randomly disconnecting", "freezing up",
|
| 20 |
+
"not charging", "leaking", "showing wrong numbers", "flapping on and off",
|
| 21 |
+
"categorizing things wrong", "running way hotter than usual"],
|
| 22 |
+
"metric": ["food spend", "electricity bill", "internet bill", "health score", "sleep score",
|
| 23 |
+
"screen time", "subscription spend", "grocery spend"],
|
| 24 |
+
"skill": ["Spanish", "guitar", "chess", "cooking", "Python", "drawing", "swimming",
|
| 25 |
+
"Portuguese", "piano", "photography", "French", "rock climbing"],
|
| 26 |
+
"standing": ["food budget", "monthly budget", "sleep", "workouts", "investments",
|
| 27 |
+
"wardrobe", "home maintenance", "savings rate", "screen time"],
|
| 28 |
+
"person": ["mom", "Priya", "dad", "Anita", "my brother", "Sam", "grandma", "Ravi"],
|
| 29 |
+
"event": ["dinner", "anniversary dinner", "team offsite", "birthday party", "family lunch",
|
| 30 |
+
"climbing session", "coffee catch-up", "housewarming", "weekend trip", "date night"],
|
| 31 |
+
"procedure": ["passport", "driver's license", "car registration", "gym membership",
|
| 32 |
+
"insurance claim", "expense report", "utility account", "travel visa",
|
| 33 |
+
"health insurance", "apartment lease", "professional license",
|
| 34 |
+
"tax filing", "student loan deferment", "parking ticket",
|
| 35 |
+
"airline refund", "electricity connection"],
|
| 36 |
+
"artifact": ["cover letter for the Stripe job", "wedding speech", "resignation letter",
|
| 37 |
+
"meal plan for next week", "training plan for a 10k", "packing list for Japan",
|
| 38 |
+
"gift ideas for mom's 60th", "budget spreadsheet", "spending dashboard",
|
| 39 |
+
"script that renames my photo files", "announcement post for the move",
|
| 40 |
+
"toast for my sister's wedding", "README for my side project"],
|
| 41 |
+
"topic": ["EV leasing vs buying", "creatine", "standing desks", "moving to Lisbon",
|
| 42 |
+
"index funds vs robo-advisors", "sleep trackers", "heat pumps", "prenatal vitamins",
|
| 43 |
+
"noise-cancelling headphones", "heat pump vs solar for our house"],
|
| 44 |
+
"consumable": ["laundry detergent", "coffee beans", "printer paper", "dog food",
|
| 45 |
+
"olive oil", "dishwasher tablets", "protein powder", "AA batteries"],
|
| 46 |
+
"purchase": ["USB-C dock", "replacement filter for the water purifier", "running shoes",
|
| 47 |
+
"a blender", "a monitor arm", "an air purifier", "a winter jacket", "a standing desk"],
|
| 48 |
+
"domain": ["budget", "wardrobe", "home setup", "health stats", "reading list", "kitchen"],
|
| 49 |
+
"situation": ["the move", "this job", "my friendship with Sam", "how the year is going",
|
| 50 |
+
"my parents getting older", "being so busy lately", "the promotion I didn't get"],
|
| 51 |
+
"emergency": ["my flight was just cancelled and I fly tomorrow morning",
|
| 52 |
+
"the hotel just called and cancelled our booking for tonight",
|
| 53 |
+
"my meeting got moved to right now and I'm not ready",
|
| 54 |
+
"the washing machine is spilling water on the floor",
|
| 55 |
+
"I locked myself out and the stove is on",
|
| 56 |
+
"my phone just broke and it's my only alarm for the early flight",
|
| 57 |
+
"the bathroom is flooding", "I think I lost my wallet in Lisbon",
|
| 58 |
+
"the power just went out and the freezer is full",
|
| 59 |
+
"I'm about to miss the visa filing deadline",
|
| 60 |
+
"my laptop just died and the presentation is in two hours",
|
| 61 |
+
"the car won't start and I have a hospital appointment in an hour",
|
| 62 |
+
"I burned my hand and I'm home alone"],
|
| 63 |
+
"price": ["don't spend more than $80", "keep it under $30", "whatever's cheapest",
|
| 64 |
+
"quality over price", "mid-range is fine"],
|
| 65 |
+
"when": ["tomorrow", "this weekend", "Sunday", "next Tuesday", "tonight", "Saturday morning"],
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
T = {
|
| 69 |
+
"diagnose": [
|
| 70 |
+
"why is my {thing} {bad}?", "my {thing} keeps {bad} — any idea what's going on?",
|
| 71 |
+
"any idea why the {thing} is {bad}?", "my {thing} started {bad} after the update — why?",
|
| 72 |
+
"something's off with my {thing}, it {bad}", "why did my {metric} jump this month?",
|
| 73 |
+
"my {thing} has been {bad} since yesterday, figure out why",
|
| 74 |
+
"what's wrong with my {thing}? it's {bad}", "why is the {thing} {bad} again?",
|
| 75 |
+
"help me figure out why my {thing} is {bad}", "my {thing} is {bad}, what's causing that?",
|
| 76 |
+
"my {metric} doesn't make sense this month — why?",
|
| 77 |
+
"why does my {thing} get {bad} only in the evening?",
|
| 78 |
+
"the {thing} {bad} whenever I run the dishwasher — what is that?",
|
| 79 |
+
"diagnose my {thing} — it's {bad}", "any clue why {thing} keeps {bad}?",
|
| 80 |
+
"why is my {thing} {bad} all of a sudden?",
|
| 81 |
+
"trace down why the {thing} is {bad}",
|
| 82 |
+
],
|
| 83 |
+
"execute": [
|
| 84 |
+
"renew my {procedure}", "file the {procedure} claim", "submit my {procedure}",
|
| 85 |
+
"cancel my {procedure}", "update my address on the {procedure}",
|
| 86 |
+
"apply for the {procedure}", "get the {procedure} sorted", "handle the {procedure} for me",
|
| 87 |
+
"i need to renew my {procedure} before it expires",
|
| 88 |
+
"start the {procedure} process", "complete the {procedure} paperwork",
|
| 89 |
+
"file a dispute on that charge on my card",
|
| 90 |
+
"do my taxes this year", "submit the warranty claim for the {thing}",
|
| 91 |
+
"get my {procedure} reissued", "transfer the {procedure} to my name",
|
| 92 |
+
"appeal the parking ticket", "get the rebate claim submitted",
|
| 93 |
+
],
|
| 94 |
+
"make": [
|
| 95 |
+
"write my {artifact}", "draft a {artifact}", "can you make a {artifact} for me",
|
| 96 |
+
"put together a {artifact}", "i need a {artifact}", "build me a {artifact}",
|
| 97 |
+
"write the {artifact}", "help me write my {artifact}",
|
| 98 |
+
"create a {artifact}", "can you draft the {artifact}?",
|
| 99 |
+
"make me a {artifact}", "i want a {artifact} — make it good",
|
| 100 |
+
"write up a {artifact}", "produce the {artifact} from my notes",
|
| 101 |
+
"turn my notes into a {artifact}",
|
| 102 |
+
],
|
| 103 |
+
"research": [
|
| 104 |
+
"look into {topic} for me", "i want to understand {topic} properly",
|
| 105 |
+
"compare {topic}", "what should i know before deciding on {topic}?",
|
| 106 |
+
"is the stuff about {topic} actually true?", "dig into {topic} and tell me what matters",
|
| 107 |
+
"what does the research say about {topic}?",
|
| 108 |
+
"help me decide — {topic}", "research {topic}",
|
| 109 |
+
"give me a proper analysis of {topic}", "what are the tradeoffs with {topic}?",
|
| 110 |
+
"find out what the options are for {topic}",
|
| 111 |
+
"i keep hearing about {topic} — sort out what's real",
|
| 112 |
+
"work out whether {topic} makes sense for us",
|
| 113 |
+
],
|
| 114 |
+
"learn": [
|
| 115 |
+
"teach me {skill}", "help me learn {skill}", "i want to get better at {skill}",
|
| 116 |
+
"give me a practice routine for {skill}", "start teaching me {skill}",
|
| 117 |
+
"quiz me on {skill} every day this week", "work with me on my {skill} a few times a week",
|
| 118 |
+
"i want to learn {skill}", "help me practice {skill}",
|
| 119 |
+
"get me from zero to conversational in {skill}",
|
| 120 |
+
"be my {skill} tutor", "walk me through {skill} day by day",
|
| 121 |
+
"set up a study plan so i actually learn {skill}",
|
| 122 |
+
],
|
| 123 |
+
"tend": [
|
| 124 |
+
"how are we doing on the {standing}?", "review my {standing} this month",
|
| 125 |
+
"check on the {standing}", "anything i should adjust in my {standing}?",
|
| 126 |
+
"how's the {standing} tracking?", "go over my {standing} trend with me",
|
| 127 |
+
"what needs attention in my {domain}?", "keep an eye on my {standing}",
|
| 128 |
+
"quarterly check on my {standing}", "review the {domain} and tell me what's drifting",
|
| 129 |
+
"is everything on track with the {standing}?",
|
| 130 |
+
"do a walkthrough of my {domain} and flag anything off",
|
| 131 |
+
"how am i doing against my {standing} goals?",
|
| 132 |
+
"time for the {standing} check-in",
|
| 133 |
+
],
|
| 134 |
+
"companion": [
|
| 135 |
+
"i've been feeling {emotion} about {situation}",
|
| 136 |
+
"i don't know what to do about {situation}", "help me think through how i feel about {situation}",
|
| 137 |
+
"i'm stressed about {situation}", "can we talk about {situation}? it's been weighing on me",
|
| 138 |
+
"i keep going back and forth on {situation} and it's exhausting",
|
| 139 |
+
"i need to vent about {situation}", "i'm anxious about {situation} — talk me through it",
|
| 140 |
+
"i feel stuck with {situation}", "i can't stop overthinking {situation}",
|
| 141 |
+
"i've been down about {situation} lately", "can i talk through {situation} with you?",
|
| 142 |
+
],
|
| 143 |
+
"react": [
|
| 144 |
+
"{emergency}", "{emergency} — what do i do?",
|
| 145 |
+
"{emergency}. help.", "quick — {emergency}", "sos: {emergency}",
|
| 146 |
+
"{emergency}, and i need to act fast",
|
| 147 |
+
],
|
| 148 |
+
"arrange": [
|
| 149 |
+
"book me a table for {n} at a good {cuisine} place {when}",
|
| 150 |
+
"schedule {event} with {person} {when}", "set up a {provider} appointment",
|
| 151 |
+
"plan {event} for {person}", "arrange a {provider} visit",
|
| 152 |
+
"find me a {provider} and get me in this week",
|
| 153 |
+
"coordinate {event} — {price}",
|
| 154 |
+
"get {event} on the calendar", "book the {event}",
|
| 155 |
+
"sort out {event} for {when}", "make a reservation for {event} {when}",
|
| 156 |
+
],
|
| 157 |
+
"acquire": [
|
| 158 |
+
"order more {consumable}", "we're out of {consumable} — order some",
|
| 159 |
+
"buy me {purchase}", "get me a replacement {thing}",
|
| 160 |
+
"restock the {consumable}", "order a new {thing}, the old one broke",
|
| 161 |
+
"find and order {purchase}", "buy {purchase} — {price}",
|
| 162 |
+
"pick up {consumable} this week", "reorder my usual {consumable}",
|
| 163 |
+
"order {consumable} — {price}",
|
| 164 |
+
],
|
| 165 |
+
"conversation": [
|
| 166 |
+
"how much did i spend on {category} last month?",
|
| 167 |
+
"what's on my calendar {when}?", "remind me to {micro} {when}",
|
| 168 |
+
"what did we decide about {decision}?", "what was {person}'s number again?",
|
| 169 |
+
"when did i last {did}?", "what's the weather looking like {when}?",
|
| 170 |
+
"how many {unit} did i log this week?", "did i already {did}?",
|
| 171 |
+
"what's my {category} total so far?", "where did i save the {doc}?",
|
| 172 |
+
],
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
EXTRA = {
|
| 176 |
+
"n": ["2", "3", "4", "6"],
|
| 177 |
+
"cuisine": ["Italian", "Peruvian", "Thai", "Japanese", "Indian"],
|
| 178 |
+
"provider": ["dentist", "GP", "haircut", "physio", "cleaner", "electrician", "vet"],
|
| 179 |
+
"category": ["food", "transport", "subscriptions", "health", "shopping"],
|
| 180 |
+
"micro": ["take my vitamins", "call the bank", "water the plants", "check the mail", "stretch"],
|
| 181 |
+
"decision": ["the kitchen reno", "the Lisbon trip", "the car", "the apartment"],
|
| 182 |
+
"did": ["backed up the photos", "refilled the water filter", "renewed the domain",
|
| 183 |
+
"cleaned the coffee machine"],
|
| 184 |
+
"unit": ["steps", "workouts", "pages", "kilometers"],
|
| 185 |
+
"doc": ["lease", "insurance policy", "tax folder", "car manual"],
|
| 186 |
+
"emotion": ["anxious", "sad", "frustrated", "lonely", "overwhelmed", "burnt out", "uneasy"],
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
FOLLOWUPS = {
|
| 190 |
+
"diagnose": ["why?", "dig deeper", "so what's actually causing it?", "keep going",
|
| 191 |
+
"check the logs then", "what else could it be?"],
|
| 192 |
+
"research": ["go deeper on that", "what about the costs?", "find more sources",
|
| 193 |
+
"which one wins in the end?", "keep going"],
|
| 194 |
+
"make": ["make it shorter", "do it", "add a section on pricing", "version 2 please",
|
| 195 |
+
"tweak the tone — warmer"],
|
| 196 |
+
"arrange": ["yes, book it", "make it cheaper", "for 6 instead", "do it", "book the second one"],
|
| 197 |
+
"acquire": ["order it", "the cheaper one", "yes go ahead", "do it"],
|
| 198 |
+
"execute": ["do it", "continue", "what's next?", "yes, go ahead"],
|
| 199 |
+
"tend": ["what should i change?", "keep going", "flag anything else?"],
|
| 200 |
+
"learn": ["continue", "quiz me", "next lesson", "again from the top"],
|
| 201 |
+
"companion": ["keep going", "i think you're right — go on", "that helps, continue"],
|
| 202 |
+
"react": ["ok what do i do first?", "it's getting worse", "go", "help me now"],
|
| 203 |
+
"conversation": ["continue", "and?", "why?", "what else?"],
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
# Hand-written boundary items — near-misses against adjacent shapes.
|
| 207 |
+
HARD = [
|
| 208 |
+
("diagnose", "why is my food spend double what it usually is?"),
|
| 209 |
+
("diagnose", "the categorization in my finance app has been wrong since Tuesday — why?"),
|
| 210 |
+
("diagnose", "why does my budget keep going negative in week three?"),
|
| 211 |
+
("diagnose", "my sleep score dropped off a cliff this month, what changed?"),
|
| 212 |
+
("diagnose", "why do my weekend runs feel so much harder than the weekday ones?"),
|
| 213 |
+
("diagnose", "why is the answer I get from the finance engine wrong for March?"),
|
| 214 |
+
("execute", "what do I need for renewing my passport?"),
|
| 215 |
+
("execute", "i've got the appointment — take me through the visa application"),
|
| 216 |
+
("execute", "walk me through filing the insurance claim step by step"),
|
| 217 |
+
("execute", "start the expense report, I'll send receipts as I find them"),
|
| 218 |
+
("execute", "the council form is open on my laptop, let's fill it out"),
|
| 219 |
+
("make", "make me a summary of what the literature says about creatine"),
|
| 220 |
+
("make", "write down what the options are for moving to Lisbon"),
|
| 221 |
+
("make", "draft the analysis of our spending for the month"),
|
| 222 |
+
("make", "put my findings about the heat pumps into a document"),
|
| 223 |
+
("tend", "how much did I spend on food last month?"),
|
| 224 |
+
("tend", "what's left on the renovation budget?"),
|
| 225 |
+
("tend", "what are my biggest spending categories?"),
|
| 226 |
+
("learn", "explain how compound interest works, in depth"),
|
| 227 |
+
("learn", "teach me about Portuguese history — a proper course, over the next weeks"),
|
| 228 |
+
("companion", "i hate my job"),
|
| 229 |
+
("companion", "work was rough today"),
|
| 230 |
+
("companion", "i don't know what to do about my job"),
|
| 231 |
+
("react", "urgent: we fly Saturday and the hotel says they lost the booking"),
|
| 232 |
+
("react", "renew my passport — I fly in three weeks"),
|
| 233 |
+
("arrange", "is Bali worth visiting in December?"),
|
| 234 |
+
("arrange", "where should I stay in Lisbon?"),
|
| 235 |
+
("acquire", "lease me an EV — find the best deal and sign me up"),
|
| 236 |
+
("acquire", "compare the top three EV lease deals and pick one, then get it"),
|
| 237 |
+
("conversation", "explain how TLS works"),
|
| 238 |
+
("conversation", "what's the capital of Peru?"),
|
| 239 |
+
("conversation", "remind me to renew my passport in June"),
|
| 240 |
+
("conversation", "set an alarm for 6:40 tomorrow"),
|
| 241 |
+
("conversation", "can you book me time to think about this? — no really, just reminding myself"),
|
| 242 |
+
("research", "should I switch to a MacBook?"),
|
| 243 |
+
("research", "what's the best mattress for back pain? actually compare a few for me properly"),
|
| 244 |
+
]
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def fill(tpl):
|
| 248 |
+
out = tpl
|
| 249 |
+
for k, v in SLOTS.items():
|
| 250 |
+
if "{" + k + "}" in out:
|
| 251 |
+
out = out.replace("{" + k + "}", rng.choice(v))
|
| 252 |
+
for k, v in EXTRA.items():
|
| 253 |
+
if "{" + k + "}" in out:
|
| 254 |
+
out = out.replace("{" + k + "}", rng.choice(v))
|
| 255 |
+
return out
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
def main():
|
| 259 |
+
counts = {"diagnose": 320, "execute": 320, "make": 320, "research": 300, "learn": 260,
|
| 260 |
+
"tend": 320, "companion": 260, "react": 220, "arrange": 200, "acquire": 280,
|
| 261 |
+
"conversation": 340}
|
| 262 |
+
items, seen = [], set()
|
| 263 |
+
|
| 264 |
+
def add(state, label, src="synth"):
|
| 265 |
+
key = state.lower()[:200]
|
| 266 |
+
if key in seen:
|
| 267 |
+
return False
|
| 268 |
+
seen.add(key)
|
| 269 |
+
items.append({"state": state, "label": label, "src": src,
|
| 270 |
+
"id": f"syn-{label}-{len(items)}"})
|
| 271 |
+
return True
|
| 272 |
+
|
| 273 |
+
for shape, n in counts.items():
|
| 274 |
+
made, guard = 0, 0
|
| 275 |
+
while made < n and guard < n * 80:
|
| 276 |
+
guard += 1
|
| 277 |
+
if add(fill(rng.choice(T[shape])), shape):
|
| 278 |
+
made += 1
|
| 279 |
+
# bounded continuation budget per shape: ~18%, capped at 55
|
| 280 |
+
cmade, cguard = 0, 0
|
| 281 |
+
ctarget = min(int(n * 0.18), 55)
|
| 282 |
+
while cmade < ctarget and cguard < ctarget * 60:
|
| 283 |
+
cguard += 1
|
| 284 |
+
priors = [i["state"] for i in items if i["label"] == shape and "\n" not in i["state"]]
|
| 285 |
+
if not priors:
|
| 286 |
+
break
|
| 287 |
+
prior = rng.choice(priors)
|
| 288 |
+
fu = rng.choice(FOLLOWUPS[shape])
|
| 289 |
+
if add(f"Earlier request: {prior}\nNew request: {fu}", shape, "synth-cont"):
|
| 290 |
+
cmade += 1
|
| 291 |
+
print(f"{shape:<13} {made} + {cmade} cont")
|
| 292 |
+
|
| 293 |
+
hard_added = 0
|
| 294 |
+
for shape, text in HARD:
|
| 295 |
+
if add(text, shape, "hard"):
|
| 296 |
+
hard_added += 1
|
| 297 |
+
print(f"hard items: {hard_added}")
|
| 298 |
+
|
| 299 |
+
with open("corpus/synthetic.jsonl", "w") as fh:
|
| 300 |
+
for it in items:
|
| 301 |
+
fh.write(json.dumps(it) + "\n")
|
| 302 |
+
print(f"total synthetic: {len(items)}")
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
main()
|
taxonomy_labels.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Single source of truth for the eleven loop-taxonomy labels + laya question.
|
| 2 |
+
|
| 3 |
+
Mirrors docs/components/loop-taxonomy.md's precedence table (the criteria
|
| 4 |
+
descriptions are the same one-liners, in precedence order).
|
| 5 |
+
"""
|
| 6 |
+
LABELS = {
|
| 7 |
+
"react": "Urgent or deteriorating situation where delay has real consequences (safety, health, money, a missed critical window).",
|
| 8 |
+
"acquire": "The outcome is possession of a purchasable good — buy, order, restock, replace.",
|
| 9 |
+
"arrange": "The outcome is a commitment in the world with other parties or the calendar — book, reserve, schedule, hire, plan-to-commit.",
|
| 10 |
+
"execute": "The request names a known, externally-defined procedure to be completed to submission or acceptance — renew, file, claim, apply, submit.",
|
| 11 |
+
"make": "The outcome is an artifact the assistant produces, judged against a standard (tests, a spec, taste).",
|
| 12 |
+
"diagnose": "The outcome is the cause of a specific malfunction or anomaly.",
|
| 13 |
+
"research": "The outcome is understanding assembled from investigation — multi-source, current, or synthesis-shaped.",
|
| 14 |
+
"learn": "The outcome is the user's own ability, built over sessions — practice, tutoring, review.",
|
| 15 |
+
"tend": "The request concerns the ongoing state of a standing concern — review, maintain, adjust; recurring or wake-arrived.",
|
| 16 |
+
"companion": "Inner-life support with no outcome in the world — explicitly reflective or support-seeking.",
|
| 17 |
+
"conversation": "Nothing above fits — questions, quick asks, lookups, chatter, micro-tasks.",
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
QUESTIONS = {
|
| 21 |
+
"loop": {
|
| 22 |
+
"type": "choice",
|
| 23 |
+
"instructions": "What does this request (or the request it continues) demand?",
|
| 24 |
+
"criteria": LABELS,
|
| 25 |
+
}
|
| 26 |
+
}
|
train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|