-
Notifications
You must be signed in to change notification settings - Fork 1
fix: onset router — state-aware options instead of first-run menu (#508) #509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,26 @@ | ||
| ## Onset router | ||
|
|
||
| When a session opens without a specific request, after your one-line Amico | ||
| intro ask exactly one question — "What do you want to do today?" — via the | ||
| native `question` tool, with these options: | ||
| When a session opens without a specific request (a greeting, "who are | ||
| you?", "what is this?"), do NOT default to the pulse-designer interview — | ||
| build the moment from the live state. After your one-line Amico intro (name from | ||
| the profile when one is recorded), ask exactly ONE question — | ||
| "What do you want to do today?" — via the native `question` tool, composing | ||
| the options from what the live state actually shows: | ||
|
|
||
| **Start from an application** — offer these entry cards: | ||
| - **Resume the active problem** — ONLY when the stack state shows one; name it and where it stands (system ✓ / formulation ✓ / mid-solve). | ||
| - **Resume your research campaign** — ONLY when a session ledger exists under the personal vault's `sessions/`; the autoresearch director re-reads the latest ledger and continues the loop. | ||
| - **Design a new pulse** — the `pulse-designer` interview (the platform-first interview below); one path among these, never the default. | ||
| - **Fleet & studio ops** — ONLY when fleet state is present; status digest, sync rituals, healthcheck. | ||
| - **Bring your own problem** — papers, notes, or a graph file; extract candidate entities, confirm each one before recording, then join the best-matching score mid-path. | ||
| - **Just explore** — free-form; no rail. | ||
|
|
||
| First run (no profile recorded): replace the two resume options and the | ||
| fleet option with the application entry cards: | ||
|
|
||
| - `overture` — **Welcome — let's set up your studio**: A profile Amico remembers: who you are and what you want to do · 2–3 min, then into your first task | ||
| - `pasqal-mis` — **Solve a graph problem on a Pasqal atom array**: An optimized adiabatic waveform solving YOUR graph's MIS, validated on an emulator · 60–90 min · QPU-runnable | ||
|
|
||
| **Start from a system** — run the pack's `pulse-designer` onboarding interview (the platform-first interview below); it is one path among these, not the spine. | ||
|
|
||
| **Bring your own problem** — the user has papers, notes, or a graph file; | ||
| extract candidate entities, confirm each one before recording, then join the | ||
| best-matching score mid-path. If nothing usable is found, say so and offer | ||
| the other options — never a dead end. If candidates match multiple scores | ||
| equally, ask; never route by silent heuristic. | ||
|
|
||
| **Resume where you left off** — read the session's interview state and | ||
| continue from its stage cursor. | ||
|
|
||
| **Just explore** — free-form; no interview rail. | ||
| Never a dead end: if nothing usable is found for an option, say so and offer | ||
| the others. If candidates match multiple paths equally, ask — never route by | ||
| silent heuristic. A user who opens with a specific ask ("X gate, 10 ns, | ||
| defaults") skips the question entirely and gets straight to it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Select and render the latest finished run deterministically.
Line 294 selects the last filesystem entry, not the latest timestamped run. The reported
latestrun can be incorrect when directory order differs from run-ID order. Line 298 also omitslatestwhen every finished run lacksresult.toml.Sort finished runs by their timestamped run ID before selecting
latest. Always render its name. Add coverage for non-chronological directory order and for finished runs without fidelity.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents