mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 05:48:28 +01:00
1.9 KiB
1.9 KiB
Feedback → implementation production walk
This is the release gate for Loki's core loop. A status badge alone does not pass.
Expected path
- A visitor leaves feedback through the site widget.
- The operator opens Feedback and clicks Implement.
- The row immediately opens Watch and keeps visible links to Terminal and Chat.
- Loki routes the run to the project's stored builder and AI provider.
- The builder owns a PTY, prepares first-run trust, submits the prompt, and reports post-submit output.
- Watch changes from Queued to Working only after the Runner reports delivery and output.
- Terminal streams the same PTY by run/project identity. Chat retains the same project context.
- Completion requires evidence: a green PR for code work, or an explicit no-change result for a probe.
Failure contract
Every stop must show all three:
- What failed: builder, workspace, authentication, provider response, verification, CI, or deploy.
- Why Loki believes that: the observed event or terminal state.
- What to do next: one primary action, such as open Fleet Runner, log in, switch provider, open Terminal, or retry.
Do not use “Failed — Retry” when the required action is different. Do not call a run Working from a timer or from PTY boot output.
Production test
Use a harmless, identifiable feedback row. Set a provider that passes a live probe on the selected builder. Click through the browser, then verify:
- the path strip survives the inbox refresh;
- Watch, Terminal, and Chat are reachable without navigating elsewhere;
- Watch says Working while Terminal shows post-prompt agent output;
- the run ledger and PTY agree on provider, builder, and outcome;
- the resulting PR/check/deploy evidence returns to the row.
Record the tested production commit and any failure cause in the handoff. If any check fails, fix and repeat this same walk.