Repository navigation
fix(skills): keep paired-node skill reads on delivered instructions - #175906
roboclaw-bot merged 2 commits into
Conversation
|
🦞👀 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 changes before merge. What this changesThis PR binds skill prompts, search, and reads to verified turn deliveries and includes eligible discovery skills. Example: A paired-node turn receives the source skill containing instructions to read data.bin, without a filesystem bridge.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains This PR addresses a current paired-node skill-read defect, but its discovery cap is applied too late to prevent an omitted skill from aborting the turn. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherSkill preparation converts the admitted catalog into bounded worker resources; sandbox and installed-skill consumers expose their verified instructions to the agent. flowchart LR
A[Admitted skill catalog] --> B[Resource preparation]
B --> C[Node workspace delivery]
C --> D[Turn resource context]
D --> E[Sandbox prompt]
D --> F[Installed skill search and read]
G[Live turn authority] --> D
Technical reviewBest possible solution: Keep the existing delivery owner and select the prioritized, bounded candidate set before reading bundles or charging the aggregate byte budget. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the no-bridge failure, and the added production-owner regression composes the affected consumers; no target code was executed during this read-only review. Is this the best way to solve the issue? Reusing the admitted delivery context is appropriate, but the capacity selection must precede bundle preparation to enforce the intended delivery boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fefe44fe787f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +82, Tests +177, Docs +6. Total +265 across 11 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 (1 earlier review cycle)
Reviewed October 17, 2026, 11:19 PM ET / October 18, 2026, 03:19 UTC (Revision 2). |
Co-authored-by: galiniliev <[email protected]>
|
Prepared the corrected candidate at @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…penclaw#175906) * fix(skills): bind paired-node instructions to delivered turns * fix(skills): preserve bounded remote discovery resources Co-authored-by: galiniliev <[email protected]> --------- Co-authored-by: galiniliev <[email protected]>
Resolve 9 files / 17 conflict hunks from upstream/main (6e23cf0, 2471 commits; merge-base 8fda964) onto the skill-fingerprint port branch, adapting the PR onto upstream's new shapes: - skill-resource-transfer.ts: adopt upstream openclaw#175906 delivered-skills discovery projection (clearSkillFileHost, contentHash, sourceInfo) and thread the PR's bundleFingerprint onto the delivered entry so both the discovery projection and Object.assign'd resolved entry carry the transferred bundle's identity. Keep the PR's matchesDeliveryIdentity (host-aware same-path disambiguation) for resolved-entry matching; upstream still matches raw paths. Drop the PR-side cloned-discoverySkills stamping block as redundant under upstream's deliveredSkills construction. - agent-tools.read.ts / prepared-compaction-runtime.ts / attempt-tool-prepare.ts: adopt upstream openclaw#174920 inlining of the single-owner createSkillInstructionDeliveryCache seam (new Map at the owning operation); keep the PR's per-attempt createSkillInstructionDeliveryMarkers contract on every owner. Adapt all cache callers (e2e/coding-tools/skill-runtime tests, attempt-execution-phase test support, upstream's attempt.tool-search-run-plan fixture) to inline Map construction. - resources.test.ts: adopt upstream openclaw#175906's rewritten harness (prepare/selected/invalidBundle/materialize helpers) and port the PR's fingerprint suites onto it; the explicit-selection rejection assertion is upstream's own now (dedup). - resources.workspace.test.ts: adopt upstream's thinned flattened suite and new fixture; port the PR's 10 fingerprint/discovery tests onto the global-f harness. - session-snapshot.integration.test.ts: adopt upstream's rewritten suite (persist/bindWorkspace/params.resolve) and port the PR's restamp-monotonicity assertion blocks onto it. - diagnostics-otel service.test.ts: adopt upstream's single-event recorder shape and counter() helper; keep the PR's skillFingerprint event field, span attribute, fingerprint-free metric assertions (omittedText in upstream's vocabulary; stateOmits machinery was removed upstream). Validation: all suites around the merged files (skill-resource-transfer, resources, resources.workspace, session-snapshot, session-snapshot.integration, attempt-execution-phase, attempt-tool-prepare.web-search, skill-library-read, session-updates, agent-tools e2e + coding-tools, skill-runtime, otel service), tsgo:core / tsgo:extensions / tsgo:core:test, architecture guard, fast-baseline ratchets (assertion-safety, database-worker, database-dialect, timeout-race, mock-exports, protocol-since), oxlint at CI severity (one advisory max-lines warning on skill-resource-transfer.test.ts, smaller than the pre-merge branch file that already carried the same advisory), oxfmt, git diff --check.
Closes #175905
What Problem This Solves
Paired-node turns can lose access to verified skill instructions through skills_search and skills_read, including eligible skills omitted from the prompt directory.
User Impact
Prompt references, instruction search, and whole-skill reads consume the same verified delivery for the admitted turn, even without a node filesystem bridge. Retired turns and different mounts cannot reuse it. Eligible discovery skills share the existing 8 MiB transfer budget; no configuration or schema migration is required.
Why This Change Was Made
Reuse the existing session skill-resource context and exact mount identity to bind the delivered catalog. Transfer preparation includes eligible discovery candidates, publishes delivered locations and verified instruction bytes, and removes stale host provenance. Consumers retain the delivery owner’s lifecycle checks. No authority owner or persistent cache is added.
Evidence
The original transfer/catalog regression proves delivered prompt/search/read byte equality, changed-host/cache rejection, mismatched-mount exclusion, and retirement. Review added red-to-green regressions for prompt-omitted native node discovery and catalogs above the existing 256-item wire limit. Prompted, explicit, and pinned resources retain priority; the 8 MiB limit is unchanged.
All 62 focused transfer, resource-preparation, and workspace-resource tests pass after repair. Targeted source/test typechecks, lint, formatting, and diff checks pass. Independent Auto Review of the corrected candidate has no actionable P0–P2 findings. The original 118-test/build evidence is historical; no fresh full build or live paired-node/provider proof is claimed for the repair. Fresh hosted CI is pending.
Thanks @galiniliev for the original implementation.
Work sessions
These links cover review fixes and preparation; the original implementation predates this review.
Retained source-session evidence
Inspected the originating local implementation session and retained acceptance receipts. The JSON below is a sanitized field projection: private model routes, credentials, session/account identifiers, host/deployment paths and raw transcripts are omitted. Original evidence stays private.
No direct live paired-node skill search/read acceptance receipt was found in the identified primary session. Its successful local dashboard skills_read calls do not exercise paired-node mount identity or retirement and are not presented as that proof. The existing current-port boundary tests remain the evidence for those contracts.
Sanitized evidence receipt
{ "proofKind": "primary-session evidence audit; no new live claim", "currentPortHead": "97305049ea1fb18ec35c597608bc85a5bdb1df9d", "qualifyingLivePairedNodeSearchReadReceiptFound": false, "existingCurrentPortBoundaryProof": { "passingOwnerAndSiblingTests": 118, "covers": [ "same delivered prompt/search/read bytes", "mismatched mount identity exclusion", "retained search/read rejection after turn retirement", "node workspace lifecycle cleanup" ] }, "localDashboardSkillReadsArePairedNodeProof": false }