Yichen Jiang
61d5cb9e41
fix(apiproxy): serve history events and projections from one log position
...
Review found two defects in the previous commit's ordering fix.
@pku-xht: `historyStateFor` copied the attached session's events, the handler
then awaited `presenterScopeFor`, and only then read the projection baseline
off the still-live Session. An append during that await served events cut at N
beside a baseline folded to N+1 — one response describing two moments. The
same restructure had also moved the baseline read outside the `try`, so a
failing snapshot escaped the structured `internal` error.
Both awaits now happen before the cut: `historySourceFor` resolves which
session serves the read, `presenterScopeFor` ensures the recorded composition,
and `historyCutOf` then reads events and baseline adjacently with nothing
between them. The whole sequence is back inside the try.
The invariant judged any scoped assembly with a chain of one as an unjoined
agent, which rejects a legitimate assembly in a standing preset key (that key
has no parent of its own). It now gates on `context.agent` — a scope-only read
is not an agent and is out of range by construction rather than by a premise
about who else calls `assemble` — and asks the roster's own
`composedPreset()` instead of introspecting chain length. The advisory warning
uses the same relation.
Also from review: the `2026-08-05-per-agent-tool-presentation` note still
described `presentAs` as per-agent, which standing mounts made false and this
branch's own rewording contradicts; the duplicated "process-wide unit table"
argument collapses to the Agent Note with pointers from the five copies; a
dead `.sort()` before `arrayContaining`; and change-history narration in the
tool-cordis README.
2026-08-11 10:45:15 +08:00
..
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 00:49:16 -07:00
2026-08-10 00:49:16 -07:00
2026-08-10 00:49:16 -07:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 21:32:13 +08:00
2026-08-10 21:32:13 +08:00
2026-08-10 21:32:13 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 01:21:12 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-10 21:32:13 +08:00
2026-08-10 21:32:13 +08:00
2026-08-10 21:32:13 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 01:21:12 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 21:05:58 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 01:56:29 +08:00
2026-08-08 01:56:29 +08:00
2026-08-08 01:56:29 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:33:14 +08:00
2026-08-06 14:37:56 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 16:53:23 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 21:11:09 +08:00
2026-08-10 21:11:09 +08:00
2026-08-10 21:11:09 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:02:16 +08:00
2026-08-10 16:23:05 +08:00
2026-08-10 16:23:05 +08:00
2026-08-10 16:23:05 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 03:20:17 +08:00
2026-08-07 16:49:20 +08:00
2026-08-09 03:20:17 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 20:09:06 +08:00
2026-08-10 20:09:06 +08:00
2026-08-10 20:09:06 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 15:35:02 +08:00
2026-08-09 16:39:34 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 11:33:14 +08:00
2026-08-07 22:04:04 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-10 16:34:20 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:11:00 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:11:00 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 12:50:43 +08:00
2026-08-07 16:43:59 +08:00
2026-08-10 12:50:43 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:11:00 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:11:00 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 16:53:23 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 12:50:43 +08:00
2026-08-07 16:43:59 +08:00
2026-08-10 12:50:43 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 22:47:28 +08:00
2026-08-10 22:47:28 +08:00
2026-08-10 22:47:28 +08:00
2026-08-09 14:33:57 +08:00
2026-08-09 14:33:57 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 14:33:57 +08:00
2026-08-09 14:33:57 +08:00
2026-08-10 16:23:05 +08:00
2026-08-10 16:23:05 +08:00
2026-08-10 16:23:05 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:02:16 +08:00
2026-08-06 06:29:06 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 16:59:52 +08:00
2026-08-09 16:34:25 +08:00
2026-08-09 16:59:52 +08:00
2026-08-09 22:58:10 +08:00
2026-08-09 22:58:10 +08:00
2026-08-09 22:58:10 +08:00
2026-08-09 23:19:14 +08:00
2026-08-09 23:19:14 +08:00
2026-08-09 23:19:14 +08:00
2026-08-10 18:02:11 +08:00
2026-08-10 18:02:11 +08:00
2026-08-10 18:02:11 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 16:53:23 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 17:43:53 +08:00
2026-08-09 17:43:53 +08:00
2026-08-09 17:43:53 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 16:57:56 +08:00
2026-08-10 16:57:56 +08:00
2026-08-10 16:57:56 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-10 11:26:37 +08:00
2026-08-10 11:26:37 +08:00
2026-08-10 11:26:37 +08:00
2026-08-09 11:02:16 +08:00
2026-08-06 00:21:34 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:02:16 +08:00
2026-08-05 17:00:48 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 21:10:59 +08:00
2026-08-09 11:02:16 +08:00
2026-08-06 16:27:27 +08:00
2026-08-09 11:02:16 +08:00
2026-08-11 10:45:15 +08:00
2026-08-11 10:45:15 +08:00
2026-08-11 10:45:15 +08:00
2026-08-09 22:59:34 +08:00
2026-08-09 22:59:34 +08:00
2026-08-09 22:59:34 +08:00
2026-08-09 11:02:16 +08:00
2026-08-05 23:26:39 -07:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:33:14 +08:00
2026-08-06 18:54:53 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 21:05:58 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-06 23:00:01 +08:00
2026-08-09 11:33:14 +08:00
2026-08-09 11:02:16 +08:00
2026-08-06 11:12:48 +08:00
2026-08-09 11:02:16 +08:00
2026-08-09 11:33:14 +08:00
2026-08-06 23:00:01 +08:00
2026-08-09 11:33:14 +08:00
2026-08-07 14:20:14 +08:00
2026-08-07 14:20:14 +08:00
2026-08-07 14:20:14 +08:00
2026-08-09 11:33:14 +08:00
2026-08-08 16:53:23 +08:00
2026-08-09 11:33:14 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-10 15:49:34 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-09 17:26:57 +08:00
2026-08-08 10:46:58 +08:00
2026-08-08 10:46:58 +08:00
2026-08-08 10:46:58 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 13:07:46 +08:00
2026-08-10 01:03:29 +08:00
2026-08-10 01:03:29 +08:00
2026-08-10 01:03:29 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:17:37 +08:00
2026-08-10 19:34:17 +08:00
2026-08-10 19:34:17 +08:00
2026-08-10 19:34:17 +08:00