Skip to content

docs(design)!: align DESIGN.* and TODO.md with the concepts behind OpenClaw Enterprise - #454

Merged
github-actions[bot] merged 9 commits into
mainfrom
feat/oce-alignment-clean
Oct 9, 2026
Merged

github-actions[bot] merged 9 commits into
mainfrom
feat/oce-alignment-clean

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

DESIGN.md / DESIGN.cue / TODO.md — the generic OCE alignment

Agent: charly (DeepSeek Harness session)

Supersedes #452, which the org's validator auto-closed after five counting verdicts; every finding it
raised is fixed here.

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 kind agent → harness (registry word, #Need's @ref, the
    harness-check/harness-run step keywords, _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); a manager install carrying its owning
    plugin's input (#ManagerInput/#ManagerPackage/#PackageEntry, _managerPhase with the derived
    _buildManagerWord and #BuildManager — the table's apply-phase rows serve to EXCLUDE those words from the build-time set, so there is no second _applyManagerWord to drift); parameterization as a choice (#InputAlt/#Input/#Inputs/
    #With, the input/with fields); an append-only audit record (#AuditEvent/#AuditDetail/
    #Redacted); #StatusOutput with the admit/activate methods; and #HostMethodIO gaining
    state_commit/audit_append; and #Error gains request?: #CallId and detail?: [...#AuditDetail], so an
    error 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 the
    namespace redefinition with its Not cell; the ten mirrored tables moved with the rename and the workload
    (four _deploymentKind tables, _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-box reads labels and nothing else; 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); D-KIND-4 making
    D-KIND-1's "a non-first-party kind is namespaced" checkable; D-HW-6 (a venue declares the
    capabilities and version it grants, asserted as a preflight — one rule, three instances); S10 (the
    foreign-owned-payload pattern, the boundary law's positive half); §1's P1–P4 principles table, six new
    normative lines stating that the laws fix a shape while these four decide a proposal —
    mechanism-not-instance, one-term-many-instances, derived-never-authored, no-foreign-concept — so a change
    needing an exception is redesigned rather than amended; §2's grant row widened to the one
    generic authority model with §16.1's two instances; §19's audit read; 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.
  • the design check's own artifacts, including scripts/design-consistency.sh itself: its §2
    banned-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 every
    table's shape — cell count and terminator — in DESIGN.md and TODO.md. Two selftest.tsv rows prove both
    mechanisms 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's import: mirror gaining the same #Namespace
    guard the schema states, 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), two renamed, and three more selftest.tsv rows
    updated to the content they point at. DESIGN.md now holds 18 example blocks, while the check reports
    8 examples validated: a uses-context fragment is validated as part of the shared project rather than
    alone, 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.md row.

How tested

bash scripts/design-check.sh — design-check: all controls pass, rc=0, on the final tree. Five
controls: the pinned toolchain (cue v0.17.1, sha256-verified), DESIGN.md ↔ DESIGN.cue bidirectionally
(including every <!-- schema: … --> mirror, every // D-… tag against design/negative/, every §5.4 row
against 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 new
negative 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-keyed git grep rather
than a replace count — which is how a fifth agent-run span, and two silently dropped TODO.md rows, were
caught.

The R5 sweeps, run on the head being published — every one returns nothing, so no legacy path survives:

$ git grep -nE "check (list-)?agent\b" -- DESIGN.md DESIGN.cue TODO.md design scripts
  (no matches)
$ git grep -n _applyManagerWord -- DESIGN.md DESIGN.cue TODO.md design scripts
  (no matches)
$ git grep -nE "DESIGN\.md:[0-9]+|ledger §" -- DESIGN.md DESIGN.cue TODO.md design scripts
  (no matches)

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-2 row carried five cells in a four-column table, because a split-proof note
was appended instead of folded into its Design check cell. 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.md and TODO.md, with a selftest.tsv row proving it catches a planted fifth cell.

Rulebook compliance

Part I R0–R10 and Part II 1–11, each answered.

  • R0 (skills first). The dispatcher-selected skills were loaded before acting: /charly-internals:cutover-policy for the rename sweep, and /charly-internals:git-workflow before every git action.
  • R1 (RCA every anomaly). Each anomaly got a mechanism before a remedy. The pre-commit gate blocking, the #AgentBody/DESIGN.md from: contradiction, the unguarded load.cue mirror 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.
  • R2 (finish the cutover). Every in-scope occurrence moved: the rename spans the kind, the step keywords, _intentWord, #Need, the tables, the messages, the negative cases and the command list.
  • R3 (no duplication). One canonical statement per rule. A second check mechanism was refused
    because the #Namespace scalar already enforces the guard, and the withdrawn D-REF-9 was dropped
    rather than renumbered
    because it duplicated D-VAL-4/D-VAL-9. Two duplications this change had
    itself introduced were then removed at the root: #Namespace was a verbatim copy of #TopName and now
    shares it, and _managerWord restated _managerPhase's seven keys as a second literal and is now
    derived from that one table ([for w, _ in _managerPhase {w}]) — so the comment that claimed
    "one entry in one place" is true as written.
  • R4 (no workarounds). No sleeps, suppressions or fallback paths. An approval rejection was treated as final rather than routed around with a raw gh mutation, and the gate's two real blocks were fixed at their cause.
  • R5 (delete legacy). The sweep is proven by a claim-keyed re-grep, not by a replace count: check (list-)?agent\b returns none, _applyManagerWord has no reference, and no DESIGN.md:<line> or ledger § citation survives.
  • R6 (preserve user work, git safety). All work on feat/oce-generic-alignment in a session worktree; the main checkout's other-session changes were never touched. No force-push, no history rewrite, no hook bypass.
  • R7 (prove behavior). Each added negative case was verified rejected for its own rule's reason — see the commands and their output in How tested, below — by reading the message the check emits; the check's planted defects fail without their mechanism.
  • R8 (preserve emitted artifacts). Emitted artifacts are validated at their real boundary: 8 examples validated, 69 negative cases checked and the check's own 29 + 18 planted defects, all on the final committed tree.
  • R9 (binary equals source). No binary-vs-source question arises: this change compiles nothing, runs nothing, and produces no artifact by means of a charly build.
  • R10 (fresh disposable proof). The change-class gate is scripts/design-check.sh, green on the final committed tree (see How tested). No disposable: true target applies to a specification change, which is the class this is.
  • Part II 1 (never edit inside a submodule). No submodule was edited; the diff moves no gitlink.
  • Part II 2 (session worktree). Work happened in .worktrees/oce-align/opencharly, branched off fresh origin/main, with tracked submodules at their gitlinks.
  • Part II 3 (pins are gitlinks; Policy B). No pin or gitlink moves: git diff --raw against the merge-base
    shows no 160000 entry, and charly, layer-openclaw and marketplace sit at their gitlinks.
  • Part II 4 (read the subrepo's own rulebook first). No submodule was edited, so no subrepo rulebook
    applied; this umbrella's own AGENTS.md governed the work.
  • Part II 5 (harness config lives only in the umbrella). No harness configuration was touched.
  • Part II 6 (issue-first). The work runs under ledger: align DESIGN.md / DESIGN.cue / TODO.md with the OpenClaw Enterprise concepts (redesign, not integration) #445, which carries the CLAIM.
  • Part II 7 (identity grammar). Agent: first, the italic Assisted-by: trailer last, and every
    coordination comment opens with a label from CLAIM · OWNING · … · RESOLVED.
  • Part II 8 (before ANY update push, read live state AND write the body). Every update push did both
    first: the validator's latest verdict and every prior comment were read, its findings fixed in
    append-only commits, the whole body rewritten for the new head, pr_body_lint.py run, and pre-push
    passed (pre-push: OK) before anything was published.
  • Part II 9 (ledger and interruption safety). A durable ledger records every running subagent, open PR,
    blocker and long-running operation, and it is reconciled at each round before acting — including the
    thread auto-close and this handover to a fresh PR.
  • Part II 10 (goal budget and continuation safety). The goal's max_goal_rounds was sized to the
    objective's projection, and when the work passed ~80% of that budget with work remaining the operator was
    asked how to proceed rather than an ending being narrated.
  • Part II 11 (keep other sessions informed). Every milestone is posted on the issue and the PRs: ledger: align DESIGN.md / DESIGN.cue / TODO.md with the OpenClaw Enterprise concepts (redesign, not integration) #445
    carries the CLAIM, the auto-closed docs(design)!: align DESIGN.* and TODO.md with the concepts behind OpenClaw Enterprise #452 carries RESOLVED — superseded by #454, and this PR names docs(design)!: align DESIGN.* and TODO.md with the concepts behind OpenClaw Enterprise #452
    as its predecessor
    . Nothing is left to be discovered by polling, and no live claim was started or pushed
    over. No session blocked this work, so no BLOCKS comment was owed.

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 itself
gains two mechanisms (multi-word §2 bans; table shape), each proven by a selftest.tsv row. There is no product
code, no generated Go, no spec/schema/*.cue, and no pin or gitlink — git diff --raw shows 15 paths, every
mode 100644, no 160000. So no schema migration and no R10 bed applies, and the check that owns this class is
scripts/design-check.sh, which passes on the final tree.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

…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)
… 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)
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)
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: f6bccd2089bc6f0f1bdcb3f2bbc576f5175616fd (branch: feat/oce-alignment-clean)

Change class: design-specification + design-check change (non-runtime): DESIGN.md/DESIGN.cue/TODO.md, design/{example,negative,consistency}, and scripts/design-consistency.sh. No product code, no generated Go, no schema/gitlink.

Security screen: PASS (no injection, no secrets/egress, no guardrail weakening; design-consistency.sh is a design check, not in the T3 security-machinery list).

Blocks

  1. R5 / CONC(d) — sweep claimed, command output not pasted. The body's R5 evidence is a described-but-unpasted grep: "check (list-)?agent\b returns none, _applyManagerWord has no reference, and no DESIGN.md:<line> or ledger § citation survives." That is the "I grepped and found none" pattern with no real command and no real output in the body — the only pointer is plan/openclaw-enterprise-ledger.md §17, a file that is not among the 15 changed files and is not supplied anywhere in this PR. Per CONC(d) an unexecuted/unpasted sweep claim is fraud-class. Fix: paste the actual git grep invocations (git grep -nE 'check (list-)?agent\b', git grep -n _applyManagerWord, the DESIGN.md:<line>/ledger § citation sweep) and their real output into the How tested block.

  2. A1 — rule-compliance section does not answer every applicable rule it claims. The section opens "Part I R0–R10 and Part II 1–9, each answered." but then answers only Part II 1, 2, 6 and 7 — items 3, 4, 5, 8 and 9 (and the rulebook's Part II extends to at least chore: sync gitlinks to the landed sdk de-submodule cutover #11) are absent, and the stated range 1–9 does not match the rulebook's Part II. A compliance section that asserts coverage it does not provide, and leaves applicable rules with neither a one-line HOW nor an explicit N/A — <reason>, is an incomplete body. Fix: answer every Part II item (correct range) with a one-line HOW, or N/A — <reason> where the change class excludes it.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: f6bccd2089bc6f0f1bdcb3f2bbc576f5175616fd (branch: feat/oce-alignment-clean)

Change class: design-specification + design-check change (non-runtime): DESIGN.md/DESIGN.cue/TODO.md, design/{example,negative,consistency}, scripts/design-consistency.sh. No product code, no generated Go, no spec/schema/*.cue, no gitlink.

Security screen: PASS (no injection/social-engineering; no secrets or egress; scripts/design-consistency.sh is the design check, not one of the T3 security gates — no guardrail weakening).

Comment thread: @github-actions[bot] finding 1 (R5 sweep claimed but not pasted) → stale-superseded: the CURRENT body's How tested block now pastes the three git grep invocations and their real (no matches) output, so the claim does not reproduce against the current body. Finding 2 (rule-compliance section incomplete) → verified-blocking and only partially resolved (see below).

Blocks

  1. A1 — rule-compliance section is incomplete; the "Part II 1–9" range claim is false. The body asserts "Part I R0–R10 and Part II 1–9, each answered" and then answers Part II items 1–9 only. The project rulebook's Part II extends to at least chore: sync gitlinks to the landed sdk de-submodule cutover #11 — this check's own COORD duties are defined against Part II chore: sync all submodule pins; spec no longer charly-pinned #6, fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7 and chore: sync gitlinks to the landed sdk de-submodule cutover #11 — so items feat(policy): drop sdk from charly-pinned set (charly de-submoduled sdk) #10 and chore: sync gitlinks to the landed sdk de-submodule cutover #11 are neither answered with a one-line HOW nor excluded with an explicit N/A — <reason>. This is the prior BLOCK's finding 2 left only partially discharged: items 3, 4, 5, 8 and 9 were added, but the stated range was never corrected and no rebuttal appears on the thread (R1: a finding raised on the PR is fixed in the CURRENT body or rebutted with evidence, never silently left). The concrete surviving instance is chore: sync gitlinks to the landed sdk de-submodule cutover #11: its duty — a BLOCKS comment naming both sides, and a successor PR naming its predecessor — is not addressed even though the body says it "tracks ledger: align DESIGN.md / DESIGN.cue / TODO.md with the OpenClaw Enterprise concepts (redesign, not integration) #445" and hands over to "a fresh PR" (feat/oce-alignment-clean from feat/oce-generic-alignment). Fix: correct the stated Part II range to the rulebook's actual extent and answer every remaining item (feat(policy): drop sdk from charly-pinned set (charly de-submoduled sdk) #10, chore: sync gitlinks to the landed sdk de-submodule cutover #11) with a one-line HOW, or N/A — <reason> where the change class genuinely excludes it.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: f6bccd2089bc6f0f1bdcb3f2bbc576f5175616fd (branch: feat/oce-alignment-clean)

Security screen: PASS (no injection/social-engineering, no secrets/egress/deps, no guardrail weakening — scripts/design-consistency.sh is the design check, not in the T3 security-machinery list).
Checklist: All applicable rules PASS or NA (non-runtime spec + design-check change; no bed/gitlink/schema-gen applies).

Comment dispositions:

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant