Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

P8: HTTP graph-freshness check (report-only) and verdict record; put_pages classified async_derived with a zero-model runtime case

garrytanfc021cfb9d11
diff --git a/docs/eval/decisions/p8/SEALED_VERDICTS.md b/docs/eval/decisions/p8/SEALED_VERDICTS.md
index 748133bf60..6460af9852 100644
--- a/docs/eval/decisions/p8/SEALED_VERDICTS.md
+++ b/docs/eval/decisions/p8/SEALED_VERDICTS.md
@@ -9,6 +9,7 @@ Each part's held-out result, measured by the custodian (P0) against the gates in
| Quote grounding (section 6) | supported spans wrongly flagged, Wilson 95% upper bound ≤ 5% | 4.7% wrongly flagged, upper bound 7.6% | FAIL | `think.quote_verify` and `dream.quote_verify` off by default (opt-in) |
| Semantic withdrawal review (section 3) | precision LB ≥ 0.90, end-to-end recall ≥ 0.60, zero proposals on corrected values, N5 unchanged | pending (paraphrase sourcing amended 2026-10-05) | — | `review_withdraw` off |
| Advertised tool surface (section 7) | pooled success ≥ control − 3 pts, no leak rise, hidden-tool family ≥ control − 5 pts | pending | — | new installs advertise `full` |
+| HTTP graph freshness (report-only) | remote `put_page`: timeline row at commit; mention links after the `links` effect; typed edges only after extract | as stated, on PGLite (`test/remote-graph-freshness.test.ts`) | REPORT | no switch |
| Duplicate review kinds (section 4) | per kind, as section 3 | not run until P1/P5 enqueue candidates | — | off |
## Quote grounding
@@ -25,3 +26,25 @@ Follow-up: the over-flagging. The dev runs measured 1.3% after the edge-punctuat
held-out set flags 4.7%, so supported quotes still fail on forms the dev questions did not contain. The next step
is to read the held-out wrongly-flagged spans with the custodian (without tuning on the sealed questions) and
re-run on a fresh held-out set.
+
+## HTTP graph freshness (report-only)
+
+Measured on master with #6025 (remote bulk writes and mention links) merged in. A remote OAuth `put_page` with a
+dated timeline bullet and `[[people/alice-example]] … works at [[companies/acme-example]]`:
+
+| Stage | What is queryable | Time from submit (PGLite, local run) |
+|---|---|---|
+| Commit | the page and its dated `timeline_entries` row; no links | 206 ms |
+| `links` effect drained | `mentions` edges to the two visible same-source pages; no typed edge | 259 ms |
+| `extract` phase | typed `works_at` edges added beside the mentions | 390 ms |
+
+With `mcp.remote_auto_links=false` no mention pass is queued. Times are one local run on a small PGLite brain and
+include no worker scheduling delay; on a served brain the mention links wait for the effect worker and typed edges
+for the next extract (dream cycle or `gbrain extract`). #6025's own contract tests cover confinement, revoked
+clients, restarts, superseded revisions and reconcile on PGLite and Postgres.
+
+Lock order: #6025's effects take the brain row before the source row (`guardEffectSource`). P8's write paths take
+no brain or source row lock (the `remember.replaces` target-fact lock lives inside the publication transaction,
+the review queue row commits inside the withdrawal transaction, and attribution is async context only), so there
+is no inverted order. The P8 Postgres E2E and #6025's links-effect E2E pass together on direct Postgres and through
+transaction-mode PgBouncer.
diff --git a/src/core/ops/write-inference.ts b/src/core/ops/write-inference.ts
index 2ed662fdb6..a19ac069cc 100644
--- a/src/core/ops/write-inference.ts
+++ b/src/core/ops/write-inference.ts
@@ -41,7 +41,7 @@ export const OP_WRITE_INFERENCE: Readonly<Record<string, WriteInference>> = {
// memory verbs and facts
remember: 'embedding', forget: 'none', forget_fact: 'none', extract_facts: 'explicit_llm',
// pages
- put_page: 'async_derived', capture: 'async_derived', edit_page: 'async_derived',
+ put_page: 'async_derived', put_pages: 'async_derived', capture: 'async_derived', edit_page: 'async_derived',
revert_version: 'async_derived', delete_page: 'none', restore_page: 'none',
purge_deleted_pages: 'none', cancel_write_request: 'none',
put_raw_data: 'none', log_ingest: 'none', file_upload: 'opt_in_media',
diff --git a/test/write-path-zero-llm.serial.test.ts b/test/write-path-zero-llm.serial.test.ts
index 99342e90c7..45393dd5f0 100644
--- a/test/write-path-zero-llm.serial.test.ts
+++ b/test/write-path-zero-llm.serial.test.ts
@@ -123,6 +123,15 @@ describe('writes commit with zero generative model calls', () => {
expect(hits.map(h => h.slug)).toEqual(expect.arrayContaining(['meetings/roadmap-local', 'meetings/roadmap-remote']));
});
+ test('put_pages (remote batch)', async () => {
+ COVERED.add('put_pages');
+ await call('put_pages', { request_id: '7d3c2b1a-0f9e-4d8c-a7b6-5e4d3c2b1a09', pages: [
+ { slug: 'meetings/batch-one', content: `---\ntype: meeting\ntitle: Batch one\n---\n${BODY}` },
+ { slug: 'meetings/batch-two', content: `---\ntype: meeting\ntitle: Batch two\n---\n${BODY}` },
+ ] }, true);
+ expectNoGenerative('put_pages');
+ });
+
test('capture and edit_page', async () => {
COVERED.add('capture'); COVERED.add('edit_page');
await call('capture', { slug: 'notes/captured', content: `Captured thought about pricing tiers. ${BODY}` });