Skip to content

Commit baf4894

Browse files
committed
docs(skills): review fixes — audit verify exit wording, operator pointers, milestone token path
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgWxqfFaGCWssNvt6hh
1 parent b27a933 commit baf4894

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎packages/spec/src/system/i18n-resolver.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4635,8 +4635,9 @@ export function normalizeSupportedLocales(
46354635
* the runtime HTTP dispatcher now mounts the endpoint — and this is the only
46364636
* path there is: `getFieldLabels` is optional on `II18nService` and NOTHING
46374637
* implements it (neither `memory-i18n` nor `file-i18n-adapter`), so the
4638-
* "dedicated method" branch both surfaces check first is dead and this
4639-
* derivation always runs. Keeping one copy each is how the dispatcher was
4638+
* "dedicated method" branch the dispatcher checks first (as service-i18n's
4639+
* route did) is dead and this derivation always runs. Keeping one copy each
4640+
* was how the dispatcher was
46404641
* left scanning the retired flat `o.<object>.fields.<field>` dialect after
46414642
* #3778 converged the tree on nested `objects.<object>.fields.<field>.label`
46424643
* and fixed only service-i18n's copy — a scan that cannot match a real bundle,

‎skills/objectstack-data/evals/objects-fields-relationships.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@
275275
{
276276
"id": 16,
277277
"prompt": "Our `consent_change` audit log must show it if anyone edits, inserts or deletes rows directly in the database, but whatever proof is stored must not carry the consent text itself. How do I declare that?",
278-
"expected_output": "Keep `lifecycle.class: 'audit'` with its bounding `retention` (or a `ttl` on `created_at`) and add `seal: { valueFields: ['consent_text'] }`: the audit plugin signs each `created_at` hour, per organization chain, into one checkpoint (or consecutive checkpoints of at most 10,000 rows), each chained to the one before, where `valueFields` columns enter as salted commitments and every other column in clear. The object declares its own `id` and a text or lookup `tenant_id` field; without that `tenant_id` (and with no `chainField` naming another chain column, such as the injected `organization_id`) it is refused at parse, as is a `chainField` naming a column the object lacks or one that cannot name an organization, and without `id` it parses but is not sealed, and the sealer reports it at `error` each hour. Refused at parse: `seal` on a class other than `audit`, `valueFields` naming `id`, `created_at` or an undeclared field, and beside `seal` a `retention` or `ttl` `onlyWhen`, a `ttl` on another field, or rotation `storage`. Signed expiry covers objects whose lifecycle is declared in packaged metadata, as this one is: its sealed rows leave only by whole checkpoints and read as `expired`. With no `archive`, a retention override below the declared window is rejected and the declared window applies; to keep rows for less time, shorten the declared window. On any other sealed object (one created at runtime) the sweeper still deletes sealed rows, which then read as missing. `os audit verify` checks the ledger and exits 1 on a changed, missing or unsealed row or a chain fault. Field history is not tamper evidence.",
278+
"expected_output": "Keep `lifecycle.class: 'audit'` with its bounding `retention` (or a `ttl` on `created_at`) and add `seal: { valueFields: ['consent_text'] }`: the audit plugin signs each `created_at` hour, per organization chain, into one checkpoint (or consecutive checkpoints of at most 10,000 rows), each chained to the one before, where `valueFields` columns enter as salted commitments and every other column in clear. The object declares its own `id` and a text or lookup `tenant_id` field; without that `tenant_id` (and with no `chainField` naming another chain column, such as the injected `organization_id`) it is refused at parse, as is a `chainField` naming a column the object lacks or one that cannot name an organization, and without `id` it parses but is not sealed, and the sealer reports it at `error` each hour. Refused at parse: `seal` on a class other than `audit`, `valueFields` naming `id`, `created_at` or an undeclared field, and beside `seal` a `retention` or `ttl` `onlyWhen`, a `ttl` on another field, or rotation `storage`. Signed expiry covers objects whose lifecycle is declared in packaged metadata, as this one is: its sealed rows leave only by whole checkpoints and read as `expired`. With no `archive`, a retention override below the declared window is rejected and the declared window applies; to keep rows for less time, shorten the declared window. On any other sealed object (one created at runtime) the sweeper still deletes sealed rows, which then read as missing. `os audit verify` checks the ledger and exits 1 on a changed, missing or unsealed row or a chain fault such as a row `listed_twice`. Field history is not tamper evidence.",
279279
"files": [],
280280
"assertions": {
281281
"must_contain": [

‎skills/objectstack-data/rules/lifecycle.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ lifecycle: { class: 'telemetry', retention: { maxAge: '14d', onlyWhen: { status:
9494
## Sealing (`seal`)
9595

9696
`seal` makes an `audit` ledger tamper-evident (ADR-0154): `os audit verify`
97-
exits 1 on a row edited, inserted or deleted outside the platform and on a
98-
chain fault (a link, a signature, a row `listed_twice`).
97+
(read-only) exits with code 1 on a changed, missing or unsealed row or a chain fault (a
98+
link, a signature, a row `listed_twice`).
9999

100100
Ten minutes after each `created_at` hour, `@objectstack/plugin-audit` signs
101101
its rows, per organization chain (plus one chain for rows about no

‎skills/objectstack-i18n/SKILL.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ exact Zod shape is `TranslationItemSchema` in
270270

271271
Both shipped adapters substitute
272272
**double-brace** `{{variable}}` placeholders only — single braces pass through
273-
unchanged. An activity-milestone summary (`_milestones.{field}.{value}`)
274-
keeps its authored `{field}` tokens.
273+
unchanged. A milestone summary (`_milestones.<field>.<value>.summary`) keeps its
274+
single-brace `{field}` tokens.
275275

276276
```json
277277
{

‎skills/objectstack-query/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ only). So the user-facing cases want `$icontains`:
157157
{ where: { email: { $icontains: '@company.com' } } }
158158
```
159159

160-
Full table, `$like` portability and the `$ilike` boundary: **[filter rules](./rules/filters.md)**.
160+
All examples, `$like` portability and the `$ilike` boundary: **[filter rules](./rules/filters.md)**.
161161

162162
### Null & Existence Operators
163163

‎skills/objectstack-query/rules/filters.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ An example of each operator:
2828

2929
Purpose, SQL equivalent, case sensitivity: SKILL.md, **Filter Operators**. `$like`/`$ilike` match the
3030
WHOLE value, so a pattern with no wildcard is an exact comparison, not
31-
a substring search. Their reach is narrower than the rest of the table: the SQL
31+
a substring search. Their reach is narrower than the other operators': the SQL
3232
family, `driver-memory` and `@objectstack/formula` answer them, while
3333
`driver-mongodb`, objectql `having` and service-analytics each keep an operator
3434
allowlist that omits them and refuse — `Unsupported filter operator`,

0 commit comments

Comments
 (0)