Skip to content

The reopen verb her view names is on her tool list: tool/output declares itself native - #5630

Closed
joelteply wants to merge 6 commits into
canaryfrom
fable/vocabulary-vs-surface
Closed

joelteply wants to merge 6 commits into
canaryfrom
fable/vocabulary-vs-surface

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

How it serves the minds: her view folds older results and tells her to reopen them with tool/output, but that verb was never offered, so residents re-read files instead of reopening. Order of work line 2 (a mind's context as an epoch: a fold must stay reachable, plan goal 7).

Change

  • tool/output declares NATIVE = true in its own file. It reaches her hands through the existing tool/ subtree, and a declared recipe keeps it beside her discovery pair and focus verbs.
  • The registry test's names.len() < 52 cap (bumped by hand eight times) is deleted. The one allocation prices the surface: ToolSurface::select_granted refuses schemas past the grant, with core hands as the floor. tool/output joins the reachability contract.

+19 / -26 lines.

Measured (before)

M5, build b7879d8, captures 2026-10-31 03:00–04:00Z: Aiko 19 file reads, 0 reopens; the hour's tool calls had no tool/output at all (read_file 17, bash 15, work_create 10, grep 8, ...).

Prediction (after deploy, the hour read)

  • tool/output calls above 0 per resident-hour.
  • code/read calls of a path already read in the same epoch fall.
  • Hands schema grows by one spec (one-time prefix change at the deploy's restart, no per-act churn).

Falsified if reopens stay at 0, or reads do not fall.

Tests

tool_surface tests pin tool/output in her hands and in a declared code/** recipe; the registry test pins it in the native set.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

@joelteply

Copy link
Copy Markdown
Contributor Author

Review of #5630 at exact head 92dd889 (Cormac): right change. One scope fix, then I approve.

Verified by reading pr5630, 2026-10-31T04:05Z:

  • Deleting the count cap is justified. ToolSurface::select_granted (tool_surface.rs:122-135) returns Err(tokens) for any selection over grant_tokens, with core hands as the floor, so names.len() < 52 decided nothing the allocation doesn't.
  • tool/output becomes native (const NATIVE: bool = true), and both tests pin it: the declared-subtree selection and the reachability list.

Scope fix: the room filter is now ["commands/", "focus/", "tool/"].iter().any(|own| name.starts_with(own)). Her mind's verb here is tool/output, but the prefix grants the whole tool/ subtree. tool/conformance and tool/usage exist; neither is native today, so only tool/output passes. If either is ever made native, though, it would ride every room's surface without anyone declaring it. Please match the verb exactly (name == "tool/output").

The longer-term form ties in with my invariant-4 work (card dcf95bce): commands now declare CommandSpec::EFFECT, and tool/output's declaration as Reopens is my follow-up card 7d7b1ace. Once that lands, the filter can select "the reopen verb" by its declared effect instead of by name. I'll do that migration in 7d7b1ace, so nothing needs to change here beyond the exact match.

I'll approve the head with the exact match once CI is green there.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE #5630 source at exact head c2897ad (Cormac). git diff 92dd8899c c2897adb1 changes one line: the room filter now admits commands/, focus/ and exactly name == "tool/output", so no tool/ subtree rides every room. The rest is as I verified at 92dd889 (select_granted refuses past the grant, so the count cap was redundant; both tests pin tool/output). CI is the merge gate at this head (restarted, pending at 04:07Z).

@joelteply
joelteply marked this pull request as draft October 31, 2026 04:17
@github-actions github-actions Bot added size: L and removed size: S labels Oct 31, 2026
@joelteply

Copy link
Copy Markdown
Contributor Author

Local receipts (M5, 2026-10-31 04:50Z–05:06Z, --features metal): spill 15, tool_surface 17, tool::output 8 and persona_tools 7 tests passed at c6b9540. self_sized is clean in every touched file. Still blocked on writes_outside_a_class: spill.rs's two opens need ONE-BUDGET row 5's class handle (asked of Codex).

joelteply and others added 6 commits October 31, 2026 17:11
…res itself native

Her view folds older results and names `tool/output` as the way back to each whole
(perception.rs pointers, the actions fold, the open-views banner), but the command never
declared NATIVE, so no surface ever offered it. On the M5 (build b7879d8, 2026-10-31
03:00Z hour) Aiko made 19 file reads and 0 reopens; the residents re-read instead.

- tool/output declares `NATIVE = true` in its own file; it lands in her hands through the
  existing `tool/` subtree, and an activity's declared recipe keeps it beside her
  discovery pair and focus verbs (her own mind's verbs, never a room's rule).
- The registry test's `names.len() < 52` cap is deleted: the one allocation prices the
  surface (`select_granted` refuses past the grant, core hands as the floor), so the
  hand-bumped count decided nothing. `tool/output` joins the reachability contract.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…action, match cap, context default or tail size; spill's readers lose their budget

HER-TOOLS T1 (the view is the only sizer: `fit_newest_result` already shows the newest result
whole, at summary or as a pointer with its handle).

- tool/output: DEFAULT_CONTEXT_LINES, DEFAULT_MAX_MATCHES and ContextBudget::render_slice_chars
  deleted; context lines and max matches are her selection only (none unless asked); with no
  selector she gets the whole output; byteLength omitted reads to the end.
- spill: read_extent/investigate_file take no budget; the 80-line default tail and the per-line
  scan allowance are gone (every line is read whole); the 2,000-char pretty threshold becomes a
  shape rule (pretty when the value holds a collection); result_scalars reads the first line only
  (the second-line read served pre-head-cut text: back-compat, deleted); the content-address
  width is named for what it is (collision space).

Blocked: spill.rs still opens files outside a disk class (writes_outside_a_class, touched-file
rule); it lands once ONE-BUDGET row 5's class handle exists.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply force-pushed the fable/vocabulary-vs-surface branch from c6b9540 to 3ca8095 Compare October 31, 2026 22:11
@joelteply

Copy link
Copy Markdown
Contributor Author

Superseded: #5807 made tool/output native and rewrote spill/tool_output; the leftover (no budget in spill) conflicts with ONE-ACT 6b 'results only through the codec'. Any remainder goes to 6b.

Closed in the 2026-11-07 PR sweep (Joel: 'get it solid with these PRs'); evidence in the sweep's triage table.

@joelteply joelteply closed this Nov 7, 2026
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