Thing 2.0 cut 7a: commands (activate, Drafts, minted invocations, lifecycle, effects as data) #25

Merged
eureka merged 13 commits from hands/thing2-commands-dispatch into main 2026-11-29 00:35:40 +00:00
Owner

Cut thing2:cut_spec:cut-commands-dispatch.r2.

thing_core::command owns minting, the invocation lifecycle (timeouts, Malformed, TimedOut), result validation, closed host effects and the Confirming state. thing_core::input::Drafts is the one table of uncommitted input values. Core::frame runs the command step after the Binder's and returns outbound invocations and effects; Config gains invocation_timeout_ms and client; Ports gains IdSource. Resolve refuses a capture naming no input (CaptureUndeclared). BoundTree::index replaces render's private index; Instance::scope_prefix is the one instance id scheme.

Tests: 345 pass on Yggdrasil (318 existing, 27 new). Mutation results are in the cut report.

🤖 Generated with Claude Code

Cut `thing2:cut_spec:cut-commands-dispatch.r2`. thing_core::command owns minting, the invocation lifecycle (timeouts, Malformed, TimedOut), result validation, closed host effects and the Confirming state. thing_core::input::Drafts is the one table of uncommitted input values. Core::frame runs the command step after the Binder's and returns outbound invocations and effects; Config gains invocation_timeout_ms and client; Ports gains IdSource. Resolve refuses a capture naming no input (CaptureUndeclared). BoundTree::index replaces render's private index; Instance::scope_prefix is the one instance id scheme. Tests: 345 pass on Yggdrasil (318 existing, 27 new). Mutation results are in the cut report. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Thing 2.0 cut 7a: commands (one activate primitive, Drafts, minted invocations, result lifecycle, effects as data)
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 2m43s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 4m25s
f86a4836fc
thing_core::command owns invocation minting, the lifecycle (Issued, Pending, Completed,
Denied, Failed, Malformed, TimedOut), result validation, timeouts and the confirm state.
thing_core::input::Drafts is the one owner of uncommitted input values. Core::frame runs
the step after the Binder's and returns outbound invocations and host effects; Config gains
the invocation timeout and client kind; Ports gains an IdSource. Resolve refuses a capture
that names no input. BoundTree::index replaces render's private index and Instance::scope_prefix
is the one instance id scheme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thing 2.0 cut 7a: tests for each command source kind and the wrong-key result
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 4m16s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 3m4s
bf7534859b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thing 2.0 cut 7a: tests that kill the surviving mutants (forget, locate_source, id sources, frame confirm and row removal)
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 5m35s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 7m12s
e920c6f766
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thing 2.0 cut 7a: a url with a space or a control character is refused
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 4m9s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 3m58s
26501b0340
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests write drafts only through real change inputs and read them through the
invocations they capture. Core tests that needed a text draft use what the node
is bound to: Core has no text-edit route yet.

Steward decision 1 of the h2 fix brief.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 2 of the h2 fix brief. Drafts::clear becomes clear_held: a
captured draft is dropped only while the table still holds the captured value,
so an edit made after the press survives the result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 3 of the h2 fix brief. A non-finite slider value is refused,
a finite one is clamped to the slider's range, and a select choice naming no
declared option is refused. A refused change is not drafted and answers with
Code::ActivationRefused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 5 of the h2 fix brief. activate and resume meet the
confirmation in one place, Commands::begin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 7 of the h2 fix brief. Kind mismatch, unknown node, blocked
while confirming and a refused change answer Code::ActivationRefused from
Commands::activate; Core queues what activate and resume say and the next
frame's diagnostics carry it out, the channel the host already reads. A Param
command cannot reach a tree (resolve refuses the document, tested), so it is
the same refusal as a kind mismatch, not a separate branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 4 of the h2 fix brief. Core holds the Resume and runs it in
the frame that first binds its surface, with that frame's now and ids, so it
follows the normal lifecycle and timeout; leaving for another surface first
drops it with an ActivationRefused diagnostic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 6 of the h2 fix brief. Core::node_states had no consumer but
tests, and render does not read it yet, so it is deleted rather than kept
private; tests read state through frame output and Commands::view. activate,
confirm, confirming and resume carry docs naming the host as their caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Steward decision 8 of the h2 fix brief. Each invocation records when it went
terminal; apply and tick drop those a whole invocation timeout past that, and
a result arriving later is UnknownInvocation. Tested by advancing now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thing 2.0 cut 7a h2: pin the apply-before-tick order (apply-tick-order-unpinned)
All checks were successful
Portable Eve contracts and browser lowering / ubuntu-latest eve-browser-lowering (pull_request) Successful in 3m12s
Portable Eve contracts and browser lowering / ubuntu-latest eve-contracts (pull_request) Successful in 3m49s
7ac1366d0a
Steward decision 9 of the h2 fix brief. The frame already applied drained
results before tick; the order is now stated where it is decided and tested:
a result queued for the frame its deadline passes completes the invocation, no
InvocationTimedOut, no mark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka merged commit 668ec478cd into main 2026-11-29 00:35:40 +00:00
eureka deleted branch hands/thing2-commands-dispatch 2026-11-29 00:35:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Thing!25
No description provided.