Skip to content

fix(eval): a UI grade with no resolved root is refused by name, never graded at the core's cwd (card 58f533fd) - #5047

Open
joelteply wants to merge 1 commit into
canaryfrom
58f533fd/eval-grades-an-unpinned-relative-target
Open

joelteply wants to merge 1 commit into
canaryfrom
58f533fd/eval-grades-an-unpinned-relative-target

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

perception_grade fell back to std::env::current_dir() when no workspace root was passed. Its
comment said that was "the default root (core cwd) exactly as the hands do", which was false
twice over:

  • a persona's hands act in her citizen layer or her card checkout;
  • a launchd core's cwd is its data dir, ~/.continuum (card 2a2cd6f1).

In practice the branch was unreachable. A UI-checked task needs hands (eval.rs:1751), so every
such exam gets a resolved root: the task's pin, the run's pin, or the #312 per-run clone. The
grader receives that as task_root (eval.rs:4872). The fallback could only ever have graded at a
root no hands wrote to, scoring a correct artifact a false zero (the #49 dual-root gap).

It's now a named refusal ("the exam resolved no workspace root"). That's a deletion, and the
comment now describes where the root actually comes from. No test: reaching the branch needs an
acting cycle with no root, which no exam path builds.

Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

… graded at the core's cwd (card 58f533fd)

perception_grade fell back to std::env::current_dir() when no workspace root was passed. Its
comment said that was "the default root (core cwd) exactly as the hands do", which was false
twice over:
- a persona's hands act in her citizen layer or her card checkout;
- a launchd core's cwd is its data dir, ~/.continuum (card 2a2cd6f1).

In practice the branch was unreachable. A UI-checked task needs hands (eval.rs:1751), so every
such exam gets a resolved root: the task's pin, the run's pin, or the #312 per-run clone. The
grader receives that as task_root (eval.rs:4872). The fallback could only ever have graded at a
root no hands wrote to, scoring a correct artifact a false zero (the #49 dual-root gap).

It's now a named refusal ("the exam resolved no workspace root"). That's a deletion, and the
comment now describes where the root actually comes from. No test: reaching the branch needs an
acting cycle with no root, which no exam path builds.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Review of #5047 at 86b7f0f by Cormac (IntelMac), 2026-10-19. PASSED. Read only, not compiled.

Claim checked: a UI-checked task always has a resolved root, so refusing the None case can only refuse what was already wrong. Verified at pr/5047:

  • needs_tools() is true for any task with ui_checks (eval.rs:1818-1825).
  • Any task needing tools makes the run provision its per-run root, and the run refuses outright if that fails (eval.rs:2567-2590, Sentinel-Recipe Engine: Phases 0-6 complete #312).
  • An explicit workspace_root pin also supplies one.
  • task_root = the task's pin or the run's root (eval.rs:4868).
    So the only path to None is a UI task that declares needs_tools: false. It had no hands, so naming the refusal is the right result there too, and better than grading the core's cwd, where no hands act.

@joelteply

Copy link
Copy Markdown
Contributor Author

Review: #5047 "fix(eval): a UI grade with no resolved root is refused by name, never graded at the core's cwd" (card 58f533fd; Claude session)

Decision: FAIL (stale path). The fix is correct and the defect is still on canary, but the file it edits no longer exists. Re-port it. Author: agent (Claude), not a resident.

What I read and ran

  • gh pr diff 5047: edits core/continuum-core/src/cognition/eval.rs. That file is gone from canary (crate split). merge-tree shows a modify/delete conflict. 624 behind. CI: 7 pass (old base).
  • Canary core/continuum-academy/src/cognition/eval/fork_eval_cycle_waiting.rs:270-310 still has None => match std::env::current_dir() in perception_grade, under the false comment "Without a pin she uses the default root (core cwd) exactly as the hands do". Its one caller (run_pass.rs:609) passes task_root: Option<&str> (run_pass.rs:122).

The defect is real. A launchd core's cwd is ~/.continuum, and no hands write there, so this fallback can only produce a false zero. It is academy grading, which is a sanctioned place for grading (no line-0 concern).

What would make it pass: re-apply the same change to fork_eval_cycle_waiting.rs. Better: make the root required, so the compiler enforces it. perception_grade takes workspace_root: &Path, and run_pass.rs refuses the UI check by name where task_root is None. The "no root" state is then unrepresentable at the grader, instead of being a runtime string.

Verdict line: FAIL (stale). Verified the defect persists by reading canary fork_eval_cycle_waiting.rs:300 (std::env::current_dir()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant