Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(wave18): lane 1 fragment rows for the integrator
garrytan939e014da422
diff --git a/docs/.wave18-fragments/lane1.md b/docs/.wave18-fragments/lane1.mdnew file mode 100644index 0000000000..02c6536d8f--- /dev/null+++ b/docs/.wave18-fragments/lane1.md@@ -0,0 +1,53 @@+# Wave 18 lane 1 fragment rows (integrator: apply, then delete this file)++Branch `capy/wave18-lane1`. The two `INTEGRATOR-ROW:` commits at the end of the+branch already contain the generated output and registry rows the lane's tests+and guards need; drop or redo them at slot time as you prefer. Everything below+is what each item needs in integrator-owned files.++## Slot-time steps++1. **Migration number (#6757).** `src/core/schema-migrations/v250-persistence-request-id-index.ts`+ (name `persistence_request_id_index`) uses v250 provisionally. Renumber to the next free+ version at slot time (file name, `version` field, and the test+ `test/migration-persistence-request-id-index.test.ts` which imports it by path), then run+ `bun run build:schema-migrations && bun run build:schema`.+2. **Generated files (#6757).** `src/core/schema-migrations/registry.generated.ts`,+ `src/core/schema-migrations/latest.generated.ts`, `src/core/pglite-schema.generated.ts`+ (regenerated by the step above; the INTEGRATOR-ROW commit carries the v250 version).+3. **Goldens (#6757).** The new index and the `persistence_request_indexes` wording+ ("Request-table indexes are valid.") change these goldens; regenerate after renumbering:+ - `GBRAIN_TEST_UPDATE_GOLDENS=1 bun test test/doctor-content-golden.test.ts test/doctor-hot-checks-golden.test.ts test/doctor-json-golden.test.ts test/migrations-golden.test.ts test/schema-catalog-golden.test.ts`+ - `GBRAIN_TEST_UPDATE_GOLDENS=1 DATABASE_URL=<test db> bun test --timeout=60000 test/e2e/schema-catalog-golden.test.ts test/e2e/doctor-json-golden.test.ts test/e2e/doctor-hot-checks-golden.test.ts`+4. **Plugin trees and llms (#6753).** `skills/maintain/SKILL.md` changed:+ `bun run scripts/generate-plugin-tree.ts --out plugin --variants-out plugin-variants`, then+ `bun run build:llms` (llms-full.txt inlines docs/guides/cron-schedule.md). `bun run regen:all --goldens` does both.++## Registry rows++- **`src/core/facts/absorb-log.ts` `FACTS_ABSORB_REASONS` (#6778):** append+ `'write_pending_accepted', 'write_deferred_unadmitted',` after `'write_refused'`, and bump+ `test/facts-absorb-log.test.ts` from `length).toBe(17)` to `19` with two `toContain` asserts.+ Already in commit "INTEGRATOR-ROW: FACTS_ABSORB_REASONS ..." (typecheck needs it: commit+ "fix(facts): facts absorb waits ..." alone does not typecheck).+- **`src/core/error-registry.ts` `CODES` (#6791), alphabetical position, then `bun run build:error-codes`:**+ ```ts+ continuation_unproven: { class: 'retryable', summary: "Claude Code continued an answer past its output cap and gbrain could not prove the full text, so the claude-cli call returned no text and finished as length.", why: "Print mode reports only the text after an automatic continuation; parsing or dispatching that tail as a complete answer would act on a fragment.", reasons: ['events_missing', 'segments_unmatched'], docs: 'docs/ai-providers/claude-cli.md#claude-cli-troubleshooting', suggestion: 'Retry the call; callers that escalate on a capped answer raise the output cap, which avoids the continuation.' },+ ```+ The code is provider metadata, not a thrown code, so no contract test requires the row.++## BEHAVIOR_CHANGES rows (`src/core/behavior-change-notice.ts`, `since: '<wave version>'`)++- **#6757:** "Dream synthesis postprocess finds committed outputs by request id through a new online index (`persistence_requests_request_id`, built concurrently on Postgres, covered by `gbrain repair request-indexes`). A statement timeout on that read now defers the postprocess to a later pass (kept in `dream.synthesize.postprocess_pending`, finished without another synthesis call) instead of failing the pass; three deferrals in a row add a line to doctor `persistence_request_indexes`, whose messages now say \"request-table indexes\"."+- **#6782:** "`propose_takes` now treats a reply of `[]` followed by prose as an empty extraction and tombstones the page, instead of retrying the paid call every cycle. Pages that were retried forever get a tombstone on their next run. To force re-extraction of a page that was tombstoned wrongly, see docs/guides/cron-schedule.md (propose_takes section)."+- **#6778:** "Facts absorb now waits for its write up to the job deadline instead of 5 s. A write still committing is logged `write_pending_accepted` and writer contention before admission `write_deferred_unadmitted`; neither counts toward the doctor's facts_extraction_health threshold, and persistent contention gets its own warning (`gbrain sources writer status --source <id> --json`)."+- **#6761:** "facts_extraction_health reports its 24 h failure count as history (rolling, with an ages-out time) and separately names facts-absorb jobs still dead, with `gbrain jobs retry <id>` as the fix; it no longer suggests raising `facts.absorb_warn_threshold`, and the thresholds are unchanged."+- **#6791:** "A `claude-cli` answer that Claude Code continued after hitting its output cap is now rebuilt in full from the call's event stream (the CLI runs with `--verbose`) instead of returning only the text after the continuation as a complete answer. When the full text cannot be proven, the call returns no text and no tool calls, finishes `length` (callers retry or escalate as for any capped answer) and reports `providerMetadata['claude-cli'].code = 'continuation_unproven'` with reason `events_missing` or `segments_unmatched`, with one stderr line per process."+- **#6773 (optional):** "Generated dream-cycle summaries now carry `created: <summary date>` in their frontmatter, so they pass `gbrain lint`'s temporal check."++## CHANGELOG credit++- #6773 reimplements PR #6773 by @lubosxyz ("Contributed by @lubosxyz", `Supersedes #6773`). The branch+ commit's `Co-Authored-By` trailer uses `[email protected]`; GitHub attributes this+ account (id 159481718) only through `[email protected]`, so use that+ address in the PR body or squash message. The pushed commit was not rewritten (no force-push).