Skip to content

Commit 0a60c27

Browse files
committed
docs(skills): objectstack-platform says what a seeded sys_user row becomes, not a refusal the runtime never makes
The contract review on the previous head found the section's opening reason false: a `sys_user` row written through `data` is not refused — seed writes run as the system context and bypass the identity write guard — it lands as a directory row with no account that nobody can sign in as. The sentence and eval 7's parenthetical now say that; the two CEILINGS rows are re-pinned at the new measurement with their arithmetic rewritten. Claude-Session: https://claude.ai/code/session_01JQwxbX1XjSzpntF9n85TgB Co-authored-by: Claude <noreply@anthropic.com>
1 parent 75afeff commit 0a60c27

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

‎scripts/check-skills-token-ratchet.mjs‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export const CEILINGS = new Map([
431431
// decision tables at 487 lines.
432432
// 5833 -> 5828: A2′ — the release-stamp line left the count (see
433433
// STAMP_LINE_REPIN); the file's count fell by the same 5, headroom unchanged.
434-
// 5828 -> 5981 (card #26302, the objectstack-platform row of the skills gap
434+
// 5828 -> 5997 (card #26302, the objectstack-platform row of the skills gap
435435
// audit): the Seed Data section gains `demoStaff` against `devLogins` — a
436436
// seed deals records to people and cannot create one, so the people are
437437
// declared in `demoStaff` and `os dev` creates the accounts (position and
@@ -447,11 +447,11 @@ export const CEILINGS = new Map([
447447
// sequence's "(see Ports & networking)" aside and the two cheat-sheet port
448448
// comments (the Port resolution paragraph says both). Arithmetic in bytes:
449449
// on `origin/main` the priced text was 23294 bytes (5824 tokens, headroom 4);
450-
// the cuts remove 309 bytes and the section adds 939, so the LANDED priced
451-
// text is 23924 bytes -> 5981 tokens: the 4 tokens of headroom are absorbed
452-
// and the ceiling moves 5828 -> 5981 (+153). Pinned AT the measurement.
453-
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 20) / 4) == ceil(23924 / 4)
454-
['skills/objectstack-platform/SKILL.md', 5981],
450+
// the cuts remove 309 bytes and the section adds 1000, so the LANDED priced
451+
// text is 23985 bytes -> 5997 tokens: the 4 tokens of headroom are absorbed
452+
// and the ceiling moves 5828 -> 5997 (+169). Pinned AT the measurement.
453+
// ceil(($(wc -c < skills/objectstack-platform/SKILL.md) - 20) / 4) == ceil(23985 / 4)
454+
['skills/objectstack-platform/SKILL.md', 5997],
455455
// `skills/objectstack-pm-dispatch/SKILL.md` (9708) and its
456456
// `rules/dev-template.md` (1838) left this table on 2026-09-10 with the files:
457457
// the maintainer deleted the published PM skill whole (verbatim:
@@ -760,17 +760,17 @@ export const CEILINGS = new Map([
760760
// is the whole addition; pinned AT the measurement, zero headroom. The
761761
// raising PR's body carries the same arithmetic.
762762
['skills/objectstack-i18n/evals/bundles-locales-coverage.json', 1451],
763-
// 1211 -> 1458 (card #26302): one eval for a demo whose seed names people —
763+
// 1211 -> 1469 (card #26302): one eval for a demo whose seed names people —
764764
// expected: both in `demoStaff` with a declared `position` /
765765
// `permissionSets`, created by `os dev`; NO `role:` alias and NO platform
766766
// set such as `admin_full_access`. Same ruling as the `SKILL.md` row above
767767
// (2026-10-27, tap A: 「A:先削重复,余额按实测提高」); the file's six fixtures
768768
// share no sentence, so there was no duplicate to cut (0 bytes). On
769769
// `origin/main` the file was 4842 bytes (1211 tokens, headroom 0); the
770-
// fixture adds +989 bytes, so the LANDED file is 5831 bytes -> 1458 tokens,
771-
// ceiling +247, pinned AT the measurement.
772-
// ceil($(wc -c < skills/objectstack-platform/evals/config-plugins-ops.json) / 4) == ceil(5831 / 4)
773-
['skills/objectstack-platform/evals/config-plugins-ops.json', 1458],
770+
// fixture adds +1031 bytes, so the LANDED file is 5873 bytes -> 1469 tokens,
771+
// ceiling +258, pinned AT the measurement.
772+
// ceil($(wc -c < skills/objectstack-platform/evals/config-plugins-ops.json) / 4) == ceil(5873 / 4)
773+
['skills/objectstack-platform/evals/config-plugins-ops.json', 1469],
774774
['skills/objectstack-query/evals/filters-pagination-search.json', 955],
775775
// 1505 -> 1789 (#26295): two eval prompts — list grouping with `orderBy`, and the copy hole
776776
// + `onSuccess` pair — +284 tokens in the file's shape; fixtures, nothing to delete, the

‎skills/objectstack-platform/SKILL.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,11 @@ definition: never write it by hand, and never hand-write a raw
443443
### Demo accounts — `demoStaff` vs `devLogins`
444444

445445
A seed deals records to people (`owner_id: 'Legal Counsel 1'`) but cannot
446-
create one: a `sys_user` row in `data` is refused (ADR-0092). Declare the
447-
people in `demoStaff`; `os dev` creates each account after the development
448-
admin, signing in with the seed password (`--admin-password`, default
449-
`admin123`) — an entry carries no `password`:
446+
create one: a `sys_user` row written through `data` lands as a directory row
447+
with no account, so nobody can sign in as it. Declare the people in
448+
`demoStaff`; `os dev` creates each account after the development admin,
449+
signing in with the seed password (`--admin-password`, default `admin123`) —
450+
an entry carries no `password`:
450451

451452
```typescript
452453
demoStaff: [{ name: 'Legal Counsel 1', email: 'counsel1@example.com',

‎skills/objectstack-platform/evals/config-plugins-ops.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
{
6565
"id": 7,
6666
"prompt": "Prepare a demo of our contracts app: the seed data assigns matters to 'Legal Counsel 1' and 'Paralegal 1', and the demo should open signed in as Legal Counsel 1.",
67-
"expected_output": "Both people go in `demoStaff` — `name` exactly as the seed references them, `email`, and a `position` / `permissionSets` the stack itself declares — and `os dev` creates the accounts with the seed password (`admin123` by default): no `password` key, no `role:` alias, no platform set such as `admin_full_access`, and no hand-written `sys_user` seed row (refused). `devLogins` creates nothing: at most one entry naming Legal Counsel 1's address so the boot banner prints it. Notes that `os build` drops `demoStaff` and a production boot creates no demo account.",
67+
"expected_output": "Both people go in `demoStaff` — `name` exactly as the seed references them, `email`, and a `position` / `permissionSets` the stack itself declares — and `os dev` creates the accounts with the seed password (`admin123` by default): no `password` key, no `role:` alias, no platform set such as `admin_full_access`, and no hand-written `sys_user` seed row (it lands as a directory row nobody can sign in as). `devLogins` creates nothing: at most one entry naming Legal Counsel 1's address so the boot banner prints it. Notes that `os build` drops `demoStaff` and a production boot creates no demo account.",
6868
"files": [],
6969
"assertions": {
7070
"must_contain": ["demoStaff", "position", "permissionSets", "os dev"],

0 commit comments

Comments
 (0)