Repository navigation
feat(knowledge): route skills by task and keep subject pages current - #197018
Conversation
Turn the consolidation and ingestion skills into short routers with a rules card and per-task references, add one page-layout reference per entity type, make leave-alone the default for current pages, retire dated sections into State without losing citations, and ask agents to keep page State current when remembered claims change it. Reapplies the intent of the unpushed knowledge-page-curation commits on current main.
Use the lean record nextOffset, drop the unavailable updatedAt, check citing sentences before repointing retired claims, and report legacy dated sections beyond the ingestion allowance instead of failing the meeting gate.
OpenClaw-Publication: 0358b549-b67e-459d-a2df-f1fd1a8e4d07
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR routes Knowledge skills through task-specific references and guides agents to keep subject pages current while preserving citations. Example: A project page contains September 23 and September 25 status sections followed by a release outcome.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Both earlier findings are resolved, and no new definite correctness defect was found; this useful maintainer-directed PR should remain open. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Knowledge plugin supplies memory prompts and bundled skills to agents, which use existing publication tools to maintain vault claims, relationships, and pages. flowchart LR
A[User task] --> B[Knowledge memory prompt]
B --> C[Skill task router]
C --> D[Task references]
D --> E[Knowledge publication tools]
E --> F[Vault claims and pages]
F --> G[Knowledge record view]
Technical reviewBest possible solution: Keep task guidance in the existing shared-reference owner and publish the focused routing and page-upkeep changes once their evidence and validation gates clear. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the changed instruction paths, but no current-main agent reproduction was run during this read-only review. Is this the best way to solve the issue? The change uses the existing skills, reference generator, and publication tools without introducing a competing runtime owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 385ca485142a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed November 12, 2026, 4:31 AM ET / 09:31 UTC (Revision 3). |
Layout fails when decisions, milestones or commitments sit in State or a supported leading section is missing; prose fails on repeated hedges or more than about three citations per sentence. State is the short current picture.
OpenClaw-Publication: 5572e2f3-2ecf-46a4-8967-bb0ba89f29bb
OpenClaw-Publication: 33f7db40-cf86-41bf-a2ac-e2b208b1e77f
OpenClaw-Publication: 3b881ff3-dff7-4063-9258-c6fe9e482c89
OpenClaw-Publication: c624bdb4-e1e6-4f28-93b4-52df28f311d9
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…ctly dated Timeline entries
|
Fixed both P2 findings in 9a3d130:
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#197018) * feat(knowledge): route skills by task and keep subject pages current Turn the consolidation and ingestion skills into short routers with a rules card and per-task references, add one page-layout reference per entity type, make leave-alone the default for current pages, retire dated sections into State without losing citations, and ask agents to keep page State current when remembered claims change it. Reapplies the intent of the unpushed knowledge-page-curation commits on current main. * fix(knowledge): address skill review findings Use the lean record nextOffset, drop the unavailable updatedAt, check citing sentences before repointing retired claims, and report legacy dated sections beyond the ingestion allowance instead of failing the meeting gate. * feat(knowledge): route skills by task and keep subject pages current OpenClaw-Publication: 0358b549-b67e-459d-a2df-f1fd1a8e4d07 * fix(knowledge): fail page reviews that bury type sections in State Layout fails when decisions, milestones or commitments sit in State or a supported leading section is missing; prose fails on repeated hedges or more than about three citations per sentence. State is the short current picture. * Publish openclaw/mellow-barnacle OpenClaw-Publication: 5572e2f3-2ecf-46a4-8967-bb0ba89f29bb * test(knowledge): fold page-State prompt check into provider entry suite * Publish openclaw/mellow-barnacle OpenClaw-Publication: 33f7db40-cf86-41bf-a2ac-e2b208b1e77f * test(knowledge): pass a join separator in the prompt check * Publish openclaw/mellow-barnacle OpenClaw-Publication: 3b881ff3-dff7-4063-9258-c6fe9e482c89 * test(knowledge): allocate test lines for the page-State prompt check * Publish openclaw/mellow-barnacle OpenClaw-Publication: c624bdb4-e1e6-4f28-93b4-52df28f311d9 * fix(knowledge): move page claims before retiring them and keep distinctly dated Timeline entries
What Problem This Solves
When agents curate or ingest Knowledge, they restructure pages that were already current, leave dated sections and Timelines in place, use the wrong layout for a page's type, and break citations when records move. They also read about 50–66K of skill references before their first write.
User Impact
User impact: consolidation leaves current pages alone and retires dated material into State. Every path that writes a subject page (ingest, meetings, capture, entities, corrections) follows its type's layout, rewrites State in place, and keeps citations reachable. Agents also load far less guidance before they start. Nothing changes until the next session, because the memory-prompt edit only affects new sessions. Trial on a vault copy before merging.
Why This Change Was Made
knowledge-claim-consolidation/SKILL.mddrops from 12.4K to 4.8K. It is now a rules card that survives compaction (never lose a citation or reachable evidence, read before writing, fences, leave-alone), followed by tasks that each link one reference:linking.md,retiring.md,page-review.md. Scribe runs say which task each step belongs to.knowledge-ingest,knowledge-capture,knowledge-correctandknowledge-source-ingestno longer require readingconventions.mdandpublication.mdin full up front. They link small topic references, or sections of those files, step by step. Each skill says that references don't need rereading after compaction unless they are about to be used.layout-{project,person,company,concept}.mdfiles, and a page review reads only the one for its page's type. The concept layout forbids project headings.profiles.md(now the subject-page rules) makes "no change" the default. A current page gets fixes only. Restructuring or splitting needs a named reason in the report, and a split needs a subject that is clearly separate and big enough to stand alone.retire-dated.mdcovers Timelines and dated sections. Their content is synthesized into State and kept as claims and source notes, never rearranged into new headings. Every citation in the deleted text is checked first. Source notes now have their ownsource-notes.md.memory-prompt.ts, when a remembered decision, outcome or status change alters an existing page's State, the agent now also rewrites that State. This is stable-prompt text. It is gated on page tools and takes effect from the next session.knowledge_remembercode and results are unchanged.knowledge-page-curationcommits (516f9fb67ab6,7241cff12d9b), rewritten for feat(knowledge): lean agent tool results and hash-prefix write fences #196767's lean result shapes. For example, it uses top-levelnextOffsetand noview/includeCards.Evidence
Up-front load in bytes:
SKILL.mdplus the references required for the scenario.Meetings and entities grow slightly. They now load a type layout and source notes, and these replace guidance that was previously missing.
node extensions/knowledge/scripts/sync-skill-references.mjs --check,git diff --checkand oxfmt.skill-packaging,scribes-state,memory-provider-entryand the newmemory-prompt.test.ts. The new test checks that the State guidance appears only when the agent can edit pages.nextOffset, the unavailableupdatedAt, the meeting gate conflicting with the ingestion retirement cap, and semantic checks before repointing citations.