[P0][agentProlog-worker] Rebuild Prolog-RLM plugin UX + canonical context meter + bottom-row mode controls #18
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
security
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/agentProlog#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Operator directive
This is the first issue for the AgentProlog worker when a Machine Spirit worker slot is rotated into
lost-rob0t/agentProlog.The current Prolog-RLM/AgentProlog integration UI is not acceptable. It is visually poor, exposes the wrong information hierarchy, and does not make canonical Prolog-RLM context/mode state obvious or trustworthy.
Reuse existing architecture and mode work, especially #9, #7/#11, and the canonical upstream
prolog_agent_ui_v1/ conversation/context contracts. Do not create frontend-owned mode or context truth.Goal
Make the DeepSeek Harness AgentProlog/Prolog-RLM integration feel like a first-class native coding-agent control surface:
llm.starintel.actor.A — Fix context ownership first
The UI must not fake a context meter over DeepSeek Harness-local history if Prolog-RLM is supposed to be the context authority.
Trace the complete live path:
Prove which layer currently owns:
Required correction:
prolog-rlmissue rather than implementing a fake AgentProlog-only context engine.Context inspection contract
Expose a bounded typed state sufficient for UI, ideally via existing public protocol/facade semantics or the smallest upstream extension:
Do not dump entire hidden prompts/context into the UI just to calculate a meter.
B — Replace the ugly plugin presentation
The normal AgentProlog experience should not be a large intrusive Prolog-RLM panel.
Move normal RLM controls/status to a compact bottom row/status bar integrated with the official Harness UI.
Target bottom-row items:
1. RLM enable/disable control
Compact state such as:
Requirements:
2. Mode control
Compact control showing requested/effective mode, e.g.:
Clicking should open/cycle/select among:
directsymbolicsymbolic-recursiveautoUse the canonical mode state from #9/upstream. Do not add a UI-local mode variable.
3. Context meter
Compact bottom-row meter, e.g.:
or another readable equivalent.
Requirements:
4. Optional compact runtime indicator
If useful and already available canonically, show one compact status item for busy/idle/error/connecting. Do not turn the bottom row into a telemetry dashboard.
C — Slash commands
Implement/finish the canonical mode commands in the Harness input path:
Requirements:
Also provide discoverable slash completion/help if the official Harness command surface supports it cleanly.
D — Visual/interaction direction
Keep the official Harness UI as the main shell. AgentProlog should feel integrated rather than bolted on.
Requirements:
E — Playwright + real E2E gate
Every user-visible behavior in this issue requires Playwright coverage and end-to-end coverage. Unit/component tests are necessary but not sufficient.
Playwright must exercise the actual built official Harness + out-of-tree AgentProlog plugin, not a fake standalone page.
Minimum Playwright scenarios:
End-to-end integration must include the real chain:
No test may declare success merely because the DOM changed while the sidecar/runtime failed.
F — Live LLM gate via llm.starintel.actor
In addition to hermetic/mock E2E, run an opt-in but mandatory-when-requested live integration suite against the operator's
llm.starintel.actorendpoint.Use the existing provider/config/auth path; do not commit credentials, tokens, internal auth headers, or secrets.
Live test must prove at minimum:
directturn reachesllm.starintel.actorand returns a real model result;symbolicturn reaches the same live provider through canonical Prolog-RLM routing;symbolic-recursiveturn executes when supported/configured and reports real canonical state;/autoselects an effective mode and completes a live turn;llm.starintel.actor), model/provider route, session/run IDs, mode, context metrics, status and timestamps without logging credentials or raw secrets.Live-test configuration law
llm.starintel.actorvalidation receipt from the candidate head.G — Testing standard for AgentProlog going forward
This issue establishes a product rule for subsequent AgentProlog UI/integration work:
No UI-only fake test is sufficient for behavior whose truth lives in Prolog-RLM.
Acceptance
direct,symbolic,symbolic-recursive, andautothrough the canonical #9/upstream path./direct,/symbolic,/symbolic-recursive,/autowork from the normal input surface.llm.starintel.actorpasses on the candidate head.Worker law
When the Machine Spirit completion gate rotates a worker into AgentProlog, claim this issue first. Reconcile #9 and any active PRs before coding so mode work is reused rather than duplicated.