@andorra-labs/code 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -208
- package/THIRD_PARTY_NOTICES.md +15 -0
- package/dist/src/agent-execution.js +56 -0
- package/dist/src/app-server/protocol.d.ts +109 -1
- package/dist/src/app-server/protocol.js +8 -1
- package/dist/src/app-server.d.ts +59 -1
- package/dist/src/app-server.js +418 -63
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/index.js +1 -1
- package/dist/src/auth/store.d.ts +17 -1
- package/dist/src/auth/store.js +25 -2
- package/dist/src/automation-service.js +1 -1
- package/dist/src/browser-session.d.ts +8 -0
- package/dist/src/browser-session.js +27 -1
- package/dist/src/browser-ui/app.js +255 -33
- package/dist/src/browser-ui/index.html +9 -9
- package/dist/src/browser-ui/style.css +110 -65
- package/dist/src/browser-ui/tokens.css +27 -26
- package/dist/src/cli.js +10 -5
- package/dist/src/coding-tools.d.ts +24 -0
- package/dist/src/coding-tools.js +71 -8
- package/dist/src/command-screens.js +1 -1
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +2 -2
- package/dist/src/completion-gates.d.ts +42 -7
- package/dist/src/completion-gates.js +55 -9
- package/dist/src/completion.d.ts +9 -1
- package/dist/src/completion.js +20 -2
- package/dist/src/dashboard-view.js +2 -2
- package/dist/src/deadline.js +4 -0
- package/dist/src/decision/checks.js +1 -1
- package/dist/src/file-diff.d.ts +105 -0
- package/dist/src/file-diff.js +244 -0
- package/dist/src/graph-manager-chat.js +4 -4
- package/dist/src/graph-runner.js +39 -2
- package/dist/src/graph-sync.d.ts +8 -0
- package/dist/src/graph-sync.js +54 -3
- package/dist/src/graph-tool.js +1 -1
- package/dist/src/graph-ui/app.js +303 -129
- package/dist/src/graph-ui/controls.css +43 -22
- package/dist/src/graph-ui/controls.js +31 -1
- package/dist/src/graph-ui/embed.js +56 -7
- package/dist/src/graph-ui/icons.js +5 -0
- package/dist/src/graph-ui/index.html +3 -3
- package/dist/src/graph-ui/manager-state.js +2 -2
- package/dist/src/graph-ui/manager.css +19 -18
- package/dist/src/graph-ui/manager.js +5 -5
- package/dist/src/graph-ui/skill-picker.js +5 -5
- package/dist/src/graph-ui/studio-canvas.js +16 -16
- package/dist/src/graph-ui/studio.css +18 -15
- package/dist/src/graph-ui/studio.js +99 -42
- package/dist/src/graph-ui/style.css +125 -80
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +33 -29
- package/dist/src/graphs.d.ts +10 -3
- package/dist/src/graphs.js +15 -4
- package/dist/src/mcp.d.ts +75 -0
- package/dist/src/mcp.js +240 -8
- package/dist/src/membership-errors.d.ts +7 -1
- package/dist/src/membership-errors.js +9 -3
- package/dist/src/provider-keys.d.ts +5 -1
- package/dist/src/provider-keys.js +7 -3
- package/dist/src/provider-settings.d.ts +4 -1
- package/dist/src/provider-settings.js +46 -5
- package/dist/src/pull-requests.d.ts +42 -6
- package/dist/src/pull-requests.js +11 -3
- package/dist/src/qa/guidance.js +6 -19
- package/dist/src/qa/index.d.ts +0 -2
- package/dist/src/qa/index.js +0 -2
- package/dist/src/qa/profile/QaProfile.d.ts +5 -1
- package/dist/src/qa/profile/QaProfile.js +6 -2
- package/dist/src/qa/tools.d.ts +19 -1
- package/dist/src/qa/tools.js +20 -145
- package/dist/src/react-runtime.js +134 -16
- package/dist/src/read-document-doc.d.ts +20 -0
- package/dist/src/read-document-doc.js +524 -0
- package/dist/src/read-document-docx.d.ts +21 -0
- package/dist/src/read-document-docx.js +584 -0
- package/dist/src/read-document-text.d.ts +29 -0
- package/dist/src/read-document-text.js +67 -0
- package/dist/src/read-document-tool.d.ts +48 -0
- package/dist/src/read-document-tool.js +162 -0
- package/dist/src/read-document.d.ts +78 -0
- package/dist/src/read-document.js +353 -0
- package/dist/src/read-image.d.ts +29 -2
- package/dist/src/read-image.js +42 -17
- package/dist/src/remote/engine-pool.js +18 -6
- package/dist/src/runtime.d.ts +19 -0
- package/dist/src/runtime.js +10 -1
- package/dist/src/screen-selection.d.ts +38 -0
- package/dist/src/screen-selection.js +103 -0
- package/dist/src/session-changes.d.ts +122 -0
- package/dist/src/session-changes.js +804 -0
- package/dist/src/side-panel.d.ts +6 -1
- package/dist/src/side-panel.js +12 -10
- package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
- package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +37 -3
- package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
- package/dist/src/skills/bundled/provenance.json +4 -4
- package/dist/src/skills/runtime-skills.js +3 -3
- package/dist/src/stall-recovery.d.ts +15 -0
- package/dist/src/stall-recovery.js +17 -0
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +1 -2
- package/dist/src/terminal-ui.d.ts +64 -20
- package/dist/src/terminal-ui.js +312 -82
- package/dist/src/time-limit.d.ts +53 -0
- package/dist/src/time-limit.js +79 -0
- package/dist/src/tool-diff-stats.d.ts +9 -0
- package/dist/src/tool-diff-stats.js +20 -0
- package/dist/src/tool-names.d.ts +1 -1
- package/dist/src/tool-result-filter.js +1 -1
- package/dist/src/tools.js +118 -9
- package/dist/src/transcript.d.ts +11 -0
- package/dist/src/transcript.js +15 -3
- package/dist/src/types.d.ts +12 -0
- package/dist/src/usage-analytics.d.ts +3 -1
- package/dist/src/usage-analytics.js +16 -2
- package/package.json +6 -26
- package/dist/src/qa/api/http-runner.d.ts +0 -3
- package/dist/src/qa/api/http-runner.js +0 -47
- package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
- package/dist/src/qa/git/ChangeDetector.js +0 -177
- package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
- package/dist/src/qa/git/DiffReviewer.js +0 -115
- package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
- package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
- package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
- package/dist/src/qa/orchestrator/MergeGate.js +0 -40
- package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
- package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
- package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
- package/dist/src/qa/runners/CommandRunner.js +0 -96
- package/dist/src/qa/runners/TestRunner.d.ts +0 -21
- package/dist/src/qa/runners/TestRunner.js +0 -66
- package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
- package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
- package/dist/src/qa/runtime-detect.d.ts +0 -10
- package/dist/src/qa/runtime-detect.js +0 -72
- package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
- package/dist/src/qa/security/DependencyScanner.js +0 -167
- package/dist/src/qa/security/SecretScanner.d.ts +0 -3
- package/dist/src/qa/security/SecretScanner.js +0 -55
- package/docs/README.md +0 -36
- package/docs/agents/README.md +0 -62
- package/docs/agents/install-for-agents.md +0 -56
- package/docs/agents/mcp-server.md +0 -212
- package/docs/agents/subagent-mode.md +0 -149
- package/docs/concepts/README.md +0 -47
- package/docs/concepts/jev-actionable-routing.md +0 -113
- package/docs/concepts/jev-decision-thresholds.md +0 -412
- package/docs/concepts/jev-efficiency.md +0 -217
- package/docs/concepts/jev-eval-2026-11-01.md +0 -78
- package/docs/concepts/limits.md +0 -52
- package/docs/concepts/memory.md +0 -10
- package/docs/concepts/security.md +0 -50
- package/docs/concepts/workspace-instructions.md +0 -29
- package/docs/getting-started/README.md +0 -82
- package/docs/getting-started/accounts.md +0 -78
- package/docs/getting-started/configure-providers.md +0 -132
- package/docs/guides/README.md +0 -13
- package/docs/guides/browser.md +0 -39
- package/docs/guides/desktop-app.md +0 -414
- package/docs/guides/extensions.md +0 -102
- package/docs/guides/graph-builder.md +0 -116
- package/docs/guides/headless.md +0 -46
- package/docs/guides/tui.md +0 -75
- package/docs/guides/update.md +0 -70
- package/docs/guides/web-search.md +0 -51
- package/docs/guides/windows-code-signing.md +0 -319
- package/docs/llms.txt +0 -45
- package/docs/reference/README.md +0 -7
- package/docs/reference/cli.md +0 -76
- package/docs/reference/config.md +0 -91
- package/docs/reference/slash-commands.md +0 -59
- package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
- package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
- package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
- package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
- package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
- package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
- package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
- package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
- package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
- package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
- package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
- package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
- package/scripts/jev-efficiency-eval.mjs +0 -187
- package/scripts/jev-efficiency-live.mjs +0 -193
- package/scripts/zcode-engine-replay.mjs +0 -223
- package/tests/agent-centric-mcp-test-plan.md +0 -208
- package/tests/analytics-settings-test-plan.md +0 -165
- package/tests/browser-cli-smoke.mjs +0 -276
- package/tests/browser-test-plan.md +0 -280
- package/tests/chat-side-panel-test-plan.md +0 -309
- package/tests/decision-engine-test-plan.md +0 -163
- package/tests/default-active-jev-test-plan.md +0 -85
- package/tests/harness-extensions-test-plan.md +0 -113
- package/tests/jev-all-decisions-test-plan.md +0 -156
- package/tests/jev-efficiency/criteria.json +0 -158
- package/tests/jev-efficiency/workloads.mjs +0 -242
- package/tests/jev-efficiency-test-plan.md +0 -198
- package/tests/permissions-sandbox-probe.mjs +0 -74
- package/tests/permissions-test-plan.md +0 -191
- package/tests/product-telemetry-test-plan.md +0 -536
- package/tests/thinking-stream-preview-test-plan.md +0 -136
- package/tests/zcode-react-engine-test-plan.md +0 -396
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# Harness extension managers QA plan
|
|
2
|
-
|
|
3
|
-
## Scope and prerequisites
|
|
4
|
-
|
|
5
|
-
Verify `/skills`, `/plugins`, `/mcp`, `/logout`, persistence and next-task runtime behavior on Node 22+, including Windows PowerShell. Network access is required for GitHub installation. Use a dedicated worktree of this feature branch; keep the installed CLI checkout on `main`. Run `npm ci`, `npm run check`, `npm run build`, then `node dist/src/cli.js --cwd <fixture-workspace>` in an interactive terminal. Configure a test provider in `/providers` or place its provider config in the isolated home. Never use production credentials for fixture MCP servers. Live Codex sign-out requires the official Codex CLI and a disposable signed-in account.
|
|
6
|
-
|
|
7
|
-
PowerShell isolation:
|
|
8
|
-
|
|
9
|
-
```powershell
|
|
10
|
-
$env:ANDORRACODE_HOME = Join-Path $env:TEMP ('andorra-extension-qa-' + [guid]::NewGuid())
|
|
11
|
-
New-Item -ItemType Directory -Path $env:ANDORRACODE_HOME
|
|
12
|
-
node dist/src/cli.js --help
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Use placeholders for auth values. Create a local `example/SKILL.md` matching `docs/extensions.md` and `example/references/style.md` with a distinctive marker. Create a plugin with `andorra-plugin.json`, `skills/writing/SKILL.md`, and a known MCP fixture server. Keep originals outside the isolated home. Reset by exiting the CLI, verifying the resolved QA home is the isolated directory, deleting only that directory, and removing the session's `ANDORRACODE_HOME` environment override.
|
|
16
|
-
|
|
17
|
-
## How to use the feature
|
|
18
|
-
|
|
19
|
-
1. Start the built CLI, type `/`, select `/skills`, and choose List skills. Install the fixture directory, confirm, then inspect its row. Select it and choose Disable, return, then Enable.
|
|
20
|
-
2. Submit a task using the fixture skill. Complete ordinary Orchestrator plan/research/clarification. Inspect tool details with Ctrl+O: `read_skill_resource` reads `SKILL.md` and its reference marker. Changes apply only on the next task.
|
|
21
|
-
3. Open `/mcp`, choose Add, name it `fixture`, choose stdio, command `node`, and arguments `["<absolute-fixture-server-path>"]`. Enter `{}` environment. Submit a task, approve connection and then the external tool call. Observe the namespaced tool output and connection notice.
|
|
22
|
-
4. Select the server to disable, edit or delete it. For HTTP choose the exact fixture `/mcp` endpoint and header object. Enter `${QA_TOKEN}` placeholders rather than tokens.
|
|
23
|
-
5. Install the plugin directory with `/plugins`. Inspect its included skill/server availability in the next task, then disable the plugin and repeat. Uninstall to clean up copied content.
|
|
24
|
-
6. With a disposable Codex provider configured, run `/logout codex`. Confirm sign-out in a subsequent official Codex account read, and use `/providers` to restore the test sign-in. Verify config fields remain.
|
|
25
|
-
|
|
26
|
-
## Test cases and expected results
|
|
27
|
-
|
|
28
|
-
| ID | Preconditions / steps | Observable expected result |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| EXT-01 | Type `/`, browse all four commands, then `/help` | All commands appear and execute; Escape returns from management screens without mutations. |
|
|
31
|
-
| EXT-02 | Install local example skill, list, toggle, restart CLI | Copied `skills/example/SKILL.md`; row and persisted disabled id reflect state; original files intact. |
|
|
32
|
-
| EXT-03 | Enabled skill task reads SKILL.md and reference, then disable and start next task | Catalog and bounded reader expose enabled skill; disabled skill is absent and cannot be read. |
|
|
33
|
-
| EXT-04 | Root Orchestrator tries reader before update_todos; then publishes plan and reads | First call rejected; second read allowed; skill read alone cannot satisfy repository research or user confirmation. |
|
|
34
|
-
| EXT-05 | Install same id twice; malformed source; symlink; cancelled Git install | Existing installation unchanged; actionable failure; no visible partial install; cancellation returns to manager. |
|
|
35
|
-
| EXT-06 | Install GitHub root and `/tree/main/skills/example` sources | Selected directory only installed; `.git` excluded; no package installer executed. |
|
|
36
|
-
| EXT-07 | Read `../outside`, absolute outside, symlink escape or >512 KiB resource | Rejected with bounded failure; outside bytes never returned. |
|
|
37
|
-
| EXT-07a | Install a skill whose `SKILL.md` is 256,011 bytes, list skills, then read it with `read_skill_resource` | Listed as available with its `/name` command; the read returns the whole document. |
|
|
38
|
-
| EXT-07b | Place a skill folder whose `SKILL.md` is 524,289 bytes in `<home>/skills`, list skills, then submit `/name` | Row is `unavailable` with description `Unavailable: SKILL.md is 513 KiB; the limit is 512 KiB. Move reference material into files beside it.`; the submit error repeats that reason. |
|
|
39
|
-
| EXT-07c | Place a skill folder with no `SKILL.md` in `<home>/skills` and list skills | Row is `unavailable` with description `Unavailable: this folder has no SKILL.md.` |
|
|
40
|
-
| EXT-08 | Add/edit/toggle/delete stdio and HTTP servers, restart | Config retains other fields; ids unique; JSON input validated; enabled state retained. |
|
|
41
|
-
| EXT-09 | Approve actual stdio or HTTP fixture connection and tool; deny a subsequent call | Approved call produces fixture output; denied call does not reach fixture; tools names do not collide. |
|
|
42
|
-
| EXT-10 | Server missing, malformed protocol, missing auth env or unreachable URL | Bounded unavailable notice, remaining task/servers can continue; no credential echoed. |
|
|
43
|
-
| EXT-11 | Cancel active task/tool, close task; inspect fixture PID and HTTP sessions | Clients close and stdio process exits; tool responds cancelled; no persistent session leak. |
|
|
44
|
-
| EXT-12 | Default engineer, read-only agent, restricted child and shell-enabled child with inherited tools | Engineer may call MCP; intake/read-only agents omit external tools. Every child omits task-owned MCP tools, including inherited shell-enabled roles, to preserve workspace isolation. |
|
|
45
|
-
| EXT-13 | Plugin skill plus `${PLUGIN_ROOT}` MCP script; direct server shares same id | Both namespaced servers coexist; plugin assets resolve; disabling plugin removes only its contributions. |
|
|
46
|
-
| EXT-14 | Corrupt installed bundle then list/start task/uninstall | Bundle shows unavailable, other tasks remain usable, uninstall repairs state. |
|
|
47
|
-
| EXT-15 | Deny config write (controlled fake persistence test), try install/remove/toggle | No success reported; installed bundle rolled back; removed directory restored; old selected state retained. |
|
|
48
|
-
| EXT-16 | `/logout codex` with a disposable Codex provider; mock transport failure; `/logout codex` with no Codex provider configured | Success exits, config retained; failure stays and reports; with no Codex provider it says so, API-key credentials are unchanged and the session stays. |
|
|
49
|
-
| EXT-17 | Existing model/provider/graph/usage commands and CLI main checkout | Prior menus work; installation checkout remains main; no unrelated changes discarded. |
|
|
50
|
-
| EXT-18 | Pause with Ctrl+C during MCP connection approval/discovery; issue `/status`, then submit new direction | Pending startup aborts and closes clients; slash commands do not resume; new direction retries startup with a fresh signal. Stop before startup completes creates no graph run. |
|
|
51
|
-
| EXT-19 | Install skills/plugins with long Unicode names/descriptions and more than 16 skills; start task | Names/descriptions are bounded to 128/300 characters and 256/512 UTF-8 bytes; at most 16 skills and 12,000 catalog characters advertised. Omitted skills produce a notice and cannot be read through this task's reader. Disable unused skills to make room next task. |
|
|
52
|
-
| EXT-20 | Swap a resource file or parent directory to an outside link during read | No outside bytes returned; no-follow open where supported plus opened-file identity and path rechecks reject changed resources. |
|
|
53
|
-
| EXT-21 | MCP fixture returns large schemas/descriptions across pages and multiple servers | Advertised metadata stays within 16,000 UTF-8 bytes and 500 tools per task. Oversized server is rejected atomically with a notice and closed; earlier accepted servers and later small servers remain usable. |
|
|
54
|
-
| EXT-22 | During an active task submit `/auth logout` and `/auth status`, then a filesystem path such as `/authentic/file needs a test` | Auth commands produce the Ctrl+C command hint without reaching the model; the path remains ordinary steering. |
|
|
55
|
-
| EXT-23 | In graph editor configure a restricted filesystem-readable child role; select `read_skill_resource`, save and reopen. Repeat with an existing reader selection, no parent/child filesystem access, and a parent allowlist excluding the reader | Reader checkbox is available and retained for permitted roles; no unavailable warning for a valid saved reader. Missing filesystem capability or parent permission excludes the reader; graph validation agrees. |
|
|
56
|
-
| EXT-24 | Enable ten empty-catalog MCP fixtures and insert a disabled entry first; start a task then close it. Repeat cancellation during connection approval | Only the first eight enabled servers are approved/started; a skip notice identifies the limit. Disabled entries do not consume attempts. Every started process exits on close; granting approval after cancellation starts no process. Failed/unreachable servers also count toward the eight-attempt limit. |
|
|
57
|
-
| EXT-25 | After successful MCP discovery, start a waiting tool call and press Ctrl+C; submit new direction and invoke another tool, then cancel the task | Waiting call cancels; same stdio PID serves the resumed call without reconnecting. Task cancellation closes the process even without explicit cleanup. |
|
|
58
|
-
| EXT-26 | Install GitHub repository root, `#tag`, and `/tree/ref/subdirectory`; include an executable plugin script | Root/ref/subdirectory content and ids match the selected source, no `.git` appears, executable permissions retained on POSIX. Only selected files are staged. |
|
|
59
|
-
| EXT-27 | Supply archives over 64 MiB compressed, over 80 MiB expanded, over 64 MiB selected file content or over 10,000 selected paths (including implicit directories) | Download stream cancelled at transfer limit; compressed bombs rejected before extraction; entry/content limits validated before staging. Failure leaves no install or hidden staging directory. Repository-wide archive caps also apply to subtree installs; a local checkout remains available. |
|
|
60
|
-
| EXT-28 | Supply a malformed tar checksum, traversal path, selected symlink, duplicate file, or cancel during download | Actionable rejection/cancellation, closed response stream, no published bundle or staging residue; outside files unchanged. |
|
|
61
|
-
|
|
62
|
-
| EXT-29 | Populate each extension directory with 140 visible bundles, then list and start a task | At most 128 entries per directory validated in name order, at most four concurrent validations; manager and runtime report 12 omitted entries per directory. Runtime skill catalog remains limited to 16. Remove unused folders to expose omitted entries next scan. Cancellation stops queued validations. |
|
|
63
|
-
| EXT-30 | Set fake unrelated and source variables in the CLI; map only the source using a distinct configured stdio env key | Real stdio fixture sees neither unrelated nor source variable, but sees the mapped value. Server still starts with minimal platform environment; notices contain no fake values. Do not use real credentials for this case. |
|
|
64
|
-
| EXT-31 | Select the configured home or an ancestor as a local install source; repeat through a directory alias | Immediate ancestor-source error before recursive content reads; no publication or staging residue. An unrelated local source still installs. |
|
|
65
|
-
| EXT-32 | Configure a shell-enabled child with `workspace: "worktree"` and `toolInheritance: "inherit"`, then inspect its tool catalog | Parent retains MCP tool; child catalog omits it. Child cannot call the parent-scoped server or mutate the parent via that MCP client. Built-in workspace tools retain their normal capability rules. |
|
|
66
|
-
| EXT-33 | In an isolated home containing literal `$&`, `$\`` and `$'` path components, install a plugin whose stdio command, repeated args and environment use `${PLUGIN_ROOT}` | Each occurrence expands to the exact installed path, including all literal dollar metasequences. No `${PLUGIN_ROOT}` fragment remains from replacement expansion. |
|
|
67
|
-
| EXT-34 | Use a plugin manifest with 5,000 copies/aliases of one skill path, then with 17 unique paths. Cancel listing, snapshot revalidation and installation during the first nested document read | Repeated resolved paths validate once per pass and advertise one skill. More than 16 unique directories fails before reading any skill document; installation publishes nothing and manager shows unavailable. Cancellation rejects immediately after the in-flight filesystem operation, closes its handle, stops subsequent skill reads and removes installation staging. |
|
|
68
|
-
|
|
69
|
-
## Edge cases and potential bugs
|
|
70
|
-
|
|
71
|
-
| Case | Steps | Expected result |
|
|
72
|
-
| --- | --- | --- |
|
|
73
|
-
| EXT-36 | Install a plugin with eight unique MCP declarations (one disabled); repeat with nine and 3,000 declarations, invalid server entries and a missing skill path | Eight declarations are accepted and seven enabled servers enter the snapshot. Excessive declarations reject before individual server validation or nested skill reads; manager shows unavailable, runtime contributes no servers, failed installation leaves no staging residue. Disabled server declarations count toward the cap. |
|
|
74
|
-
| EXT-37 | Create 128 disabled skills and 128 disabled malformed plugins before an enabled skill/plugin in name order; start task, then open each manager | Runtime opens only enabled bundle documents, advertises the enabled skill/server, and emits no disabled-bundle unavailable or omission notice. Disabled bundles consume no runtime discovery slots. Managers still open and validate the first 128 visible bundles, showing disabled skills and unavailable disabled plugins with omission notice for the final enabled entry. |
|
|
75
|
-
| EXT-38 | Configure a local HTTP fixture endpoint with `?api_key=fake-query-secret&tenant=fixture`; approve connection, invoke tool, close task | Approval shows endpoint without query; notices contain no fake query/header credentials. Initialization, discovery, invocation and DELETE cleanup retain the full query on the wire. Use only fake credentials. |
|
|
76
|
-
| EXT-39 | Set isolated home to a literal `home-${ANDORRA_MCP_ROOT_COMPONENT}` path. Install a plugin with stdio env value `${PLUGIN_ROOT}|${QA_TOKEN}`. Run with the component variable unset, then set to a different value; use a fake QA token | Both connections succeed. The child receives the exact installed path including the literal component, followed by the expanded fake QA token. Inserted paths are never expanded again. Command/argument root replacement and explicit environment isolation remain intact. |
|
|
77
|
-
| EXT-40 | Install a GitHub repository or subtree named `bad.skill`, then a local directory with an invalid basename (including over 100 characters) | ID validation rejects before any archive request or recursive scan/copy. No bundle/config mutation or staging residue remains. Existing valid local/GitHub installs still succeed. Automated fixtures count download, traversal and copy calls for invalid names. |
|
|
78
|
-
| EXT-41 | On POSIX create malformed entries `:install`, `:list`, and `:bundle:normal` in each extension directory. Open the manager and select each row | Each row opens its own bundle actions, including Uninstall; ordinary Install/List actions remain distinct. Uninstall removes the selected entry transactionally. Windows regression injects these directory names to verify menu routing; actual POSIX removal remains proposed QA work. |
|
|
79
|
-
| EXT-42 | With YOLO off and an enabled MCP server, start a task. At connection approval enter `/yolo on` without choosing Approve | The pending chooser settles immediately, connection proceeds and the task reaches inference. Later `/yolo on` does not resolve the old chooser. Denial, cancellation and pause/retry remain covered by existing tests. The automated CLI fixture mocks SDK connection; real terminal keyboard interaction remains proposed QA work. |
|
|
80
|
-
|
|
81
|
-
Duplicate ids fail instead of replacing bundles. Git tree refs containing slashes require a local checkout; refs beginning with `-` fail. Installer bounds prevent large bundles; link/special-file rejection is intentional. Cancellation during staging rolls back before persistence; uninstall cleanup failure reports a hidden staging directory remaining. Configuration rename is atomic but does not coordinate two concurrent CLI writers; last successful writer wins, so avoid concurrent manager edits. Headers/env placeholders need the variable present in the CLI's environment. HTTP auth redirects are rejected. MCP tools are sequential and receive existing permission/cancellation gates; external server behavior is outside the filesystem sandbox. Read-only server annotations cannot grant additional capabilities. Custom graph explicit tool lists exclude dynamic MCP tools, and restricted research subagents do not inherit them by default.
|
|
82
|
-
|
|
83
|
-
## Gaps and limitations
|
|
84
|
-
|
|
85
|
-
Live authenticated third-party MCP services, real GitHub download/cancellation, physical terminal walkthrough and real account sign-out are proposed manual checks unless explicitly listed below. Automated fixtures validate the protocol/runtime without signing out the user's account. Legacy SSE transports, MCP resources/prompts/OAuth login UI, marketplace discovery, arbitrary plugin entry points and Codex plugin manifest compatibility are unsupported. Source changes affect subsequent tasks. No known reproduced defects remain after automated checks; future manual results must be added here.
|
|
86
|
-
|
|
87
|
-
## Validation evidence
|
|
88
|
-
|
|
89
|
-
2026-10-02 fifth follow-up review: `npm run check` and `npm run build` passed on Windows PowerShell / Node v24.16.0. `node scripts/run-tests.mjs dist/test/extensions.test.js dist/test/extensions-publication.test.js dist/test/extensions-github.test.js dist/test/extensions-runtime.test.js dist/test/mcp.test.js` passed 44/44 with no exclusions. New regressions cover eight accepted versus nine/3,000 rejected MCP declarations, disabled server counting, rejection before invalid entry/missing skill validation, 256 disabled bundles skipped without document opens during runtime but fully validated in managers, and query redaction with full URL preservation across real HTTP initialization/discovery/invocation/cleanup. Full suite and manual terminal/account/third-party MCP checks were not rerun; prior baseline failures remain outside this remediation.
|
|
90
|
-
|
|
91
|
-
2026-10-02 fourth follow-up review: `npm run check` and `npm run build` passed on Windows PowerShell / Node v24.16.0. The affected suites passed 81/81 with no exclusions using `node scripts/run-tests.mjs dist/test/extensions.test.js dist/test/extensions-publication.test.js dist/test/extensions-github.test.js dist/test/extensions-runtime.test.js dist/test/mcp.test.js dist/test/command-screens.test.js dist/test/agent-execution.test.js`. New regressions track document handles across 130 skills and 130 plugins (128 reads per directory, at most four concurrent open documents), verify omission notices, drain in-flight reads on cancellation, reject canonical ancestors before scanning, inspect fake environment variables in a real stdio process, and verify parent MCP tools are absent from a shell-enabled inherited child catalog. The inherited-child runtime fixture uses a read-only role under the worktree policy; built-in writing-child worktree isolation also passed in the existing agent-execution suite. Full suite and physical terminal/account workflows were not rerun for these narrow fixes; previous baseline failures remain documented below.
|
|
92
|
-
|
|
93
|
-
Environment: Windows PowerShell, Node v24.16.0; isolated feature worktree and temporary ANDORRACODE_HOME. `npm run check` and `npm run build` passed. Focused changed-feature/regression suite: 167/167 passed (menus, auth, TUI, commands, graph revisions/schema, timeout behavior, skill resources and actual MCP transports). Two additional committed hardened-runtime regressions passed: pre-plan skill read rejected with zero underlying reads, post-plan read allowed, and default engineer external-tool execution. Latest extension/runtime/transport rerun: 12/12 passed, including real stdio and SDK HTTP sessions, paginated discovery, approval side effects, cancellation/PID exit, explicit HTTP DELETE cleanup, auth environment references and file-boundary checks. A live isolated GitHub install of `https://github.com/openai/skills/tree/main/skills/.system/skill-creator` succeeded, then read SKILL.md through the bounded tool; fixture home was removed.
|
|
94
|
-
|
|
95
|
-
Full `npm test` initially ran 963 cases: 916 passed, 42 failed, 5 skipped. Pristine `main` at `9fe7f5d` independently ran 944: 897 passed, 42 failed, 5 skipped. Forty failure titles matched, largely existing Windows memory/CodeGraph assumptions and CLI/process timeout behavior. One new revision-3 assertion was updated for revision 4 and its focused checks passed. The feature-only headless Orchestrator timeout passed an isolated rerun (14.8 seconds); pristine baseline also passed it in isolation (15.4 seconds). Baseline-only CLI selector/provider cases varied under concurrent load. Existing two metadata fallback failures reproduced on pristine main in isolation. The complete suite is not clean; no claim is made that all failures are fixed. Remaining manual cases are pending as described above.
|
|
96
|
-
|
|
97
|
-
After merging current `main` at `ed43e60`, `npm run check` and `npm run build` passed. Final focused suite passed 121/121, including all five Codex review regressions (bounded empty-page pagination, editor discovery, subagent skill permissions, publication cancellation, and invalid-entry removal), plus account/provider logout separation. The updated slash-completion regression also passed separately. The merged full attempt ran 1,926 cases: 1,840 passed, 79 failed, 1 cancelled, 6 skipped; two stalled test workers (`cli-context-persistence` and `unbounded-runs`) were stopped after pristine main independently reproduced both hangs. A pristine `ed43e60` run excluding those two files ran 1,892: 1,809 passed, 76 failed, 1 cancelled, 6 skipped. Every other failure title matched, except the new slash test's `/lo` ambiguity with upstream `/login`; that test now uses `/logou` and passed. The full suite remains blocked by upstream failures and hangs; it was not rerun after the final narrow review fixes.
|
|
98
|
-
|
|
99
|
-
2026-10-02 follow-up review: serialized `npm run check` and `npm run build` passed. Extension, publication, runtime and MCP suites passed 21/21; CLI preflight cancellation passed 3/3, including the new pause/abort/retry MCP approval case. Deterministic filesystem testing swapped a parent junction at open and restored it before verification; the outside handle was rejected. Large Unicode metadata and multi-server paginated schemas exercised the catalog budgets. Broader CLI live-control/run-control checks ran 11 cases: 9 passed, 2 failed (usage-counter assertion and nested-child tool-selection assertion); both identical failures reproduced in the existing pristine `ed43e60` baseline. Initial parallel generation attempts collided in ignored engine runtime files; serialized checks passed afterward. One follow-up rerun timed out at the new test's original 15-second limit during unrelated startup; the fixture now disables CodeGraph and allows 60 seconds while retaining the same approval assertions. Full suite and manual device/terminal/account workflows were not rerun for this narrow follow-up.
|
|
100
|
-
|
|
101
|
-
2026-10-02 second follow-up review: `npm run check` and `npm run build` passed on Windows PowerShell / Node v24.16.0. The affected extension, MCP, graph-editor/server/validation and terminal suites passed 221/221 after excluding two independently reproduced baseline tests: expanding one prompt releases capture with another collapsed prompt visible, and collapsed prompt disclosure during resize. Both failed with identical assertions on the existing pristine main worktree at ed43e60. New coverage verifies active-run multiword auth commands never steer the model, the restricted child skill-reader checkbox respects parent and child permissions, eight enabled MCP startup attempts including empty catalogs, process cleanup, and cancellation while awaiting approval. Full suite and manual terminal/account workflows were not rerun for this narrow follow-up.
|
|
102
|
-
|
|
103
|
-
2026-10-02 bounded GitHub download follow-up: compiled extension, publication and new GitHub archive suites passed 17/17 on Windows / Node v24.16.0. Fixtures exercise root/default-ref, explicit tag, selected subtree, compressed-transfer cancellation (both declared length and chunked body), an 81 MiB gzip bomb, selected-content overflow, excessive implicit directories, traversal, symlinks, duplicate paths, PAX long filenames, corrupt checksums and cancellation cleanup. A live isolated `https://github.com/openai/skills/tree/main/skills/.system/skill-creator` archive install succeeded (18,664-byte SKILL.md, catalog available, no `.git` or staging residue). Live root `https://github.com/openai/skills` downloaded and parsed, then correctly failed because that root lacks SKILL.md; its staging directory was removed. Temporary homes were removed. Successful live root installation is covered by the archive fixture, not a live root bundle. POSIX executable-mode preservation has a committed assertion but was not executed on Windows. Private repositories require an authenticated local checkout; archive download sends no credentials. Repository-wide 64 MiB compressed/80 MiB expanded limits apply before extraction, including unselected content, and archive paths are capped at 32 KiB.
|
|
104
|
-
|
|
105
|
-
2026-10-02 third follow-up review: `npm run check` and `npm run build` passed on Windows PowerShell / Node v24.16.0. The affected extension/publication/runtime, MCP, CLI preflight cancellation and run-control suites passed 36/36 using `node scripts/run-tests.mjs '--test-skip-pattern=nested child keeps' dist/test/extensions.test.js dist/test/extensions-publication.test.js dist/test/extensions-runtime.test.js dist/test/mcp.test.js dist/test/cli-preflight-cancellation.test.js dist/test/run-control.test.js`. The excluded nested-child tool-selection test failed identically on the existing pristine ed43e60 baseline (`Tool error: Subagent tool selection exceeds its parent`); it remains outside this fix. A real stdio server verified pause cancellation, same-process resumed tool execution, and task-abort cleanup. Full suite and physical terminal/account workflows were not rerun.
|
|
106
|
-
|
|
107
|
-
## Transport response regression (EXT-35)
|
|
108
|
-
|
|
109
|
-
Use a local stdio fixture that writes over 1 MiB without a newline, then HTTP fixtures returning an oversized declared body, chunked JSON, and an unfinished SSE data event. Discover a tool normally first, then invoke it. Expected: pending call rejects, stdio process exits, HTTP producer is cancelled before completing its 64 MiB payload, and no oversized document is parsed or included in the transcript. A normal bounded JSON/SSE response still succeeds. The cap applies cumulatively to long-lived HTTP streams; reconnect by starting a new task. Automated coverage: test/mcp.test.ts. Live third-party servers and long-running SSE compatibility remain proposed QA work.
|
|
110
|
-
|
|
111
|
-
2026-10-02 fourth follow-up review: npm run check and npm run build passed on Windows PowerShell / Node v24.16.0. Compiled extension, publication, GitHub archive, runtime and MCP suites passed 42/42 with no exclusions, including seven new regressions for literal plugin roots, deduplicated/capped skills, nested cancellation and transport response limits. Real subprocess and HTTP fixtures verified producer/process cleanup. Full suite, live third-party MCP services and manual terminal/account workflows were not rerun; previously documented baseline failures remain outside this remediation.
|
|
112
|
-
|
|
113
|
-
2026-10-02 fifth follow-up review: npm run check, npm run build and git diff --check passed on Windows PowerShell / Node v24.16.0. The affected extension, publication, GitHub archive, runtime, MCP, manager and CLI preflight suites passed 81/81 with no exclusions. New regressions cover literal placeholder-bearing plugin roots at real stdio connection, early invalid ID rejection before download/traversal/copy, collision-free malformed bundle menu routing, and live /yolo on settling startup approval with stale callback cleanup. EXT-39 through EXT-42 document expected behavior and manual gaps. An additional unchanged cli-live-control test failed its request-count assertion identically on the clean existing ed43e60e6d33897ff6c334214cc77744a20f2eaf baseline (expected 0,1,1,1,3; actual 1,2,3,3,6). It remains outside remediation. Full suite, actual POSIX malformed-entry deletion, physical terminal input, third-party services and account sign-out were not rerun.
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
# Jev choice routing and prepared continuation QA
|
|
2
|
-
|
|
3
|
-
## Scope and prerequisites
|
|
4
|
-
|
|
5
|
-
This feature expands signed-in hosted Jev from retrieval decisions to tool families, project skills, delegation/role selection, verification tier, risk/complexity, and post-tool continuation decisions. Free and paid users retain `/jev on|off|status`; paid graph nodes can override Jev off. Default is on for signed-in users. Direct Jev stays shadow-only and Laya retains context routing. Requests consume one daily quota unit per batch (preflight and each eligible post-tool batch), not per question.
|
|
6
|
-
|
|
7
|
-
Use Node 22+, npm, Git and Python 3.10+. Windows PowerShell is the verified environment; other supported Node platforms require follow-up QA. Work in this feature branch's dedicated worktree, never switch the installed checkout away from main. Run `npm ci --ignore-scripts`, `npm run build`, `npm run check`. Start with `node dist/src/cli.js --cwd <scratch-repository>`. Login with `/login`, verify the email/footer, then `/jev on`. The AWS account service must contain the expanded proxy contract; never place the shared Jev key in CLI config. Local executable tests use fake decisions and require no secrets. Live CLI checks require a configured coding provider and an existing authenticated account.
|
|
8
|
-
|
|
9
|
-
## How to use
|
|
10
|
-
|
|
11
|
-
1. Create a scratch repository and `evidence.txt` containing `The release code is ANDORRA-JEV-42.`
|
|
12
|
-
2. Launch the feature CLI there; ask `Read evidence.txt and tell me the release code. Do not edit files or run shell.` Expect a correct answer and `[Jev]` activity before coding and after the read.
|
|
13
|
-
3. Inspect `<ANDORRACODE_HOME>/runs/<run-id>.jsonl`: `decision.requested/completed` has `stage: preflight` and `postflight`. The latter includes six fixed result questions. Logs must not contain credentials or raw provider responses in decision events.
|
|
14
|
-
4. To exercise skill routing, create `.agents/skills/release/SKILL.md` with YAML front matter `description: Read release version metadata` and a short reference body. Ask `Use $release to inspect the release metadata`. Confirm the selected reference enters the coding context and skill content is omitted from tool telemetry. Use a local test adapter to inspect actual requests.
|
|
15
|
-
5. For prepared continuation, create `route.txt` telling the agent to read `second.txt`, and `second.txt` containing `Release code: JEV-BRANCH-77.` Ask the agent to call `prepare_steps` first in the same batch as `read_file(route.txt)`, with an `investigate` candidate for `read_file(second.txt)`. Exact arguments must already be known. Jev can select the candidate when sufficiently confident; otherwise the coding model resumes. `decision.turn_bypassed` proves an actual saved model request; `decision.completed` alone does not.
|
|
16
|
-
6. Use `/jev off`, repeat the lookup and confirm no hosted decisions or prepared-step tool. Restore the prior preference after testing. Delete only task-owned scratch fixtures when finished; do not remove user configuration or login credentials.
|
|
17
|
-
|
|
18
|
-
## Executable checks
|
|
19
|
-
|
|
20
|
-
```powershell
|
|
21
|
-
npm run check
|
|
22
|
-
npm run build
|
|
23
|
-
node --test dist/test/decision-engine.test.js dist/test/decision-active.test.js dist/test/decision-all-routing.test.js dist/test/decision-preflight-execution.test.js dist/test/decision-post-tool.test.js dist/test/andorra-decision-provider.test.js dist/test/hardened-runtime.test.js
|
|
24
|
-
python -m unittest discover -s infra/andorra-auth -p 'test_*.py' -v
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Cases and observable results
|
|
28
|
-
|
|
29
|
-
| ID | Preconditions and steps | Expected result |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| JEV-01 | Active hosted fixture, confidently reject write/shell/web families; inspect actual model request. | Rejected schemas absent; unknown/core control tools retained; no new capability granted. |
|
|
32
|
-
| JEV-02 | Request an omitted permitted tool via `restore_tools`, then execute it with approval denial. | Schema restored from original capability-filtered catalog; normal hook and denial still apply. Missing/disallowed names fail. |
|
|
33
|
-
| JEV-03 | Confident delegation role with two configured roles; repeat with an explicit different role in task. | Selected role enum is narrowed; explicit request wins; original permissions/delegation limits remain. |
|
|
34
|
-
| JEV-04 | Select verification tiers and high security/architecture risk. | Fixed verification guidance applies; risk escalates checks; `none` never waives workspace/graph requirements. |
|
|
35
|
-
| JEV-05 | Select a project skill, choose none, return uncertainty, and fail provider. | Only selected or explicitly requested bodies are loaded; fallback catalog remains usable; skill text is untrusted reference data. |
|
|
36
|
-
| JEV-06 | Skill symlink/escape, binary, >16KiB, >16 skills, invalid folder name; cancel discovery. | Unsafe/oversized files skipped, catalog bounded, cancellation honored, no outside read. |
|
|
37
|
-
| JEV-07 | Model prepares next investigation/verification tool in same batch as initial action; Jev selects it. | Exact prepared arguments execute through normal hooks/approval/budgets; one fewer coding-model request; public tool activity still emitted. |
|
|
38
|
-
| JEV-08 | Prepare read-only retry; try shell/write/unavailable retry instead. | Only allowlisted read-only retry is accepted. Repeated-failure stop remains; no duplicate side effects are auto-retried. |
|
|
39
|
-
| JEV-09 | Prepare short known answer; read full matching evidence; strict consistent results, both risks explicitly false, confident verification tier `none`, no complexity escalation or unfinished todos. | Jev sees complete proposed answer and conditions. Existing completion schema/guard runs; fabricated prewritten tests replaced by observed verification; saved model request recorded. |
|
|
40
|
-
| JEV-10 | Repeat completion with writes/shell, unknown risk, failed/truncated/projected result, pending todos, verification ready/uncertain, or guard rejection. | No premature success: coding-model continuation/repair. Oversized or secret-containing proposed answers are not offered to Jev. |
|
|
41
|
-
| JEV-11 | Queue steering/follow-up during evaluation, replace a plan invalidly, or return to normal coding model. | Prepared steps invalidated; stale actions never execute; new user input preserved. |
|
|
42
|
-
| JEV-12 | Four consecutively selectable prepared actions, limited iterations/tools, cancellation during request. | At most three automatic turns before model resumes; original budgets and cancellation apply. |
|
|
43
|
-
| JEV-13 | Timeout, 429 quota, missing login, malformed/extra answers, oversized task/payload. | Bounded sanitized fallback, normal model route, no fabricated decision or credential leakage. |
|
|
44
|
-
| JEV-14 | Parallel invocations/nodes with distinct snapshots; mutate source after request. | No cross-node candidates/results; identity/snapshot isolation. |
|
|
45
|
-
| JEV-15 | Run proxy tests with malformed stages, IDs, descriptions, options or capability references. | Reject before quota/upstream; exact server-reconstructed questions, atomic tier/global quota and server-only key unchanged. |
|
|
46
|
-
| JEV-16 | Off/shadow/Laya clients and legacy preflight payload. | Off never invokes Jev; shadow does not steer runtime; Laya retains context-only active behavior; legacy proxy clients accepted. |
|
|
47
|
-
|
|
48
|
-
## Edge cases and limitations
|
|
49
|
-
|
|
50
|
-
Confidence thresholds intentionally produce fallback. Post-tool requests include bounded redacted summaries, not the entire conversation; secret redaction is best effort. Tool privacy projections are used and cannot authorize automatic completion. At most eight observations/candidates and eight recent failures are sent; UTF-8 and the whole 32KiB hosted limit apply. Oversized input falls back without silently truncating the task. A proposed answer plus conditions must fit 512 UTF-8 bytes in full; otherwise only the coding model may complete.
|
|
51
|
-
|
|
52
|
-
Prepared steps expire whenever the coding model resumes, on user steering, or on replacement (including invalid replacement). Call `prepare_steps` first in the same batch as the observation that triggers selection. No new arguments are synthesized by Jev. Automatic completion is limited to read-only invocations with explicit low-risk evidence; writes, shell and unknown tools require final coding-model review. Graph-edge selection, new graph synthesis, permission policy and mandatory checks are not delegated to Jev. This preserves meaningful coding/model work while replacing bounded choices.
|
|
53
|
-
|
|
54
|
-
Measured accuracy and net token/dollar savings across workloads are not yet established. Extra post-tool calls consume quota and add latency. No mobile UI is involved; ARTEMIS is not applicable. Linux/macOS runtime smoke tests and production traffic load/abuse tests remain pending.
|
|
55
|
-
|
|
56
|
-
## Validation evidence
|
|
57
|
-
|
|
58
|
-
- `npm run check`, build and package dry-run passed. The final focused TypeScript run passed 89/89 tests; Python proxy/enrollment suite passed 27/27. These tests use fake providers.
|
|
59
|
-
- AWS `andorra-prod`, account `950992723121`, `us-east-2`: template validation passed; reviewed change set modified only Proxy Lambda and its API integration without replacement; stack reached `UPDATE_COMPLETE` on 2026-09-20. cfn-lint/cfn-guard and Python bindings were unavailable; they were not run.
|
|
60
|
-
- Real signed-in CLI run `ed08c5cd-b3ca-47d0-b935-576a17d60768` succeeded with GX10 `deepseek-v4.1-flash`: correct release code, one read, two model requests. Real Jev preflight classified 12 questions (1252ms); post-tool classified six questions (1014ms). This proves live routing/contract compatibility, not a saved model turn in this run.
|
|
61
|
-
- Real conditional CLI run `ad69068e-0c0c-4e3b-828c-6146420ff04e` succeeded with three tool calls and three coding-model requests. It offered a prepared candidate; real Jev returned next-action confidence 0.05 and safely fell back to the coding model. No live model-turn saving is claimed. Deterministic executable tests demonstrate the bypass path and request-count savings.
|
|
62
|
-
- Full feature suite at the earlier integration checkpoint: 1222 tests, 1181 passed, 35 failed, six skipped. Clean base `af942c7`: 1203 tests, 1159 passed, 38 failed, six skipped. Every feature failure reproduced on the base; three additional timing-sensitive baseline failures did not reproduce on the feature. Subsequent privacy/continuation changes were covered by the final 89-test focused run. Full suite is not green; these existing failures are not introduced by this feature.
|
|
63
|
-
- Installed checkout `C:/Users/markx/andorra-install` remained clean on `main`; the feature was tested in its dedicated worktree. No CLI update/installation or merge is claimed.
|
|
64
|
-
|
|
65
|
-
### Reproduced baseline failures
|
|
66
|
-
|
|
67
|
-
These existing fixture/environment failures also occurred on the clean base.
|
|
68
|
-
|
|
69
|
-
- interactive context discovery affects inference and status but never later command persistence
|
|
70
|
-
- interactive context cache falls back to 1024 after unavailable metadata
|
|
71
|
-
- interactive context cache falls back to 1024 after missing metadata
|
|
72
|
-
- SIGINT during interactive metadata discovery records a cancelled run
|
|
73
|
-
- SIGTERM during interactive metadata discovery records a cancelled run
|
|
74
|
-
- budgeted automatic context preserves trust delimiters and records only fully injected files
|
|
75
|
-
- a graph-served file is not re-read and its mutation triggers the sync barrier
|
|
76
|
-
- a retry after a mutation does not re-inject pre-edit repository context
|
|
77
|
-
- watcher-observed external edits also trigger the sync barrier
|
|
78
|
-
- the ledger suppresses reads of files the graph served in full
|
|
79
|
-
- repo_explore refuses workspaces outside the managed repository
|
|
80
|
-
- a shell command stales graph-served source and forces a sync before the next query
|
|
81
|
-
- an externally changed file is re-read instead of suppressed
|
|
82
|
-
- a failed shell command still stales graph-served source
|
|
83
|
-
- beginRun refreshes branch and disables memory for an unhealthy run
|
|
84
|
-
- git evidence uses NUL-safe rename paths and per-run branch in persisted provenance
|
|
85
|
-
- action-only graph stays successful when optional distillation model resolution would fail
|
|
86
|
-
- first retrieval outage trips the run circuit breaker
|
|
87
|
-
- SHA-256 provenance commits participate in stale-file checks
|
|
88
|
-
- the memory block fits within the node context budget
|
|
89
|
-
- the memory block is sized against the discovered model context window
|
|
90
|
-
- distillation falls back to deterministic extraction and persists user decisions
|
|
91
|
-
- duplicate memories are skipped and changed ones supersede
|
|
92
|
-
- a changed title over the same subject supersedes the old fact
|
|
93
|
-
- shared generic words alone never supersede an independent fact
|
|
94
|
-
- unrelated memories of the same type are not superseded
|
|
95
|
-
- distillation errors degrade to events instead of run failures
|
|
96
|
-
- explicit memory_search results are flagged when evidence files changed
|
|
97
|
-
- user instructions and architecture decisions persist as user-verified without tests
|
|
98
|
-
- remote URLs normalize to a stable slug across protocols
|
|
99
|
-
- relative filesystem remotes are resolved against each repository root
|
|
100
|
-
- all nested provider references are preflighted before any Agent work
|
|
101
|
-
- custom planning and QA roles do not inherit the default implementation directive
|
|
102
|
-
- custom graph pins a revision, runs nodes in order and aggregates usage under one run id
|
|
103
|
-
- custom graph rejects unavailable downstream providers before any model or tool execution
|
|
104
|
-
|
|
105
|
-
## PR review regression checks
|
|
106
|
-
|
|
107
|
-
- Structured privacy projection receives the full >24,000-character raw result exactly once. Only its independently bounded public projection reaches events and Jev; coding-model observations retain their own truncation.
|
|
108
|
-
- A graph with 32 configured roles sends at most 32 delegation choices including `none`; the original role catalog and explicit-role recovery remain available.
|
|
109
|
-
- `prepare_steps` is metadata, exempt from both per-node and shared execution-tool counts. It has a separate 32-call allowance per invocation; a metadata-only loop cannot run indefinitely. Two real calls still fit a two-tool allowance when a prepared plan precedes research and clarification.
|
|
110
|
-
- Any steering or follow-up permanently disables prepared completion for the current invocation, including freshly prepared answers. Original low-risk hints cannot authorize a shortcut after the task changes.
|
|
111
|
-
- Validation: build passed; 43 targeted decision/post-tool/runtime tests passed on Windows. These regressions use deterministic fixtures, not live provider prediction tests.
|
|
112
|
-
|
|
113
|
-
### Additional PR review boundaries
|
|
114
|
-
|
|
115
|
-
- Root intake `load_project_skill` must fail until `update_todos` successfully publishes its plan, both in confident routing and provider-fallback paths. Skill contents are not automatically injected before that gate.
|
|
116
|
-
- Valid graphs with more than 32 configured roles retain their full runtime role catalog, but hosted requests send only the first 31 distinct compatible non-sentinel roles in the decision snapshot and its matching delegation choices. Direct shadow requests use the generic 128-choice limit including `none`.
|
|
117
|
-
- A final execution iteration makes no postflight request because it cannot consume any resulting guidance/action. Exhaustion remains `maxIterations` rather than waiting for a pointless request or consuming quota.
|
|
118
|
-
- Equivalent unsafe calls cannot be replayed by naming a prepared step `investigate`, `verify`, or `change_strategy`. Compare canonical nested arguments regardless of object-key order against previously observed unsafe actions, including partially failed ones. The model may reassess the situation through ordinary fallback.
|
|
119
|
-
- A rejected prepared completion does not consume the coding model's repair allowance or its remaining iteration. Verify both a zero-repair guard rejection and malformed shortcut followed by one genuine model repair.
|
|
120
|
-
- Validation for these five follow-up fixes: TypeScript build/check passed; combined decision, runtime and Orchestrator suite passed 212/212 tests on Windows.
|
|
121
|
-
|
|
122
|
-
### Current review fixes (2026-09-20)
|
|
123
|
-
|
|
124
|
-
- Role IDs of 64 characters remain eligible for hosted delegation. Valid graph IDs of 65 and 80 characters are omitted from both the hosted snapshot and choices, without truncation, and remain in the runtime role catalog. Filtering occurs before the 31-role cap; a catalog containing only incompatible IDs omits the delegation choice question. Tests cover success and provider-failure fallback.
|
|
125
|
-
- Configure distinct node `instruction` and `systemPrompt`, with the system prompt over 8,192 bytes. Execute a read followed by completion. Preflight and postflight must both carry the configured instruction; the coding model retains its system prompt. Direct executor tests also cover missing instruction and instruction secret redaction.
|
|
126
|
-
- Prepared completion requires a confident `none` verification tier and no high-complexity escalation. Each of `targeted`, `lint`, `targeted+lint`, `build`, and `full-tests`, as well as missing/uncertain tier, must resume the coding model. A successful read labeled `verify` cannot satisfy a required tier. Runtime observations do not establish tier-specific verification coverage, so required tiers conservatively retain final model review.
|
|
127
|
-
- Local validation in this feature worktree on Windows: `npm run check` and `npm run build` passed. The seven-file Node command in **Executable checks** passed 107/107 tests; the Python discovery command there passed 27/27 tests. These are deterministic tests; no new live hosted-provider validation was performed. The previously documented full-suite baseline failures were not rerun or changed. No installation, deployment, credentials, workflows, or automation were modified.
|
|
128
|
-
|
|
129
|
-
### Routing opt-outs and restoration follow-up (2026-09-20)
|
|
130
|
-
|
|
131
|
-
- JEV-R17: With active hosted routing and negative family answers, set `delegationRouting: false`, then separately `webRouting: false`. Inspect requested questions and actual model schemas. The disabled stage must omit its dedicated and overlapping family questions, retain delegation or web/browser schemas respectively, and continue applying unrelated family decisions.
|
|
132
|
-
- JEV-R18: In direct Jev shadow mode, configure 40 roles including an 80-character ID. Both the provider snapshot and choices must retain those roles, and the model must retain the full catalog. At the generic boundary, expose at most 127 distinct non-sentinel roles plus `none`; hosted requests still use 31 roles and exclude IDs over 64 characters. Shadow responses must not affect active execution.
|
|
133
|
-
- JEV-R19: Restore an omitted read/write schema or a narrowed delegation schema with local and shared `maxToolCalls: 1` and `maxIterations: 1`. Restoration must leave room for the real action, count exactly one execution call, retain tool hooks, and produce no metadata-only postflight request. The subsequent final execution iteration ends at `maxIterations` as configured.
|
|
134
|
-
- JEV-R20: Repeated restoration has a separate 32-call metadata allowance even with zero execution-tool budget. The schema disappears at the cap; an unsolicited 33rd restoration exhausts that metadata allowance. A restored protected write still requests approval and does not execute when approval is denied.
|
|
135
|
-
- These cases use deterministic adapters; live provider prediction quality and the previously documented full-suite baseline failures remain outside this follow-up's validation.
|
|
136
|
-
- Validation: Windows, Node v24.16.0, npm 11.11.0, Python 3.14.6, branch `feat/jev-all-decisions`. `npm run check` and `npm run build` passed. The exact seven-file Node command in **Executable checks** passed 113/113 tests; the Python discovery command passed 27/27. No full-suite rerun or new live-provider validation. The installed checkout was not accessed or modified.
|
|
137
|
-
|
|
138
|
-
### Integration with updated main (2961da7)
|
|
139
|
-
|
|
140
|
-
Main advanced with pause/resume support during review remediation. Conflict resolution preserves pause-aware preflight/model requests and conversation checkpoints together with Jev routing and prepared continuations.
|
|
141
|
-
|
|
142
|
-
- JEV-R21: Pause/resume during the before-tool hook of a batch containing preparation, restoration and a real read. All three calls must be skipped, shared execution usage must remain zero, and metadata must not decrement that shared counter or trigger postflight.
|
|
143
|
-
- JEV-R22: Pause while a postflight provider is pending, then resume with new authentication-related direction. The pending decision is cancelled; the model receives the new direction and no prepared completion bypass occurs.
|
|
144
|
-
- JEV-R23: Complete after preparation/restoration and capture the conversation checkpoint. It must include both metadata counters. Resume that checkpoint and offer a fresh read-only prepared completion; final model review remains required because earlier conversation effects and requirements cannot be assumed safe.
|
|
145
|
-
- Validation on the same Windows environment: `npm run check` and `npm run build` passed after conflict resolution. The combined command below passed 157/157 tests. Existing full-suite baseline failures documented here and in `tests/interactive-pause-test-plan.md` were not broadened into this fix. No new live-provider validation was performed.
|
|
146
|
-
|
|
147
|
-
```powershell
|
|
148
|
-
node --test dist/test/decision-engine.test.js dist/test/decision-active.test.js dist/test/decision-all-routing.test.js dist/test/decision-preflight-execution.test.js dist/test/decision-post-tool.test.js dist/test/andorra-decision-provider.test.js dist/test/hardened-runtime.test.js dist/test/agent-preflight-pause.test.js dist/test/continuation-state.test.js dist/test/orchestrator-continuation.test.js dist/test/run-control.test.js dist/test/graph-finalization-pause.test.js dist/test/trajectory.test.js dist/test/trajectory-nodes.test.js dist/test/cli-live-control.test.js
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Metadata ownership and bounded context follow-up (2026-09-20)
|
|
152
|
-
|
|
153
|
-
- JEV-R24: Supply a side-effecting custom `prepare_steps` tool in the active catalog and separately in the recovery catalog. With hosted postflight enabled and zero local/shared execution budget, only the runtime preparation schema is advertised and the custom implementation never executes or becomes restorable. Without postflight, the custom name remains an ordinary action and zero execution budget rejects it.
|
|
154
|
-
- JEV-R25: Compare an otherwise fitting request against automatic skill selection with large pinned history, escaped history, completion contracts or todos. Optional skill content/catalog must fit the remaining serialized context budget; when insufficient, omit injection while retaining `load_project_skill` for explicit access. Repeat provider failure to exercise catalog fallback.
|
|
155
|
-
- JEV-R26: Run 61 real read batches with alternating investigation/verification guidance, empty guidance and provider failures under a 12,000-character context limit. Each model request must contain at most one current Jev guidance message, obsolete guidance must disappear, history compaction must occur, and the run must complete. Completion checkpoints must omit transient postflight guidance; steering also clears it.
|
|
156
|
-
- Validation: on Windows in `feat/jev-all-decisions`, `npm run check` and `npm run build` passed. The exact 15-file Node command in **Integration with updated main (2961da7)** passed 161/161 tests; `python -m unittest discover -s infra/andorra-auth -p 'test_*.py' -v` passed 27/27. These cases use deterministic fixtures; no new live-provider, installation or deployment validation is claimed. Previously documented full-suite baseline failures were not rerun or changed.
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$comment": "Acceptance criteria for scripts/jev-efficiency-eval.mjs. Each entry names a workload, the configuration it applies to, and the checks the harness asserts. `baseline` refers to the same workload under the shipped configuration in the same run. Sizes are serialized request characters, never tokens.",
|
|
3
|
-
"revision": 3,
|
|
4
|
-
"history": [
|
|
5
|
-
"Revision 1 was written before any candidate result existed. It compared outcomes with `outcomeMatchesBaseline` (equality) and folded failure-evidence visibility into the outcome label.",
|
|
6
|
-
"Revision 2 (after the first run, before any threshold was changed): the first run showed the shipped runtime's 24,000-character clip drops both failing tests of the long-log fixture, so the baseline itself lost evidence. Outcome labels now name the task outcome only, evidence visibility is a measured metric with its own check, and the `all` check requires an outcome no worse than the baseline (`completed` ranks above anything else) instead of equality. No size or count threshold was loosened; the greenfield workload moved to the node runtime so catalog selection applies to it, and its scripted model reacts to observed results so a saved turn is a real saved turn.",
|
|
7
|
-
"Revision 3 (after the second run): the catalog check in the first two runs was applied to mock schemas a tenth the size of the shipped ones and to a node runtime that never saw the greenfield task; both fixtures were corrected. The `all` size check now allows a 0.5% tolerance over the baseline: advertising the `when` trigger costs a fixed ~170 serialized characters per request whether or not a step uses it, which is a real, documented cost of enabling every feature on a task with no opportunity, not a saving claimed. The per-feature checks are unchanged."
|
|
8
|
-
],
|
|
9
|
-
"disabledMatchesBaseline": true,
|
|
10
|
-
"checks": [
|
|
11
|
-
{
|
|
12
|
-
"workload": "greenfield-page",
|
|
13
|
-
"mode": "preparedContinuations",
|
|
14
|
-
"outcome": "completed",
|
|
15
|
-
"modelRequests": {
|
|
16
|
-
"deltaFromBaseline": -1
|
|
17
|
-
},
|
|
18
|
-
"jevRequests": {
|
|
19
|
-
"atMostBaseline": true
|
|
20
|
-
},
|
|
21
|
-
"bypassedTurns": {
|
|
22
|
-
"min": 1
|
|
23
|
-
},
|
|
24
|
-
"preparedRejected": {
|
|
25
|
-
"max": 0
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"workload": "greenfield-page",
|
|
30
|
-
"mode": "postflightOnlyWithCandidates",
|
|
31
|
-
"outcome": "completed",
|
|
32
|
-
"modelRequests": {
|
|
33
|
-
"deltaFromBaseline": 0
|
|
34
|
-
},
|
|
35
|
-
"jevRequests": {
|
|
36
|
-
"lessThanBaseline": true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"workload": "greenfield-page",
|
|
41
|
-
"mode": "catalogSelection",
|
|
42
|
-
"outcome": "completed",
|
|
43
|
-
"firstRequestToolSchemaChars": {
|
|
44
|
-
"lessThanBaseline": true
|
|
45
|
-
},
|
|
46
|
-
"modelRequests": {
|
|
47
|
-
"deltaFromBaseline": 0
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"workload": "greenfield-page",
|
|
52
|
-
"mode": "contextSelection",
|
|
53
|
-
"outcome": "completed",
|
|
54
|
-
"totalRequestChars": {
|
|
55
|
-
"atMostBaseline": true
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"workload": "long-test-logs",
|
|
60
|
-
"mode": "toolResultFiltering",
|
|
61
|
-
"outcome": "completed",
|
|
62
|
-
"totalRequestChars": {
|
|
63
|
-
"ratioOfBaselineBelow": 0.6
|
|
64
|
-
},
|
|
65
|
-
"filteredResults": {
|
|
66
|
-
"min": 1
|
|
67
|
-
},
|
|
68
|
-
"modelRequests": {
|
|
69
|
-
"deltaFromBaseline": 0
|
|
70
|
-
},
|
|
71
|
-
"failureEvidenceVisible": {
|
|
72
|
-
"min": 1
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"workload": "bugfix-with-memory",
|
|
77
|
-
"mode": "contextSelection",
|
|
78
|
-
"outcome": "completed",
|
|
79
|
-
"totalRequestChars": {
|
|
80
|
-
"lessThanBaseline": true
|
|
81
|
-
},
|
|
82
|
-
"contextOmitted": {
|
|
83
|
-
"min": 3
|
|
84
|
-
},
|
|
85
|
-
"modelRequests": {
|
|
86
|
-
"deltaFromBaseline": 0
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"workload": "two-node-handoff",
|
|
91
|
-
"mode": "catalogSelection",
|
|
92
|
-
"outcome": "completed",
|
|
93
|
-
"totalRequestChars": {
|
|
94
|
-
"lessThanBaseline": true
|
|
95
|
-
},
|
|
96
|
-
"skillCatalogDeduplicated": {
|
|
97
|
-
"min": 1
|
|
98
|
-
},
|
|
99
|
-
"modelRequests": {
|
|
100
|
-
"deltaFromBaseline": 0
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"workload": "routing-simple-vs-complex",
|
|
105
|
-
"mode": "adaptiveRouting",
|
|
106
|
-
"outcome": "completed",
|
|
107
|
-
"routingApplied": {
|
|
108
|
-
"min": 1
|
|
109
|
-
},
|
|
110
|
-
"economyRequests": {
|
|
111
|
-
"min": 1
|
|
112
|
-
},
|
|
113
|
-
"premiumOrBaselineForComplex": true,
|
|
114
|
-
"modelRequests": {
|
|
115
|
-
"deltaFromBaseline": 0
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"workload": "adversarial-evidence",
|
|
120
|
-
"mode": "toolResultFiltering",
|
|
121
|
-
"outcome": "completed",
|
|
122
|
-
"bypassedTurns": {
|
|
123
|
-
"max": 0
|
|
124
|
-
},
|
|
125
|
-
"modelRequests": {
|
|
126
|
-
"deltaFromBaseline": 0
|
|
127
|
-
},
|
|
128
|
-
"failureEvidenceVisible": {
|
|
129
|
-
"min": 1
|
|
130
|
-
},
|
|
131
|
-
"injectionInStructuredTrailer": {
|
|
132
|
-
"max": 0
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
"workload": "adversarial-evidence",
|
|
137
|
-
"mode": "preparedContinuations",
|
|
138
|
-
"outcome": "completed",
|
|
139
|
-
"bypassedTurns": {
|
|
140
|
-
"max": 0
|
|
141
|
-
},
|
|
142
|
-
"modelRequests": {
|
|
143
|
-
"deltaFromBaseline": 0
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"workload": "*",
|
|
148
|
-
"mode": "all",
|
|
149
|
-
"outcomeNotWorseThanBaseline": true,
|
|
150
|
-
"totalRequestChars": {
|
|
151
|
-
"ratioOfBaselineBelow": 1.005
|
|
152
|
-
},
|
|
153
|
-
"modelRequests": {
|
|
154
|
-
"atMostBaseline": true
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|