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

2026-11-29

Meta Vens
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
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>
2026-11-29 00:55:40 +01:00
Meta Vens
Thing 2.0 cut 7a h2: a terminal invocation is kept one timeout, then forgotten (terminal-invocations-unbounded)
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>
2026-11-29 00:55:39 +01:00
Meta Vens
Thing 2.0 cut 7a h2: node_states is no longer public API; confirm, confirming, resume and activate are documented host API (public-test-seams)
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>
2026-11-29 00:55:38 +01:00
Meta Vens
Thing 2.0 cut 7a h2: a resume before its surface binds is held, not lost (resume-silent-before-bind)
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>
2026-11-29 00:55:38 +01:00
Meta Vens
Thing 2.0 cut 7a h2: every refused activation is a diagnostic in the frame output (silent-refusals)
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>
2026-11-29 00:55:37 +01:00
Meta Vens
Thing 2.0 cut 7a h2: a resumed confirm-gated command enters Confirming like an activation (resume-skips-confirm)
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>
2026-11-29 00:55:36 +01:00
Meta Vens
Thing 2.0 cut 7a h2: a change value is validated before it is drafted (unvalidated-change-values)
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>
2026-11-29 00:55:35 +01:00
Meta Vens
Thing 2.0 cut 7a h2: a completion clears only the drafts it captured, where still held (clear-drafts-clobbers-newer-edit)
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>
2026-11-29 00:55:34 +01:00
Meta Vens
Thing 2.0 cut 7a h2: delete Core::drafts_mut, Commands own the one drafts table (drafts-mut-second-writer)
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>
2026-11-29 00:55:33 +01:00

2026-11-28

Meta Vens
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 23:33:20 +01:00
Meta Vens
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:57:41 +01:00
Meta Vens
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 22:00:56 +01:00
Meta Vens
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
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>
2026-11-28 21:01:16 +01:00