Repository navigation
Accept node content that starts with a dash; give plugin sessions the project's queue filter; add the harness scenario (refs #3721) - #3740
Conversation
Pragmatic Code Review: PR #3740Review Type: Initial Review (no earlier reviews or comments on the PR) SummaryThe two product fixes are correct and well aimed: the tick command the implementing procedure hands every agent now parses, and both plugin copies give the session a queue filter for its own project, in the same shape Two things should change before merge. Both are small, and both were confirmed against the code or the built binary:
Checks run: Requirements Check (issue #3721)
Scope: the three parts (CLI fix, plugin fix, harness) all come from the one investigation, and the plugin and CLI changes are the minimum for each defect. No unrelated changes. Code Review Findings🟡 Important1. #[arg(long, allow_hyphen_values = true)]
pub content: Option<String>,With this setting clap takes whatever token follows
The trigger is a command with a missing value, for example an unquoted empty shell variable ( Recommendation: keep 2. The harness guard does not check what the daemon at the socket serves if (home === (process.env.HOME ?? "") || socket.startsWith(`${process.env.HOME ?? ""}/.nodespace/`)) {
throw new Error("Refusing to run against the user's own NodeSpace: every run writes tasks and skills.");
}
The cost of a miss is higher here than in the other evals: the run creates projects, tasks and a skill, edits them, and then hands an agent with unrestricted
Recommendation: export 3. The distractor task is not restored between runs, so a later run can pass for the wrong reason The scenario's test of queue narrowing depends on the Gadget project's Recommendation: keep the distractor's id in the fixture and have 🟢 Suggestions4. A stale The port is fixed (4733), the server's output is discarded, startup is a fixed 8 second sleep, and neither the server's exit nor a 5. Setup writes are unchecked The 6. The fixture remote points at a real host
7. Fit with the
8. If Nitpicks
What was checked and found sound
RecommendationREQUEST CHANGES, for findings 1 and 2 (finding 3 is worth folding in with them). The fixes themselves are right and the PR is a clear improvement; the two requested changes are each a few lines plus a test. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressed (commit b99e4ab)All eight findings are addressed; none skipped. 1. 2. The harness guard. 3. The distractor task. It is now created for each run, cancelled in 4. OpenCode server. The run refuses to start when something already listens on the port, polls the port instead of sleeping, fails when 5. Setup writes. Every fixture and seed write goes through 6. Fixture remote. 7. Conventions. 8. Dead Claude Code session. A turn is rejected as soon as Nit on the test comment: taken. The two POSIX-quoting and duplicated-helper nits are left as they are, for the reasons the review gives. Verification
Re-Review DecisionDecision: RE-REVIEW NEEDED Rationale: Finding 1 changed argument parsing on a write path, and finding 2 replaced the guard that keeps a run out of live data. Both are small, but both are the kind of change a second read should confirm. |
Pragmatic Code Review: PR #3740Review Type: Re-Review (commit Previous Review Summary
Checks run on this commit: Earlier findings, judged against the code
Code Review Findings🟢 Suggestion1. The early-exit rejection only fires for the first prompt Each Confirmed with a small copy of this structure: prompt one answered, process exits during prompt two, and prompt two is rejected only by its timer, with the "not answered in time" message. The effect is the old behaviour for prompts after the first (a wait, then the timeout error), not a wrong result, so this does not block. The first prompt, where a sign-in or flag failure shows up, is covered. Recommendation: register one listener, outside const pending: { answer: ((text: string) => void) | null; fail: ((err: Error) => void) | null } = { answer: null, fail: null };
void child.exited.then(code => {
const fail = pending.fail;
pending.answer = pending.fail = null;
fail?.(new Error(`claude exited with ${code} before answering`));
});with 2.
This needs both a missing content value and the Recommendation: let the check stop at an Nitpicks
What was checked and found sound
RecommendationAPPROVE. All eight findings are addressed, the two that mattered (the write-path parse and the live-data guard) are closed and tested, and the guard fails closed. The two new findings are small, confined to a missing-value spelling and to eval tooling, and can be folded in or left. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Re-review addressed (commit a06a403)Both suggestions are taken.
Not changed, with reasons:
Checks: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The re-review approved. These two changes are each a few lines, in the direction the reviewer specified, and the parser change is covered by the extended test. |
… project's queue filter; add the harness scenario (refs #3721) The tick command the implementing procedure hands every agent, node update --content "- [x] ...", was rejected by the argument parser. The Claude Code plugin and the shared Pi/OpenCode session named the checkout's project but gave no way to run a queue for it alone, so the next ready task could be another project's. scripts/eval/harness runs one scripted session per harness and records what the agent received. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arness scenario ask the daemon what it serves - --content takes a value that begins with a dash, so a missing value let it swallow the next flag (--content --dry-run wrote instead of previewing). A value that is only a flag's name is refused. - The scenario asks the daemon which database it serves and refuses the user's own, with links resolved, through the existing preflight reader. - The other project's task is made for each run and its status logged, so a run cannot pass because an earlier session took it. - Setup writes are checked; the fixture remote cannot be pushed to; an OpenCode server left behind, a failed run and a session that exits early are reported; exit codes follow the neighbouring scripts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…listener for the Claude Code session - --content --version=3 was still taken as content. A one-word value whose name before the = is a flag's is refused too. - The scenario's Claude Code driver registered an exit listener per prompt, and the first one consumed the rejection meant for a later prompt. One listener now fails whichever prompt is in flight. Co-Authored-By: Claude Opus 5.5 <[email protected]>
a06a403 to
0c8b73d
Compare
Refs #3721. The issue stays open: Codex, Pi and Antigravity need an account before a session can be run in them.
What this changes
nodespace node createandnode updateaccept--contentthat starts with a dash. The tick command the "Implementing a Task" procedure hands every agent,nodespace node update <checkbox-id> --content "- [x] ...", was rejected by the argument parser (unexpected argument '- ' found). Every session run before this fix hit it.references/cli.mdis regenerated for the changed help text.query run "Ready tasks"returned whichever project's task was most urgent. The section now carries the--filtersvalue with the project's id. An id that is not an id's shape is left out, because the line sits outside the graph-data marker.scripts/eval/harness/holds the scenario this was found with: one scripted session per harness against an isolated daemon, with the graph changed twice from outside.run.ts <claude-code|claude-code-block|opencode>runs it, andtrace.tsprints a session's log one line per prompt, command and answer.How it was verified
bun run test:changedpasses (skill package, generated-TypeScript and node-types drift checks, Rust workspace).highestpriority task in the same queue, and ticked checklist items with the command as the procedure spells it. Before the fix, the same Claude Code session got the other project's task from its first queue run.The per-harness results table is on the issue.
🤖 Generated with Claude Code