Repository navigation
feat(claws): separate portable and OpenClaw profiles - #112773
giodl73-repo merged 6 commits into
Conversation
5b21b29 to
6ffd2ed
Compare
b5c2836 to
f67124c
Compare
|
This adds portable Claw tool and memory policy, export support, and update-consent classification. The policy belongs in the Claw owner, but the current implementation crosses the canonical config boundary incorrectly and can miss required capability consent. LOC: +347/-15 (9 files) Findings
Best-fix verdict: wrong boundary for memory configuration and incomplete capability semantics. This is not merge-ready yet. The clean fix is a small Claw-owned portable/canonical adapter plus shared effective-policy comparison, not additional field-specific heuristics. Code read: changed Claw schema/lifecycle/export/update modules and tests; config types and strict schema; memory resolver and memory-host defaults; tool profile, allow/deny, wildcard, and filesystem policy owners; current Remaining uncertainty: the PR is draft and the meaningful typecheck, test, build, and CI-gate lanes are skipped. I did not execute contributor-controlled code locally. |
288ed14 to
33605d4
Compare
|
Addressed the independent review findings at signed head @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Addressed all four findings at signed head
The restrictive-only and canonical-resolver requirements are also normative in RFC #48 at signed head Proof: 75/75 focused tests, production core/UI/extensions typechecks, zero targeted Oxlint findings, full docs formatting/lint/MDX checks, @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Addressed all three independent review findings at signed head
Validation: 82 focused tests, 8/8 lifecycle E2E, full test typecheck, targeted Oxlint, formatting/diff checks, and a clean final Codex review. The two remaining CI failures are unrelated current-base iOS release deadcode/test-routing failures. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
8f7e1af to
32d9929
Compare
|
Rebased the six signed commits cleanly onto current The final review also considered two exporter combinations ( @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
32d9929 to
d255a12
Compare
|
Rebased cleanly onto current main including the iOS test-routing CI fix. Signed head d255a128a23 passes 82/82 focused tests, the exact previously failing 220/220 test-project routing suite, 8/8 lifecycle E2E, full test typechecking, and diff checks. No Claws-owned failure remains. @clawsweeper re-review |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
d255a12 to
29f58e4
Compare
|
Rebased onto current Scoped current-head proof:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
29f58e4 to
b7dd7c0
Compare
|
Rebased again onto current Scoped current-head proof:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
b7dd7c0 to
f50a918
Compare
|
Rebased onto current Scoped current-head proof:
No code changes beyond the clean rebase. |
* feat(claws): add portable agent policy settings * fix(claws): align portable agent policy * fix(claws): preserve host policy boundaries * feat(claws): separate portable and OpenClaw profiles * test(claws): align profile fixtures with portable schema * fix(claws): align portable profile boundaries
Summary
CLAW.mdand grouped JSON portable: the agent object contains only id, name, description, and identity presentation.metadataas a string-to-string map, following the Agent Skills portability precedent.metadata.openclaw.config.profiles/openclaw.ymlpath while treating the metadata pointer, not the filename, as normative.The profile exists only inside the Claw package. It is consumed while planning the new agent and is never copied to OpenClaw's ordinary configuration path.
This is the final implementation slice after #111391. It implements the portability boundary in RFC PR #48, building on Claws RFC #27.
Policy boundary
The portable core remains harness-agnostic. OpenClaw recognizes
openclaw.config; other harnesses may ignore it or define their own namespaced metadata pointer. Host policy remains authoritative. The OpenClaw profile cannot carry custom profile definitions, providers, credentials, bindings, local paths, arbitrary executable configuration, or settings that relax host confinement.Real behavior proof
CLAW.md, writes OpenClaw policy toprofiles/openclaw.yml, and includes the sidecar in derivative version hashing.Validation
pnpm check:test-typespasses.git diff --checkpass.d255a128a23.