Skip to content

PR CI builds the examples a change touches; continuum-context's own tests run - #5613

Merged
joelteply merged 1 commit into
canaryfrom
fable/ci-touched-examples
Oct 30, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fable/ci-touched-examples

Conversation

@joelteply

@joelteply joelteply commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

It serves the minds by testing the one codec their context goes through. Plan line 1 (the build loop), the review-accountability rules.

Two gaps, found by Cormac's #5611 review (E0425 in examples/replay/sediment.rs, which CI never compiled):

  1. Examples never compile in PR CI. The lib build compiles no example, so replay --acts: an act inspector, one row per resident request joined to the engine log and her view probes #5511 and Every element she perceives carries its cause (MIND-CONTEXT causality, step 1: the type and every source's causes) #5611 both reached review with a broken one.
  2. continuum-context's own tests never run in CI. It sat in [workspace.metadata.ci] pending ("tests exist but no job selects them yet"), and it's the one codec every mind's context goes through.

Change:

  • One selector, selectTargets, for a crate's non-lib targets whose own source a change touches:
    • bins: as before (card 67bf5d81);
    • examples: a change to examples/<name>.rs or anything under examples/<name>/ selects that example, declared or implicit. Each selected example gets cargo check --example, and one declaring test = true (replay) also gets cargo test --example. An example whose required-features the crate's test build lacks is skipped, since cargo refuses to build it.
  • The workflow gains one step beside the bins step. It runs only when examples are selected, so no other PR pays for it.
  • continuum-context leaves pending (debt that only shrinks), so the generic lib-test step selects it. It's a leaf crate (serde only), so a kernel or host change doesn't select it. The test's floor list says so.

Measured

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ests; continuum-context's own tests run (it leaves the pending list)

One selector (selectTargets) for a crate's non-lib targets whose own source a change touches:
bins as before (card 67bf5d81), and examples, named by examples/<name>.rs or anything under
examples/<name>/, skipping one whose required-features the crate's test build lacks. #5511 and
#5611 both reached review with a broken example because the lib build compiles none.

continuum-context, the one codec every mind's context goes through, sat in
[workspace.metadata.ci] pending: its lib tests never ran in CI. Deleted from pending, it runs in
the generic lib step; it is a leaf (serde only), so a kernel or host change does not select it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit cc3369d into canary Oct 30, 2026
48 checks passed
@joelteply
joelteply deleted the fable/ci-touched-examples branch October 30, 2026 23:08
joelteply added a commit that referenced this pull request Oct 31, 2026
…, step 1: the type and every source's causes) (#5611)

* WIP causal items: continuum-context gains the cause module (ElementId, Cause {Of, Root, Unrecorded}, Origin, Content {Hashed, Absent}, ContentHash); Item carries id/cause/content; StoredWhole carries its hash; Block exposes text() with chars() derived

Construction sites follow source by source (MIND-CONTEXT 'causality is in the type', step 1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Every element she perceives carries its cause: items in her view have a producer-named occurrence id, a typed cause and a content hash, from every source

MIND-CONTEXT "causality is in the type", step 1 (the type and every source's causes;
invariants 1-3 in the view follow).

- continuum-context: `cause` (ElementId, Cause {Of, Root(Origin), Unrecorded},
  Origin {External, ActivityStart}, Content {Hashed, Absent}, ContentHash);
  Item gains id/cause/content and `Item::whole` requires them; StoredWhole carries its
  Content; Block exposes text() with chars() derived from it.
- Her sources supply real causes (context_streams):
  - actions: an act follows the act before it in the same room, the first is its
    activity's start; ids from (persona, seq), the producer's stable identity;
    ActRendering becomes a typed struct (seq, room, levels, stored, resident).
  - thoughts: one interior chain; open views: the act that last read the view
    (ViewLine carries touched_seq); notices: external origins, an [ended] notice follows
    its notice; conversation: the room's sequence, the first turn external;
    grounding blocks and banners: standing activity roots, ids namespaced by source.
- Captures and fixtures have no recorded causes: Cause::Unrecorded, never a guessed link.
- A result spilled before hashes were kept is Content::Absent, never a minted hash
  (recording the hash at spill is the ActionRecord change, with Codex).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Causal items: one id derivation, ElementId::of(identity parts), owned by the type; the source fixtures carry their persona

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Causal items, Cormac's #5611 blockers: an act's content hashes its raw result bytes (never the labelled rendering with its own seq), ElementId::of length-prefixes each part, the replay example's tests name crate::captured, and Item's fields are private (constructors hash, builders add levels, no way to replace a hashed whole)

validate.rs's enrich replaced item.full after Item::whole had hashed it, so its content was
already stale; it now rebuilds the item through Item::whole.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Causal items: the room-board test and the replay examples read Item through its getters

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

* Causal items: the replay's ledger lines read Item's key through its getter (caught by #5613's example step)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

---------

Co-authored-by: Claude Opus 5.5 <[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