NS6 slice: Add Pi panel/context integration #35
Reference in New Issue
Block a user
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?
OBJECTIVE: Provide a panel or command path that lets Pi consume session context and return useful output without bespoke plugin loading.
AUTHORITY: Parent #6
NS6: Pi and local tool bridge; PRODUCT.md; REQUIREMENTS.md (PRODUCT.md; req: session/002; req: session/004; req: governance/002-003).AGENT AUTHORITY:
PARENT: #6 via explicit issue link and parent checklist.
SCOPE: The smallest source/docs/tests needed to make this behavior real and verified.
BOUNDARIES: No Pi requirement in smaller build profiles.
ACCEPTANCE: A local fake or real Pi command receives context, output appears in a panel, and missing Pi produces a clear message.
VERIFICATION: Run the cheapest command that proves acceptance. Include regular tests for the intended payoff and adversarial tests for realistic failure, boundary, or regression cases. If no implementation test command exists yet, create/record the canonical command in AGENTS.md as part of the slice.
BLOCKERS: none
GOAL: Implement this vertical slice to the ACCEPTANCE above, keep the repo clean, cite relevant
req:anchors in code/tests where applicable, and close only after verification passes.Implemented in commit
73c65a9b6f(Add foreground Pi bridge panel).Verification:
Regular tests: foreground Pi bridge builds compact session context, appends it to an explicit Pi/fake command, captures stdout/stderr/status into shared
pi-outputpanel rows, and proves a fake Pi command receivescontext:v1. TUI test opens a buffer, runs fake Pi, and renderspi:context:*,pi:status:exit_0, andstdout:pi_ok.Adversarial tests: invalid command input is rejected without corrupting the buffer, and missing Pi binary surfaces a visible
pi:status:spawn_error_...row instead of silently failing.Boundary: explicit foreground Pi bridge only. No bundled Pi dependency, plugin host, hidden background workflow, arbitrary editor mutations, remote service, auth layer, or autonomous agent loop added.