Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/activity/__live__/README.md

Raw
Rendered preview

Activity live verification

Run an observable Pi TUI with real configured credentials; never copy credentials into fixtures. Keep session evidence, application state, and scratch files in a dedicated OS-temp directory. The live task disables cache warming and loads only codemode, Activity, and its verification helper. --no-context-files does not suppress Pi's user APPEND_SYSTEM.md; this is not a hermetic environment.

let sessions = (^mktemp -d | str trim); mise run //extensions/activity:live $sessions zai/glm-5.3

Use the terminal-harness skill for provider selection, pane ownership, attributed input, and bounded readiness checks. Do not change user settings or the desktop clipboard. Use synthetic content, not real repository operations or personal files. When a tool write returns, wait after its returned sequence before asserting an application redraw. A receipt is not application readiness.

Acceptance scenarios

  • Start a delayed process, continue independent work, finish the creating turn, then observe its actual completion from a later turn.
  • Start an interactive Nu terminal, send Unicode output, resize, and verify returned dimensions.
  • Attach through /activities <id>, enter a real command, detach with Ctrl+G, and verify the same activity remains running.
  • Watch a synthetic file with notifications enabled; continue unrelated work without waiting on the watcher.
  • Independently edit that file after the model is idle; verify an automatic follow-up observes the real change and stops the watcher.
  • Repeat with an event arriving while the model is busy; unread events must reach the next boundary, while already-read events must not produce stale follow-ups.
  • Arm one opted-in timer, finish the turn, and verify completion wakes the idle model without polling.
  • Verify active-count status remains visible while work runs, then disappears when all activities finish.
  • Reload with owned applications running; verify their known PIDs exit and old handles disappear.

Complex applications

Run nvim --clean -n -i NONE against a temporary file. Redirect XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, XDG_RUNTIME_DIR, TMPDIR, and NVIM_LOG_FILE into the dedicated temporary workspace. Test Unicode insertion, normal-mode replacement, undo/redo, save, vertical splits, search, Visual Line selection, resize, Ctrl+W window commands, and F1 help. Check saved bytes independently of the model's report. Inspect selection/background styles and cursor behavior through the human inspector, not just plain agent snapshots. Vim may preserve an old split width after shrinking; Ctrl+W then = equalizes windows.

Use Nu's real explore on 100 synthetic records. Verify PageDown changes the viewport, search reaches a later row, and human Escape reaches the application without detaching.

Run real fzf --multi --no-sort on alpha, beta, and gamma piped from Nu. Clear FZF_DEFAULT_OPTS and FZF_DEFAULT_OPTS_FILE for the child. Filter bet, select with Tab, clear with Ctrl+U, filter gam, select, then accept. Require final output containing beta and gamma with successful exit.

Evidence and limits

Linux verification used real Pi 1.3.0 with zai/glm-5.3 in a visible WezTerm pane. Nu, nvim editing/splits/selection/F1 help, explore paging/search, fzf filtering/multiselect, idle timer wakeup, external file-change wakeup, human input/detachment, graceful application exit, and reload cleanup were exercised. Saved nvim content was checked independently; selection colors were checked in the host terminal's captured SGR output. Host-terminal captures are not pixel screenshots. OS-temp session transcripts and captures are ephemeral, not shipped artifacts. Relocated-package loading checks the declared minimum Pi version separately. These results do not establish macOS/Windows runtime behavior, arbitrary application compatibility, mouse support, or full grapheme fidelity.

# Activity live verification

Run an observable Pi TUI with real configured credentials; never copy credentials into fixtures.
Keep session evidence, application state, and scratch files in a dedicated OS-temp directory.
The live task disables cache warming and loads only codemode, Activity, and its verification helper.
`--no-context-files` does not suppress Pi's user `APPEND_SYSTEM.md`; this is not a hermetic environment.

```nu
let sessions = (^mktemp -d | str trim); mise run //extensions/activity:live $sessions zai/glm-5.3
```

Use the terminal-harness skill for provider selection, pane ownership, attributed input, and bounded readiness checks.
Do not change user settings or the desktop clipboard.
Use synthetic content, not real repository operations or personal files.
When a tool write returns, wait after its returned sequence before asserting an application redraw.
A receipt is not application readiness.

## Acceptance scenarios

- Start a delayed process, continue independent work, finish the creating turn, then observe its actual completion from a later turn.
- Start an interactive Nu terminal, send Unicode output, resize, and verify returned dimensions.
- Attach through `/activities <id>`, enter a real command, detach with Ctrl+G, and verify the same activity remains running.
- Watch a synthetic file with notifications enabled; continue unrelated work without waiting on the watcher.
- Independently edit that file after the model is idle; verify an automatic follow-up observes the real change and stops the watcher.
- Repeat with an event arriving while the model is busy; unread events must reach the next boundary, while already-read events must not produce stale follow-ups.
- Arm one opted-in timer, finish the turn, and verify completion wakes the idle model without polling.
- Verify active-count status remains visible while work runs, then disappears when all activities finish.
- Reload with owned applications running; verify their known PIDs exit and old handles disappear.

## Complex applications

Run `nvim --clean -n -i NONE` against a temporary file.
Redirect `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_STATE_HOME`, `XDG_CACHE_HOME`, `XDG_RUNTIME_DIR`, `TMPDIR`, and `NVIM_LOG_FILE` into the dedicated temporary workspace.
Test Unicode insertion, normal-mode replacement, undo/redo, save, vertical splits, search, Visual Line selection, resize, Ctrl+W window commands, and F1 help.
Check saved bytes independently of the model's report.
Inspect selection/background styles and cursor behavior through the human inspector, not just plain agent snapshots.
Vim may preserve an old split width after shrinking; Ctrl+W then `=` equalizes windows.

Use Nu's real `explore` on 100 synthetic records.
Verify PageDown changes the viewport, search reaches a later row, and human Escape reaches the application without detaching.

Run real `fzf --multi --no-sort` on `alpha`, `beta`, and `gamma` piped from Nu.
Clear `FZF_DEFAULT_OPTS` and `FZF_DEFAULT_OPTS_FILE` for the child.
Filter `bet`, select with Tab, clear with Ctrl+U, filter `gam`, select, then accept.
Require final output containing `beta` and `gamma` with successful exit.

## Evidence and limits

Linux verification used real Pi 1.3.0 with `zai/glm-5.3` in a visible WezTerm pane.
Nu, nvim editing/splits/selection/F1 help, explore paging/search, fzf filtering/multiselect, idle timer wakeup, external file-change wakeup, human input/detachment, graceful application exit, and reload cleanup were exercised.
Saved nvim content was checked independently; selection colors were checked in the host terminal's captured SGR output.
Host-terminal captures are not pixel screenshots.
OS-temp session transcripts and captures are ephemeral, not shipped artifacts.
Relocated-package loading checks the declared minimum Pi version separately.
These results do not establish macOS/Windows runtime behavior, arbitrary application compatibility, mouse support, or full grapheme fidelity.