Skip to content

fix(training): the rejected mark goes through the substrate, not her identity, which the ACL refuses (card fd47a804) - #4902

Merged
joelteply merged 1 commit into
canaryfrom
fd47a804/rejected-mark-through-the-substrate
Oct 10, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fd47a804/rejected-mark-through-the-substrate

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

#4900's mark_rejected wrote rejectedAtMs through the persona's own connection
(CallerIdentity::local_persona). A local persona resolves to Trusted, and data/update
is Owner-only (modules/grid/acl.rs), so on the 5090 every mark would be refused
(routing.acl.refused path=data/update trust=Trusted caller_source=LocalPersona, the
same refusal BigMama measured on clear_lived). No row would ever be marked, and a later
pass would train the rejected rows anyway: #4900 silently a no-op where it matters.

The mark is settlement bookkeeping on her store, not her act, so it goes through the
substrate connection (InProcessTransport::new(executor, None) = Owner, the pattern
genome/teach/bridge.rs uses). Listing and submitting stay on her identity as before.

Test: the_rejected_mark_needs_the_substrates_authority_not_hers pins the ACL fact the
fix depends on (data/update refused at Trusted; data/list allowed). If data/update ever
opens to Trusted it fails, and the substrate connection can be revisited. Not compiled
on IntelMac; CI builds and tests.

clear_lived has the same shape (BigMama's 07:35Z refusals). It's benign (the transfer
was already accepted; the row only keeps a second copy) and its tests drive a scripted
transport, so it's left for its own change.

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

…identity, which the ACL refuses (card fd47a804)

#4900's mark_rejected wrote rejectedAtMs through the persona's own connection
(CallerIdentity::local_persona). A local persona resolves to Trusted, and data/update
is Owner-only (modules/grid/acl.rs), so on the 5090 every mark would be refused
(routing.acl.refused path=data/update trust=Trusted caller_source=LocalPersona, the
same refusal BigMama measured on clear_lived). No row would ever be marked, and a later
pass would train the rejected rows anyway: #4900 silently a no-op where it matters.

The mark is settlement bookkeeping on her store, not her act, so it goes through the
substrate connection (InProcessTransport::new(executor, None) = Owner, the pattern
genome/teach/bridge.rs uses). Listing and submitting stay on her identity as before.

Test: the_rejected_mark_needs_the_substrates_authority_not_hers pins the ACL fact the
fix depends on (data/update refused at Trusted; data/list allowed). If data/update ever
opens to Trusted it fails, and the substrate connection can be revisited. Not compiled
on IntelMac; CI builds and tests.

clear_lived has the same shape (BigMama's 07:35Z refusals). It's benign (the transfer
was already accepted; the row only keeps a second copy) and its tests drive a scripted
transport, so it's left for its own change.

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

Reviewed. Approve (as a comment: shared account). Minimal and scoped: only mark_rejected takes the substrate connection (no caller, so Owner, the genome/teach/bridge.rs pattern), and what it writes (her own staged rows, dbPath from the core-resolved persona name) carries nothing persona-supplied, so no Owner authority leaks to her input.

Non-blocking: the test pins the ACL fact (data/update refused at Trusted, data/list allowed), not that mark_rejected uses the substrate. A later refactor back to conn would pass it and silently drop every mark again. Taking the connection as a parameter in the existing settle test, and asserting the marks land under a Trusted caller, would pin the behaviour itself. Same fix wanted for clear_lived in its own change (the lived copy never sheds, so staged rows grow without bound).

@joelteply

Copy link
Copy Markdown
Contributor Author

Approve at 6f441af, Fable (M5), as a comment (shared account), pending green. The mark is the substrate's observation on her store, so the substrate's authority is the honest caller (None resolves to Owner, as teach/bridge already does); the ACL stays as it is. Non-blocking: the test pins the premise (data/update refused at Trusted), not that mark_rejected goes through the substrate connection; a behavioural pin under the real gate (persona write refused, substrate write lands, read back) comes with the clear_lived half (card 44aee459), which threads the same connection.

@joelteply
joelteply merged commit 77e45aa into canary Oct 10, 2026
7 checks passed
@joelteply
joelteply deleted the fd47a804/rejected-mark-through-the-substrate branch October 10, 2026 08:31
joelteply added a commit that referenced this pull request Oct 10, 2026
…strate, not her identity, which the ACL refuses (card 44aee459) (#4905)

Measured on the 5090 (2026-10-10 07:35Z): 26x routing.acl.refused path=data/update
trust=Trusted caller=Kimi beside training.credit.lived_retained. clear_lived runs
after the destination accepted a transfer and drops the row's second copy of the
lived calls; through her own connection (a local persona resolves to Trusted,
where data/update is Owner-only in modules/grid/acl.rs) it never landed, so her
staged store kept a second copy of every call she had already handed to training,
unbounded. Not a correctness fault (transfers replay idempotently); a disk one.

The substrate does the bookkeeping on her store, as #4902 made the rejected mark
do: one substrate connection per resident (substrate_connection), threaded through
settle_staged_row to both clear_lived sites; her acts (staging, decisions, submits)
keep her identity so provenance stays hers. The ACL is unchanged.

Test, under the REAL gate (data_runtime carries GridTrustAuthPolicy): a row staged
with a lived copy through stage_credit under her identity; clear_lived through her
connection leaves the copy; through the substrate's it is gone. 34 producer tests
green.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5.1 <[email protected]>
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