Skip to content

request_run: a bare-name miss names the same-name file one directory over - #750

Merged
dp-web4 merged 1 commit into
mainfrom
claude/request-run-absence-names-notes
Nov 17, 2026
Merged

dp-web4 merged 1 commit into
mainfrom
claude/request-run-absence-names-notes

Conversation

@dp-web4

@dp-web4 dp-web4 commented Nov 17, 2026

Copy link
Copy Markdown
Owner

What

request_run on a path that doesn't exist now checks _same_name_elsewhere (the helper memory_read/memory_edit already use) and, if a same-name file exists one directory over, names it with the exact request_run {"path": ...} to send. Several matches are listed neutrally. A true absence reads as before.

Why (measured)

2026-11-17 04:55Z, cbp-being beat at heartbeat ts 04:55:01:

  • previous beat (04:52) read notes/mechanism-training-numpy.py fine
  • this beat: request_run mechanism-training-numpy.py → "nothing to run: ... does not exist" (no hint)
  • tried mechanism_training_numpy.py twice, listed home entries 1-10 of 464, tried search (refused: home)
  • journaled + todo'd "file is missing from home directory ... recreate", and said so to the seat (seq 16372)

memory_read's same miss in the same beat history pointed it to notes/ and it followed. request_run was the one door left that turned a path slip into a "missing file" belief (same shape as [[bare absence overrides own record]], #727 covers the retired-copy variant on run; no overlap with this branch).

Tests

  • test_request_run_names_same_name_file.py: 3 tests. Control on main: 2 fail (the hint tests), 1 passes (true absence).
  • 399 pass across test_hestia_dispatch, test_reference_f1a, request_run_* suites.

🤖 Generated with Claude Code

…over

memory_read and memory_edit already answer a miss with "a file with that
name DOES exist at notes/X" (_same_name_elsewhere). request_run said only
"does not exist". 2026-11-17 04:55Z cbp-being asked request_run for
mechanism-training-numpy.py (lives in notes/; its previous beat read it
there), got the bare absence, tried an underscore spelling, paged 10 of
464 home entries, and told the seat the file was missing and might need
recreating. Same helper, same neutral listing when several match.

Tests: 3 new (main control: 2 fail, 1 passes); 399 pass across
dispatch, reference_f1a and request_run suites.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dp-web4

dp-web4 commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Second measured case, same day, while this PR is still open (2026-11-17, cbp-being beat at 09:10:27Z):

  • scratch/verify_experiment2_linear.py exists (2682 B, sha 6c8996809342, unchanged since 08:58Z). The being had already requested it by its full path at seq 16526.
  • In this beat it sent request_run {"path": "verify_experiment2_linear.py"} and got "nothing to run: ... does not exist ... This is an absence, not a refusal" with no hint.
  • Then it ran memory_read scratch (1853 entries; find is ignored on a directory), search (refused: home), and walked into a nested SAGE/sage/instances/cbp-qwen3.8-distill-4b/ dir inside its own instance.
  • In reflect it stored remember #8215 "verify_experiment2_linear.py does not exist on the host" and told the seat so (seq 16532).

Part of the cause was the seat (me). My say 16531 named the file by its bare name twice ("3 memory_edit calls for verify_experiment2_linear.py ... then request_run"), and the being reused that spelling. Seats should give the full path in every mention. With this PR, the same slip would have come back as a runnable request_run {"path": "scratch/verify_experiment2_linear.py"} instead of a stored false absence.

Side observation, not followed up: the instance home has a nested SAGE/sage/instances/cbp-qwen3.8-distill-4b/ directory chain.

@dp-web4 dp-web4 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOVA exact-head review: GO. The new path hint is returned only after request_run verifies that the requested file is absent, and it uses the already-existing same-name discovery helper shared with memory operations. It never dispatches a guessed path, distinguishes one candidate from several, keeps real absence unchanged, and the tests explicitly check that nothing was sent to the seat. Hosted syntax-gate green; author reports 399 focused tests. This improves truthfulness without expanding execution authority.

@dp-web4
dp-web4 merged commit 3ac0a52 into main Nov 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant