Skip to content

Commit feacef4

Browse files
fix(examples): worktree-proximity provenance accepts the runtime's 'transcript' lineage resolution
1 parent abeadd5 commit feacef4

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎examples/worktree-proximity/README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ the runtime's `outside-invocation` error outside a request.
7575

7676
Every identity claim records where it came from. `native` is read from the
7777
host envelope (or a `request.lineage` the runtime resolved natively),
78-
`registry` and `inferred` are the runtime lineage registry's own resolutions,
79-
and `derived` is this application's fallback:
78+
`registry`, `transcript` and `inferred` are the runtime lineage registry's own
79+
resolutions (`transcript` is read from the host's own rollout file), and
80+
`derived` is this application's fallback:
8081

8182
- `session/start` observes `session:<root>` as the root actor, where the root
8283
is `(await agent()).lineage.root` when the runtime resolved a lineage and the

‎examples/worktree-proximity/src/state.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ import { z } from 'zod';
44
const nonEmpty = z.string().trim().min(1);
55
/**
66
* Where an identity claim came from: `native` is read straight from the host
7-
* envelope (or a `request.lineage` the runtime resolved natively), `registry`
8-
* and `inferred` are the runtime lineage registry's own resolutions, and
7+
* envelope (or a `request.lineage` the runtime resolved natively), `registry`,
8+
* `transcript` and `inferred` are the runtime lineage registry's own
9+
* resolutions (`transcript` read from the host's own rollout file), and
910
* `derived` is this application's fallback (`worktree:<root>`).
1011
*/
11-
const provenance = z.enum(['native', 'registry', 'inferred', 'derived']);
12+
const provenance = z.enum(['native', 'registry', 'transcript', 'inferred', 'derived']);
1213

1314
export type IdentityProvenance = z.output<typeof provenance>;
1415

0 commit comments

Comments
 (0)