Repository navigation
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
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
|
🦞👀 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. |
|
Thanks for the contribution. ClawSweeper is trimming this lowest-signal PR because the author is over the repository's open-PR budget. @jalehman currently has 45 open PRs in this repository, above the budget of 15. ClawSweeper is closing this PR as one of the author's lowest-signal submissions under that budget: its overall rating is D and its real behavior proof is insufficient. Closing or finishing other PRs frees review budget, and this PR can be reopened once the author is under budget or when real proof is added. Closing or finishing other open PRs frees review budget. This PR can be reopened once the author is under budget, or sooner when real behavior proof is added. Review detailsBest possible solution: Close this lowest-signal PR for now. Finish or close other open PRs to free review budget, then reopen this PR once the author is under budget; adding real behavior proof also makes it eligible for reconsideration. Do we have a high-confidence way to reproduce the issue? Source tracing establishes the revoked-authority save path and unchanged snapshot on an override-only reset; target code was not executed during this read-only review. Is this the best way to solve the issue? Moving layouts into the existing ontology and reusing journaled publication is coherent, and the obsolete Markdown copies are removed; the listed repairs fit the existing owners without another layer. Security review: Security review needs attention: The new layout mutation does not consume the host's live request-authority assertion at publication.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning medium; reviewed against cfb40ec803b2. |
Related: #197018 (stacked on it; retarget to
mainafter it lands)What Problem This Solves
Page layouts (how a project, person, company or concept page is written) lived as four Markdown files copied into every Knowledge skill, so they could not be seen or changed from the product and only four of the 19 page types had one.
User Impact
User impact: operators can read every page type's layout in Settings → Vocabulary, and edit it, add one to a type that has none, or reset it to the default. Agents read the layout for the type they are writing from the ontology, so a saved edit reaches them on their next page write.
layout/layouts, so a vault with a saved layout has no usable ontology in an older plugin until the keys are removed. Users don't edit ontology files by hand, so this was accepted; it is documented.Why This Change Was Made
layout: the question a page answers, ordered sections (heading + guidance) and optional notes. The four existing layouts are seeded intoknowledge-default.yamlword for word.layoutsmap by type name. A UI save is one entry in the vault'sontology.yaml. The first save creates a manifest namedvaultthat extendsknowledge-defaultand declares no definitions. Maps apply nearest-first. An entry for a type that no longer exists is reported as a diagnostic and does not take the ontology offline.layout) and committed to the vault's Git history. Saving needsoperator.write; agents cannot edit layouts.knowledge_ontologyview: "definitions", and the default catalog stays lean. The skills now say "read the layout for this page's type from the ontology" instead of naming four types. Rules that apply to every type stay in the skills. The layout copies and their sync step are removed.Accepted edge case: a layout save that lands in the milliseconds between another write's validation and acceptance makes that write fail with "Ontology changed during validation". The caller retries it, as with any concurrent ontology edit.
Evidence
Real isolated Gateway on the Mac Studio (built from this branch and from the #197018 head), synthetic store, headless Chromium at 1280×900 and 400×860. The proof saved a project layout, saw it reopen marked Customized, and reset it to the default. It reported no console errors and no horizontal overflow on mobile.
Checks on the Mac Studio:
pnpm test extensions/knowledge).tsgo(extensions) is clean.extensions/knowledgeis clean.sync-skill-references --checkpasses.pnpm buildpasses.New tests cover:
An independent review raised four findings, all fixed here:
A fifth finding is an existing gap in #197018's base and is not fixed here: operator write principals don't recheck the host's live request authority after admission.
Notes
pnpm buildreported Control UI boot-bundle budget overages (largest JS gzip +0.3 KiB) without failing. This PR changes only plugin code, not the core Control UI bundle.([splitting](profiles.md#the-default-is-no-change)), because the layouts were moved word for word. It shows as raw text in the UI.