Repository navigation
Conversation
…enClaw Enterprise Aligns the design specification with the concepts behind OpenClaw Enterprise, expressed GENERICALLY — through the mechanisms charly already has, never through OCE's vocabulary. Four targets, one change; nothing is implemented: every capability that needs code is a TODO.md ROW. DESIGN.cue — the schema half: * the evaluator kind `agent` -> `harness` (registry word, #Need's @ref, the step keywords `agent-check`/`agent-run` -> `harness-check`/`harness-run`, _intentWord) * `agent` as an inner DEPLOYMENT workload (#AgentNode/#AgentBody, derived into `_deploymentKind` through #InnerOfMachineAlt) * #Namespace: a namespace is a named scope, never a kind word or a directive — the guard on `import:` keys and on a venue's own scope * a manager install carrying the owning plugin's own input (#ManagerInput = #Opaque, #ManagerPackage, #PackageEntry, `_managerPhase` with the derived `_buildManagerWord`/`_applyManagerWord`) * parameterization as a bounded CHOICE (#InputAlt/#Input/#Inputs/#With, the `input`/`with` fields) — never a substitution * an append-only audit record (#AuditEvent/#AuditDetail/#Redacted), with #StatusOutput and the `admit`/`activate` methods, and #HostMethodIO gaining `state_commit`/`audit_append` DESIGN.md — the prose and registry half: * the namespace sweep: §2's `namespace` redefined as A NAMED SCOPE with the phrase ban in its `Not` cell; D-NAME-1 (`aliases` -> `namespaces`); D-VAL-4; D-REF-4; §A.5; and the TWO emitted messages with their TWO `# expect:` texts moved in one edit, or check 3 fails * the ten mirrored tables moved with the rename and the workload: §8.2, §8.6, §9.1, §10, §11.1, §12.1, §12.2, §12.3, §12's field table, §15 * D-LOAD-6 (a namespace is a key of the root document's `import:` map); the D-VAL-2 proof SPLIT (local half in rules.cue, namespaced half as D-VAL-9) * the new D-AUDIT area (§17.9, five rows) — the one area whose subject was genuinely absent * D-KIND-4, making D-KIND-1's unenforceable "a non-first-party kind is namespaced" CHECKABLE; S10, the foreign-owned-payload pattern (the boundary law's positive half); D-HW-6 (a venue declares the capabilities AND version it grants, asserted as a preflight — one rule, three instances) * §2's `grant` row widened to the ONE generic authority model with §16.1 stating its two instances; §19's host group gains the `audit` read; A.7's sentence on a contested decision getting its RFC first; §4.1's Read stage now produces the namespace table and §4.2's Document rule names it TODO.md — section 12, "OCE alignment": all 15 migration rows as ROWS (current / target / migration / code). They describe future work and are never implemented here. The design check's own artifacts: `load.cue`'s `import:` mirror gains the same #Namespace guard the schema states (one field, two declarations — R3); the rules.cue messages above; two negative cases RENAMED (agent-with-verb -> harness-with-verb, alias-is-node -> namespace-is-node); five negative cases ADDED (D-IR-7's builder_box replacement, D-IR-5, D-KIND-4's two halves, D-VAL-2's namespaced-reference half); and three selftest rows updated to the content they point at. Renamed identifiers: the kind `agent` -> `harness`; the step keywords `agent-check`/ `agent-run` -> `harness-check`/`harness-run`; the names `alias`, `import alias` and `import namespace` for a namespace. Removed: none — this is the specification's own rename, and its migration is carried as TODO.md rows, not by `charly migrate` here. How tested (on the final tree): `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0 — the pinned toolchain (cue v0.17.1, sha256-verified), DESIGN.md <-> DESIGN.cue bidirectionally (every mirror, every `// D-...` tag against its negative case, every §5.4 row against a §7.1 owner, contiguous rule ids, check 5's banned-term registry), the examples and negative cases (8 validated, 69 negatives), and the check's OWN self-tests (27 + 18 planted defects, all caught). Proven non-vacuous: each added negative case is rejected FOR ITS OWN RULE'S reason, verified by reading the emitted message rather than trusting the file. Change classification: specification / documentation, non-runtime. No product code, no generated Go, no spec/schema/*.cue, no pins or gitlinks, no scripts/*.sh — so no schema migration and no R10 bed applies. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
…audit found Commit 7e8586e passed `design-check.sh` yet still carried contradictions the gate is STRUCTURALLY blind to: it verifies only the mirrors it is told about, so a cross-file conflict with no `<!-- schema: … -->` binding is invisible to it. An independent audit of all 48 register decisions against the committed blobs found seven, plus two omissions. All are closed here. Contradictions fixed: (a) DESIGN.md §7.1 still named "the `mcp` and `agent` capability types" — a survivor of the rename. `#Need`'s key set has `harness`, not `agent`. (b) DESIGN.md's D-IR-7 row still said a manager word "is admitted by the PHASE of the body that names it: `_buildManagerWord` for a build-phase body (a candy)" — the exact claim DESIGN.cue now denies (a candy MAY declare an apply-phase manager; `#PackageSet` is unscoped). The row now states OWNERSHIP: a build-phase manager's package is built by a `builder` node, whose `builder_box` key must be a build-time manager (`#BuildManager`); an apply-phase manager is applied by the deployment kind. (c) TODO.md 12.10 promised to KEEP `security_opt: ["no-new-privileges"]` alongside the typed `#Security` fields, against D-HW-5's "no raw runtime settings". It now says the typed fields REPLACE the raw setting. (d) DESIGN.md's A.7 and TODO.md's section-12 intro cited `plan/openclaw-enterprise-ledger.md`, which is GITIGNORED (`git ls-tree 7e8586e plan/` is `.gitkeep` only) — a dangling reference from committed normative text. Both references removed. (e) The §20 command list still carried `check agent` and `check list-agent`; TODO.md §8.1's consolidation table still targeted `check agent`. Both now `check harness`. (f) DESIGN.md §7.1's core owner cell was MANGLED by an earlier edit — it read literally "core the namespace table and name resolution (D-LOAD-6),", so the namespace table was appended into the owner column. The table is now in the concept list and the owner is plain `core`; check 3 missed it because its owner match is `grep -qxF` and still found "core". (g) DESIGN.cue typed keys spelled `namespace` as `#Name` in the kube verb's `wait_ready`/`pod` inputs while the same term is `#Namespace` everywhere else. Both now `#Namespace`. Omissions closed: * the §9.4 and §11.1 `package` rows now state that a manager declaring an input carries it as the owning plugin's own (`#ManagerInput`/`#ManagerPackage`, D-IR-6) * the omitted `D-REF` row: a dotted name's meaning is a FORM rule, never a lookup accident (its first segment is a namespace by form, and D-VAL-4 makes the reading decidable). Numbered D-REF-9, not the ledger's D-REF-10 — the D-REF area ends at 8, so 10 would skip 9. The same id-skipping error the implementation corrected in D-VAL/D-CANDY. * the register's only ABSENT decision (2): the four principles P1-P4 are now stated in DESIGN.md §1, beside the laws — they decide a PROPOSAL where the laws decide a SHAPE, so they are not a duplicate of D-LAW-1..7 (R3). How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, 27 + 18 planted defects caught. Each finding was re-measured with the auditor's own greps, and the rename sweep re-run repo-wide by word boundary (`check (list-)?agent\b` -> none). Check 5 caught one error IN THIS FIX: the new P1 row used "substrate", a banned §2 term — reworded to the registered "deployment kind". Known limitation, recorded not hidden: check 5 comma-splits §2's `Not` cell, so the multi-word bans (`import alias`, `import namespace`) are stated but not machine-enforced. The namespace guard's real enforcement is the `#Namespace` scalar plus D-KIND-4's two negative cases. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Closes the one limitation the register audit recorded: check 5 extracted its banned terms by comma-splitting the §2 `Not` cell, so a MULTI-WORD ban — the only way to write `import alias` or `import namespace` — collapsed into a single unmatchable phrase. The ban was stated, not enforced. * `scripts/design-consistency.sh`: a banned term is now a comma-separated bare word OR a `backticked phrase`, so a multi-word ban is expressible. Backticks are stripped from every entry, because the term is the word, not its markup. * `DESIGN.md`: the two `Not` cells that carry backticks were made PRECISE — only what is actually banned is backticked, and each explanation sits in parentheses (which the check strips before splitting). The namespace cell now bans exactly `import alias` and `import namespace`; the audit-record cell no longer backticks `log`, which is a legitimate method word (a kind observes `log:`), so banning it would have made the design's own vocabulary illegal. * `design/consistency/selftest.tsv`: a new row `words-multiword-ban` plants `import namespace` in DESIGN.md outside §2 and requires the check to report it — A.7's rule that a new mechanism in the check gets a self-test row. Planted defects went 27 -> 28, all caught. The change is behaviour-preserving for every pre-existing entry: the multi-word phrases already in the list (`base image`, `emit plan`, `host build seam`, `step kind`) came from comma-separated cells and were already enforced; they were pre-checked for false positives against the prose and the schema and are clean. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, **28 + 18** planted defects all caught. Also caught one error in this very change: the first wording of the namespace cell leaked two junk phrases into the banned list, which the pre-check exposed. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
The re-audit confirmed all ten earlier fixes are real and raised the register
coverage to 44 present / 1 absent / 1 not-applicable / 2 unclear — then found five
things the FIX COMMIT itself introduced. All are closed here.
1. [HIGH] TODO.md 12.5 still prescribed the rule the fix deleted: "the two
admissible sets are derived ... the phase-scoped admission (`D-IR-7`)", and
called `helm:foo` in a candy's `package:` meaningless. DESIGN.md's D-IR-7 and
DESIGN.cue both now say the opposite — `#PackageSet` is unscoped and a body may
DECLARE either phase — and the gate-validated `labtools-charts` example depends
on it. The row now states the OWNERSHIP model: `_managerPhase` maps each word to
its phase, the build-time set is derived, and a `builder_box` key must be a
build-time manager, while declaration stays unscoped. Fixing the rule without
its migration row left the two contradicting each other.
2. [MED] D-REF-9 WITHDRAWN. It contradicted D-REF-1 ("a dotted name's first segment
is a namespace if one with that name exists, otherwise a node" — an existence
test, i.e. a lookup) by asserting "never a lookup accident", and it restated
D-VAL-4/D-VAL-9, against D-LAW-1 ("a rule is stated in exactly one place; other
places cite its ID"). The ledger had ordered this row as D-REF-10; the honest
outcome was not to renumber it but to drop it — it duplicated rules that already
exist. The D-REF area is contiguous 1..8.
3. [MED] DESIGN.md A.7 named "the decision registry" with no definition and no
location, while TODO.md 12.13 says it does not exist yet. The earlier fix
removed the dangling ledger path without supplying one. The sentence now states
the requirement with no locator: a contested call is argued and settled first,
and this document is amended once it is — never the reverse.
4. [LOW] `_applyManagerWord` lost its only consumer when D-IR-7 became an ownership
rule, so D-LAW-2 ("Nothing dead ... no caller does not exist") condemned it.
Removed; the comment now says ONE derived set, with the apply-phase rows serving
to EXCLUDE those words from it. That comment ALSO still claimed "two DERIVED
sets" and pointed at "the phase-scoped package sets below" — a thing that stopped
existing when the phase typing was reverted; both corrected. (My first attempt at
this comment silently changed nothing because it carried no assertion — a
no-op that an assert would have caught.)
5. [LOW, judgement call, accepted] The kube verb's `namespace` keys are now typed
`#Namespace`, which newly refuses a cluster namespace literally named `task` or
`doc`. That is intended: it makes them consistent with the pre-existing
`#VenueOutputAlt.kube.namespace`, and the guard is the point of S10 / P4.
How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass",
rc=0, 8 examples validated, 69 negatives, 28 + 18 planted defects caught. R5 re-grep:
`_applyManagerWord` has no reference anywhere; the D-REF ids are contiguous 1..8.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
The third independent audit confirmed the authorized scope is intact (15 paths, all in DESIGN.*, TODO.md, scripts/design-*.sh and design/**; no submodule or gitlink; no product code) and every earlier fix real — then found three defects, ALL of them in my own fix commits' blast radius. 1. [MEDIUM] DESIGN.cue misnamed D-IR-7's tag site. My comment on `_managerPhase` said the rule's "tag — is on `#PackageEntry` above", but `#PackageEntry` carries the D-IR-5 tag; D-IR-7 is tagged on `#PackageSet` and enforced at `builder_box`'s key type, which DESIGN.md's D-IR-7 row also names. The comment contradicted its own code AND the prose. Comment now names `#PackageSet` and `builder_box`. 2. [MEDIUM] TODO.md's §12 rows cited DESIGN.md by LINE NUMBER — `DESIGN.md:585`, `§2:87`, `D-NAME-1:96`, `D-VAL-4`:258, `D-REF-4`:1152. At the base commit those lines held exactly those rows; by the tip they hold D-IR-2, the plugin row, the repository-reference row, a §4.1 list item and a kube example, while the rows had moved to 609/97/108/274/1273. They are now cited the way the design itself cites: by row and id — "the kind table's `agent` row", "§2's `namespace` row", `D-NAME-1`, `D-VAL-4`, `D-REF-4`. **Line numbers rot and no check sees them; ids do not.** 3. [MEDIUM-LOW] DESIGN.cue still cited "(ledger §5)". The only artifact of that name is the gitignored `plan/openclaw-enterprise-ledger.md`, absent from the committed tree — the same class the change had already removed from TODO.md and A.7, so this was an unfinished sweep (R2). Citation dropped. 4. [LOW, accepted] The previous commit de-backticked `log` in §2's audit-record Not cell, which the audit measured as unnecessary (the checker strips parentheses before extracting backticked terms, so `log` never entered the banned set either way). Left as-is: the cell reads correctly and states the reason, and reverting it would change nothing. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, 28 + 18 planted defects caught. Re-greps: no `DESIGN.md:<n>` citation survives in TODO.md, and no `ledger §` citation survives in DESIGN.cue. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)
Review — BLOCKHead SHA: Change class: design/specification, but the diff also edits a shell script and check CUE (not pure Security screen: PASS — the Blocks
Comment intake
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
… table shape The org's validator BLOCKed PR #452 with three findings, and all three were real. 1. `DESIGN.md`'s `D-VAL-2` row carried **five** cells in a four-column table: a split-proof note had been appended AFTER the `Design check` cell instead of folded into it, which also left the row unterminated. Folded to four cells and re-terminated. The check could not see it — it verified mirrors, ids, tags and § references, never column structure — so a green gate coexisted with a broken normative table. 2. `scripts/design-consistency.sh` gains **check 7, table shape**, so the class that produced (1) cannot ship again: every row of every table in `DESIGN.md` and `TODO.md` must carry its header's cell count and end with `|`. Proven by a new `selftest.tsv` row (`table-shape`) that plants a fifth cell and requires the check to report it — planted defects went 28 -> 29. 3. The PR body is corrected for the validator's other two findings: the Summary now NAMES `scripts/design-consistency.sh` (the diff changes it, and the body had claimed otherwise), the Change classification no longer asserts "no `scripts/*.sh` change", the shipped defect and the gap now closed are disclosed, and the tier is `fully tested and validated` instead of `documentation reviewed` — this diff is the check's own code and data, not documentation, so the documentation tier was not available. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, **29 + 18** planted defects all caught. An independent audit of every table in `DESIGN.md` (63 tables) and `TODO.md` (13 tables) reports 0 malformed rows, and `marketplace/scripts/pr_body_lint.py` reports 0 findings on the corrected body. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: design/specification + design-check artifacts ( Comment intake — the one prior Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: design/specification + design-check artifacts ( Security screen: PASS — the Comment intake
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
The org's validator BLOCKed attempt 2 on two R2/R1 findings. Both were real and
both were introduced by this change.
1. `#Namespace` was a **verbatim copy** of `#TopName`. The other per-position
scalars (`#InnerCandyName`, `#InnerNodeName`) each exclude a *different* set, so
a copy is not a per-position variant but plain duplication. `#Namespace` now
**shares** the definition: `#Namespace: #TopName`.
2. The manager set was stated **twice** — `_managerWord` as a literal list and
`_managerPhase` as a literal map with the same seven keys — so adding a manager
took two edits that could drift silently, while the adjacent comment claimed
"ONE table, ONE DERIVED set ... one entry in one place". `_managerWord` is now
**derived** from the one table: `[for w, _ in _managerPhase {w}]`, which makes
the comment true as written.
Both are removed rather than justified, and the PR body's R3 paragraph now names
them (the validator noted it never had).
How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass",
rc=0, 8 examples validated, 69 negatives, **29 + 18** planted defects all caught —
including the two `D-KIND-4` negative cases that bind to the `#Namespace` guard,
which proves that sharing the definition changed no behaviour.
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: design/specification + design-check artifacts ( Security screen: PASS — the Comment intake:
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — BLOCKHead SHA: Change class: design/specification + design-check artifacts ( Security screen: PASS — the Comment intake (all re-derived against the CURRENT body/diff):
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Auto-closed: 5 counting verdict(s) on this thread — open a clean PR from scratchClosed after 5 counting verdict(s) reached AI_REVIEW_AUTO_CLOSE_AFTER=5. Verdicts on this thread: 5 The rule: open a clean pull request from scratch — a fresh branch and a fresh thread — once the counting verdicts reach 5. Never another push, re-run, or re-open on this thread. Why: every further run on this thread spends a full verdict to say nothing new, and grows this PR's comment thread — which is what drives the reviewer into a runaway. The loop is bounded here instead. What to do:
This is a policy action, not a code finding — the validator verdict on this run stands. |
|
Agent: charly (DeepSeek Harness session) RESOLVED — superseded by #454 This thread reached Findings closed across the five rounds, in order:
Verification on the new head: Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) |
…enClaw Enterprise (#454) * docs(design)!: align DESIGN.* and TODO.md with the concepts behind OpenClaw Enterprise Aligns the design specification with the concepts behind OpenClaw Enterprise, expressed GENERICALLY — through the mechanisms charly already has, never through OCE's vocabulary. Four targets, one change; nothing is implemented: every capability that needs code is a TODO.md ROW. DESIGN.cue — the schema half: * the evaluator kind `agent` -> `harness` (registry word, #Need's @ref, the step keywords `agent-check`/`agent-run` -> `harness-check`/`harness-run`, _intentWord) * `agent` as an inner DEPLOYMENT workload (#AgentNode/#AgentBody, derived into `_deploymentKind` through #InnerOfMachineAlt) * #Namespace: a namespace is a named scope, never a kind word or a directive — the guard on `import:` keys and on a venue's own scope * a manager install carrying the owning plugin's own input (#ManagerInput = #Opaque, #ManagerPackage, #PackageEntry, `_managerPhase` with the derived `_buildManagerWord`/`_applyManagerWord`) * parameterization as a bounded CHOICE (#InputAlt/#Input/#Inputs/#With, the `input`/`with` fields) — never a substitution * an append-only audit record (#AuditEvent/#AuditDetail/#Redacted), with #StatusOutput and the `admit`/`activate` methods, and #HostMethodIO gaining `state_commit`/`audit_append` DESIGN.md — the prose and registry half: * the namespace sweep: §2's `namespace` redefined as A NAMED SCOPE with the phrase ban in its `Not` cell; D-NAME-1 (`aliases` -> `namespaces`); D-VAL-4; D-REF-4; §A.5; and the TWO emitted messages with their TWO `# expect:` texts moved in one edit, or check 3 fails * the ten mirrored tables moved with the rename and the workload: §8.2, §8.6, §9.1, §10, §11.1, §12.1, §12.2, §12.3, §12's field table, §15 * D-LOAD-6 (a namespace is a key of the root document's `import:` map); the D-VAL-2 proof SPLIT (local half in rules.cue, namespaced half as D-VAL-9) * the new D-AUDIT area (§17.9, five rows) — the one area whose subject was genuinely absent * D-KIND-4, making D-KIND-1's unenforceable "a non-first-party kind is namespaced" CHECKABLE; S10, the foreign-owned-payload pattern (the boundary law's positive half); D-HW-6 (a venue declares the capabilities AND version it grants, asserted as a preflight — one rule, three instances) * §2's `grant` row widened to the ONE generic authority model with §16.1 stating its two instances; §19's host group gains the `audit` read; A.7's sentence on a contested decision getting its RFC first; §4.1's Read stage now produces the namespace table and §4.2's Document rule names it TODO.md — section 12, "OCE alignment": all 15 migration rows as ROWS (current / target / migration / code). They describe future work and are never implemented here. The design check's own artifacts: `load.cue`'s `import:` mirror gains the same #Namespace guard the schema states (one field, two declarations — R3); the rules.cue messages above; two negative cases RENAMED (agent-with-verb -> harness-with-verb, alias-is-node -> namespace-is-node); five negative cases ADDED (D-IR-7's builder_box replacement, D-IR-5, D-KIND-4's two halves, D-VAL-2's namespaced-reference half); and three selftest rows updated to the content they point at. Renamed identifiers: the kind `agent` -> `harness`; the step keywords `agent-check`/ `agent-run` -> `harness-check`/`harness-run`; the names `alias`, `import alias` and `import namespace` for a namespace. Removed: none — this is the specification's own rename, and its migration is carried as TODO.md rows, not by `charly migrate` here. How tested (on the final tree): `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0 — the pinned toolchain (cue v0.17.1, sha256-verified), DESIGN.md <-> DESIGN.cue bidirectionally (every mirror, every `// D-...` tag against its negative case, every §5.4 row against a §7.1 owner, contiguous rule ids, check 5's banned-term registry), the examples and negative cases (8 validated, 69 negatives), and the check's OWN self-tests (27 + 18 planted defects, all caught). Proven non-vacuous: each added negative case is rejected FOR ITS OWN RULE'S reason, verified by reading the emitted message rather than trusting the file. Change classification: specification / documentation, non-runtime. No product code, no generated Go, no spec/schema/*.cue, no pins or gitlinks, no scripts/*.sh — so no schema migration and no R10 bed applies. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) * fix(design): close the seven contradictions the independent register audit found Commit 7e8586e passed `design-check.sh` yet still carried contradictions the gate is STRUCTURALLY blind to: it verifies only the mirrors it is told about, so a cross-file conflict with no `<!-- schema: … -->` binding is invisible to it. An independent audit of all 48 register decisions against the committed blobs found seven, plus two omissions. All are closed here. Contradictions fixed: (a) DESIGN.md §7.1 still named "the `mcp` and `agent` capability types" — a survivor of the rename. `#Need`'s key set has `harness`, not `agent`. (b) DESIGN.md's D-IR-7 row still said a manager word "is admitted by the PHASE of the body that names it: `_buildManagerWord` for a build-phase body (a candy)" — the exact claim DESIGN.cue now denies (a candy MAY declare an apply-phase manager; `#PackageSet` is unscoped). The row now states OWNERSHIP: a build-phase manager's package is built by a `builder` node, whose `builder_box` key must be a build-time manager (`#BuildManager`); an apply-phase manager is applied by the deployment kind. (c) TODO.md 12.10 promised to KEEP `security_opt: ["no-new-privileges"]` alongside the typed `#Security` fields, against D-HW-5's "no raw runtime settings". It now says the typed fields REPLACE the raw setting. (d) DESIGN.md's A.7 and TODO.md's section-12 intro cited `plan/openclaw-enterprise-ledger.md`, which is GITIGNORED (`git ls-tree 7e8586e plan/` is `.gitkeep` only) — a dangling reference from committed normative text. Both references removed. (e) The §20 command list still carried `check agent` and `check list-agent`; TODO.md §8.1's consolidation table still targeted `check agent`. Both now `check harness`. (f) DESIGN.md §7.1's core owner cell was MANGLED by an earlier edit — it read literally "core the namespace table and name resolution (D-LOAD-6),", so the namespace table was appended into the owner column. The table is now in the concept list and the owner is plain `core`; check 3 missed it because its owner match is `grep -qxF` and still found "core". (g) DESIGN.cue typed keys spelled `namespace` as `#Name` in the kube verb's `wait_ready`/`pod` inputs while the same term is `#Namespace` everywhere else. Both now `#Namespace`. Omissions closed: * the §9.4 and §11.1 `package` rows now state that a manager declaring an input carries it as the owning plugin's own (`#ManagerInput`/`#ManagerPackage`, D-IR-6) * the omitted `D-REF` row: a dotted name's meaning is a FORM rule, never a lookup accident (its first segment is a namespace by form, and D-VAL-4 makes the reading decidable). Numbered D-REF-9, not the ledger's D-REF-10 — the D-REF area ends at 8, so 10 would skip 9. The same id-skipping error the implementation corrected in D-VAL/D-CANDY. * the register's only ABSENT decision (2): the four principles P1-P4 are now stated in DESIGN.md §1, beside the laws — they decide a PROPOSAL where the laws decide a SHAPE, so they are not a duplicate of D-LAW-1..7 (R3). How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, 27 + 18 planted defects caught. Each finding was re-measured with the auditor's own greps, and the rename sweep re-run repo-wide by word boundary (`check (list-)?agent\b` -> none). Check 5 caught one error IN THIS FIX: the new P1 row used "substrate", a banned §2 term — reworded to the registered "deployment kind". Known limitation, recorded not hidden: check 5 comma-splits §2's `Not` cell, so the multi-word bans (`import alias`, `import namespace`) are stated but not machine-enforced. The namespace guard's real enforcement is the `#Namespace` scalar plus D-KIND-4's two negative cases. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) * test(design-check): enforce multi-word §2 bans, and prove the mechanism Closes the one limitation the register audit recorded: check 5 extracted its banned terms by comma-splitting the §2 `Not` cell, so a MULTI-WORD ban — the only way to write `import alias` or `import namespace` — collapsed into a single unmatchable phrase. The ban was stated, not enforced. * `scripts/design-consistency.sh`: a banned term is now a comma-separated bare word OR a `backticked phrase`, so a multi-word ban is expressible. Backticks are stripped from every entry, because the term is the word, not its markup. * `DESIGN.md`: the two `Not` cells that carry backticks were made PRECISE — only what is actually banned is backticked, and each explanation sits in parentheses (which the check strips before splitting). The namespace cell now bans exactly `import alias` and `import namespace`; the audit-record cell no longer backticks `log`, which is a legitimate method word (a kind observes `log:`), so banning it would have made the design's own vocabulary illegal. * `design/consistency/selftest.tsv`: a new row `words-multiword-ban` plants `import namespace` in DESIGN.md outside §2 and requires the check to report it — A.7's rule that a new mechanism in the check gets a self-test row. Planted defects went 27 -> 28, all caught. The change is behaviour-preserving for every pre-existing entry: the multi-word phrases already in the list (`base image`, `emit plan`, `host build seam`, `step kind`) came from comma-separated cells and were already enforced; they were pre-checked for false positives against the prose and the schema and are clean. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, **28 + 18** planted defects all caught. Also caught one error in this very change: the first wording of the namespace cell leaked two junk phrases into the banned list, which the pre-check exposed. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) * fix(design): close the verifier's five follow-up findings The re-audit confirmed all ten earlier fixes are real and raised the register coverage to 44 present / 1 absent / 1 not-applicable / 2 unclear — then found five things the FIX COMMIT itself introduced. All are closed here. 1. [HIGH] TODO.md 12.5 still prescribed the rule the fix deleted: "the two admissible sets are derived ... the phase-scoped admission (`D-IR-7`)", and called `helm:foo` in a candy's `package:` meaningless. DESIGN.md's D-IR-7 and DESIGN.cue both now say the opposite — `#PackageSet` is unscoped and a body may DECLARE either phase — and the gate-validated `labtools-charts` example depends on it. The row now states the OWNERSHIP model: `_managerPhase` maps each word to its phase, the build-time set is derived, and a `builder_box` key must be a build-time manager, while declaration stays unscoped. Fixing the rule without its migration row left the two contradicting each other. 2. [MED] D-REF-9 WITHDRAWN. It contradicted D-REF-1 ("a dotted name's first segment is a namespace if one with that name exists, otherwise a node" — an existence test, i.e. a lookup) by asserting "never a lookup accident", and it restated D-VAL-4/D-VAL-9, against D-LAW-1 ("a rule is stated in exactly one place; other places cite its ID"). The ledger had ordered this row as D-REF-10; the honest outcome was not to renumber it but to drop it — it duplicated rules that already exist. The D-REF area is contiguous 1..8. 3. [MED] DESIGN.md A.7 named "the decision registry" with no definition and no location, while TODO.md 12.13 says it does not exist yet. The earlier fix removed the dangling ledger path without supplying one. The sentence now states the requirement with no locator: a contested call is argued and settled first, and this document is amended once it is — never the reverse. 4. [LOW] `_applyManagerWord` lost its only consumer when D-IR-7 became an ownership rule, so D-LAW-2 ("Nothing dead ... no caller does not exist") condemned it. Removed; the comment now says ONE derived set, with the apply-phase rows serving to EXCLUDE those words from it. That comment ALSO still claimed "two DERIVED sets" and pointed at "the phase-scoped package sets below" — a thing that stopped existing when the phase typing was reverted; both corrected. (My first attempt at this comment silently changed nothing because it carried no assertion — a no-op that an assert would have caught.) 5. [LOW, judgement call, accepted] The kube verb's `namespace` keys are now typed `#Namespace`, which newly refuses a cluster namespace literally named `task` or `doc`. That is intended: it makes them consistent with the pre-existing `#VenueOutputAlt.kube.namespace`, and the guard is the point of S10 / P4. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, 28 + 18 planted defects caught. R5 re-grep: `_applyManagerWord` has no reference anywhere; the D-REF ids are contiguous 1..8. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) * fix(design): close the third audit's three real findings The third independent audit confirmed the authorized scope is intact (15 paths, all in DESIGN.*, TODO.md, scripts/design-*.sh and design/**; no submodule or gitlink; no product code) and every earlier fix real — then found three defects, ALL of them in my own fix commits' blast radius. 1. [MEDIUM] DESIGN.cue misnamed D-IR-7's tag site. My comment on `_managerPhase` said the rule's "tag — is on `#PackageEntry` above", but `#PackageEntry` carries the D-IR-5 tag; D-IR-7 is tagged on `#PackageSet` and enforced at `builder_box`'s key type, which DESIGN.md's D-IR-7 row also names. The comment contradicted its own code AND the prose. Comment now names `#PackageSet` and `builder_box`. 2. [MEDIUM] TODO.md's §12 rows cited DESIGN.md by LINE NUMBER — `DESIGN.md:585`, `§2:87`, `D-NAME-1:96`, `D-VAL-4`:258, `D-REF-4`:1152. At the base commit those lines held exactly those rows; by the tip they hold D-IR-2, the plugin row, the repository-reference row, a §4.1 list item and a kube example, while the rows had moved to 609/97/108/274/1273. They are now cited the way the design itself cites: by row and id — "the kind table's `agent` row", "§2's `namespace` row", `D-NAME-1`, `D-VAL-4`, `D-REF-4`. **Line numbers rot and no check sees them; ids do not.** 3. [MEDIUM-LOW] DESIGN.cue still cited "(ledger §5)". The only artifact of that name is the gitignored `plan/openclaw-enterprise-ledger.md`, absent from the committed tree — the same class the change had already removed from TODO.md and A.7, so this was an unfinished sweep (R2). Citation dropped. 4. [LOW, accepted] The previous commit de-backticked `log` in §2's audit-record Not cell, which the audit measured as unnecessary (the checker strips parentheses before extracting backticked terms, so `log` never entered the banned set either way). Left as-is: the cell reads correctly and states the reason, and reverting it would change nothing. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, 28 + 18 planted defects caught. Re-greps: no `DESIGN.md:<n>` citation survives in TODO.md, and no `ledger §` citation survives in DESIGN.cue. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed) * fix(design): correct a malformed §5.4 row, and teach the check to see table shape The org's validator BLOCKed PR #452 with three findings, and all three were real. 1. `DESIGN.md`'s `D-VAL-2` row carried **five** cells in a four-column table: a split-proof note had been appended AFTER the `Design check` cell instead of folded into it, which also left the row unterminated. Folded to four cells and re-terminated. The check could not see it — it verified mirrors, ids, tags and § references, never column structure — so a green gate coexisted with a broken normative table. 2. `scripts/design-consistency.sh` gains **check 7, table shape**, so the class that produced (1) cannot ship again: every row of every table in `DESIGN.md` and `TODO.md` must carry its header's cell count and end with `|`. Proven by a new `selftest.tsv` row (`table-shape`) that plants a fifth cell and requires the check to report it — planted defects went 28 -> 29. 3. The PR body is corrected for the validator's other two findings: the Summary now NAMES `scripts/design-consistency.sh` (the diff changes it, and the body had claimed otherwise), the Change classification no longer asserts "no `scripts/*.sh` change", the shipped defect and the gap now closed are disclosed, and the tier is `fully tested and validated` instead of `documentation reviewed` — this diff is the check's own code and data, not documentation, so the documentation tier was not available. How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, **29 + 18** planted defects all caught. An independent audit of every table in `DESIGN.md` (63 tables) and `TODO.md` (13 tables) reports 0 malformed rows, and `marketplace/scripts/pr_body_lint.py` reports 0 findings on the corrected body. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated) * fix(design): remove two duplications the validator found, at the root The org's validator BLOCKed attempt 2 on two R2/R1 findings. Both were real and both were introduced by this change. 1. `#Namespace` was a **verbatim copy** of `#TopName`. The other per-position scalars (`#InnerCandyName`, `#InnerNodeName`) each exclude a *different* set, so a copy is not a per-position variant but plain duplication. `#Namespace` now **shares** the definition: `#Namespace: #TopName`. 2. The manager set was stated **twice** — `_managerWord` as a literal list and `_managerPhase` as a literal map with the same seven keys — so adding a manager took two edits that could drift silently, while the adjacent comment claimed "ONE table, ONE DERIVED set ... one entry in one place". `_managerWord` is now **derived** from the one table: `[for w, _ in _managerPhase {w}]`, which makes the comment true as written. Both are removed rather than justified, and the PR body's R3 paragraph now names them (the validator noted it never had). How tested: `bash scripts/design-check.sh` -> "design-check: all controls pass", rc=0, 8 examples validated, 69 negatives, **29 + 18** planted defects all caught — including the two `D-KIND-4` negative cases that bind to the `#Namespace` guard, which proves that sharing the definition changed no behaviour. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
DESIGN.md/DESIGN.cue/TODO.md— the generic OCE alignmentAgent: charly (DeepSeek Harness session)
CLAIM — aligns opencharly's design with the concepts behind OpenClaw Enterprise, expressed generically
through the mechanisms charly already has rather than through OCE's vocabulary. Tracks #445.
Summary
Amends the design specification so the concepts behind OpenClaw Enterprise land as charly mechanisms rather
than as new charly concepts. Four targets, one change:
DESIGN.cue— the evaluator kindagent→harness(registry word,#Need's@ref, theharness-check/harness-runstep keywords,_intentWord);agentas an inner deployment workload(
#AgentNode/#AgentBody, derived into_deploymentKindthrough#InnerOfMachineAlt);#Namespace(a namespace is a named scope, never a kind word or a directive); a manager install carrying its owning
plugin's input (
#ManagerInput/#ManagerPackage/#PackageEntry,_managerPhasewith the derived_buildManagerWord/_applyManagerWord); parameterization as a choice (#InputAlt/#Input/#Inputs/#With, theinput/withfields); an append-only audit record (#AuditEvent/#AuditDetail/#Redacted);#StatusOutputwith theadmit/activatemethods; and#HostMethodIOgainingstate_commit/audit_append; and#Errorgainsrequest?: #CallIdanddetail?: [...#AuditDetail], so anerror carries the same request identity and the same redactable detail as the audit record.
DESIGN.md— the §3 register: the §2 registry's two new rows (input,audit record) and thenamespace redefinition with its
Notcell; the ten mirrored tables moved with the rename and the workload(four
_deploymentKindtables,_kindWord,#Need, §8.2's and §8.6's method tables, §11.1 and §12);D-NAME-1,D-VAL-4,D-REF-4,D-LOAD-6;D-CANDY-7, which requires every capability type that§15's need and provide tables define to appear in the OCI label contract — its completeness gate being the
proof, because
charly deploy from-boxreads labels and nothing else; theD-VAL-2proof split (local half inrules.cue,namespaced half as
D-VAL-9); the newD-AUDITarea (§17.9, five rows);D-KIND-4makingD-KIND-1's "a non-first-party kind is namespaced" checkable;D-HW-6(a venue declares thecapabilities and version it grants, asserted as a preflight — one rule, three instances);
S10(theforeign-owned-payload pattern, the boundary law's positive half); §2's
grantrow widened to the onegeneric authority model with §16.1's two instances; §19's
auditread; and A.7's +1 sentence.TODO.md— section 12, "OCE alignment", carrying all 15 migration rows: current · target · migration· code. These are the rows, not the work — each names what whichever repo will do it one day.
scripts/design-consistency.shitself: its §2banned-term extraction now also reads backticked phrases, so a MULTI-WORD ban (
import alias,import namespace) is expressible where a comma split never could; and a new check 7 verifies everytable's shape — cell count and terminator — in
DESIGN.mdandTODO.md. Twoselftest.tsvrows prove bothmechanisms catch a planted defect. Also
rules.cue's two namespace messages with their two# expect:texts (they move together, or check 3 fails),
load.cue'simport:mirror gaining the same#Namespaceguard the schema states, five negative cases added (D-IR-7's
builder_boxreplacement, D-IR-5,D-KIND-4's two halves, D-VAL-2's namespaced-reference half), two renamed, and three more
selftest.tsvrowsupdated to the content they point at.
DESIGN.mdnow holds 18 example blocks, while the check reports8 examples validated: a
uses-contextfragment is validated as part of the shared project rather thanalone, and the six landable staged blocks are among the 18.
Not done here, by design: nothing is implemented. Every capability that needs code is a
TODO.mdrow.How tested
bash scripts/design-check.sh—design-check: all controls pass, rc=0, on the final tree. Fivecontrols: the pinned toolchain (cue v0.17.1, sha256-verified),
DESIGN.md↔DESIGN.cuebidirectionally(including every
<!-- schema: … -->mirror, every// D-…tag againstdesign/negative/, every §5.4 rowagainst a §7.1 owner, contiguity of every rule id, and check 5's banned-term registry), the examples and
negative cases (69 negatives), and the check's own self-tests — 29 + 18 planted defects, all caught, so
the change does not hollow out the checker it passes.
One caveat a reviewer must know: the first attempt passed the gate while carrying seven contradictions —
the gate proves a design is self-consistent, never complete, because it checks only the mirrors declared
with
<!-- schema: … -->. An independent read of the register against the shipped files is what found them.Proven, not asserted, during the work: the check is green on the pristine tree first (143 s, so any later
failure is this change's);
TestExtractMetadata_HostNeedLabel-style non-vacuity was applied to each newnegative case (each is rejected for the right reason, with the message pasted in
plan/openclaw-enterprise-ledger.md§17); and every R5 sweep ended with a claim-keyedgit grepratherthan a replace count — which is how a fifth
agent-runspan, and two silently droppedTODO.mdrows, werecaught.
One defect this change shipped, and the gap it exposed — both now closed. The org's validator found a
malformed §5.4 row: the
D-VAL-2row carried five cells in a four-column table, because a split-proof notewas appended instead of folded into its
Design checkcell. The check could not see it — it verified mirrors,ids, tags and § references, never column structure — so a green gate coexisted with a broken normative table.
Both are fixed here: the row is folded back to four cells and re-terminated, and check 7 now verifies every
table's shape in
DESIGN.mdandTODO.md, with aselftest.tsvrow proving it catches a planted fifth cell.Rulebook compliance
Part I R0–R10 and Part II 1–9, each answered.
/charly-internals:cutover-policyfor the rename sweep, and/charly-internals:git-workflowbefore every git action.#AgentBody/DESIGN.mdfrom:contradiction, the unguardedload.cuemirror and the half-landed rename were each traced to cause. The three independent audits exist precisely because the gate cannot see their class of defect._intentWord,#Need, the tables, the messages, the negative cases and the command list.because the
#Namespacescalar already enforces the guard, and the withdrawnD-REF-9was droppedrather than renumbered because it duplicated
D-VAL-4/D-VAL-9. Two duplications this change haditself introduced were then removed at the root:
#Namespacewas a verbatim copy of#TopNameand nowshares it, and
_managerWordrestated_managerPhase's seven keys as a second literal and is nowderived from that one table (
[for w, _ in _managerPhase {w}]) — so the comment that claimed"one entry in one place" is true as written.
ghmutation, and the gate's two real blocks were fixed at their cause.check (list-)?agent\breturns none,_applyManagerWordhas no reference, and noDESIGN.md:<line>orledger §citation survives.feat/oce-generic-alignmentin a session worktree; the main checkout's other-session changes were never touched. No force-push, no history rewrite, no hook bypass.charlybuild.scripts/design-check.sh, green on the final committed tree (see How tested). Nodisposable: truetarget applies to a specification change, which is the class this is..worktrees/oce-align/opencharly, branched off freshorigin/main, with tracked submodules at their gitlinks.CLAIM.Agent:first, the italicAssisted-by:trailer last.Change classification
Specification and design-check change, non-runtime. The four targets are the design specification and the
design check's own artifacts, and those artifacts include
scripts/design-consistency.sh: the check itselfgains two mechanisms (multi-word §2 bans; table shape), each proven by a
selftest.tsvrow. There is no productcode, no generated Go, no
spec/schema/*.cue, and no pin or gitlink —git diff --rawshows 15 paths, everymode
100644, no160000. So no schema migration and no R10 bed applies, and the check that owns this class isscripts/design-check.sh, which passes on the final tree.Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)