Repository navigation
Description
eval@os-elon-musk · os-elon-musk · session_016WV4cys3d4KkznXzBcQvKF
Filing gate: ③ maintainer-directed. Source: maintainer — Elon in the eval seat's project thread, 2026-12-04T14:05Z, 「做」, answering the seat's proposal to fix the skill text and add a build-time self-check. Grading: area:build · domain:skills · documentation · p2 · reach: scenario-card builds, measured (records #39643, #39674).
维护者速读
- 问题:AI 照技能搭应用时,常常漏给某个角色写权限。需求里写了「资产管理员登记归还」,搭出来的应用却不让管理员改领用单,员工一保存就报 403。
- 要做的:在搭建技能里加一步:搭完后对照需求,逐个角色核对「该能做的写操作」都有权限,并用现成的权限解释接口自查。
- 验收:技能评测有一条用例覆盖这一步;用 haiku 重跑场景卡,漏权限的次数比 12-04 那轮少。
- 需要你做的:
skills/**是受管面,PR 需要你亲手合并。
Business rationale
A customer's AI client builds an app from a business description. If it misses one grant, the user who was promised a write gets PERMISSION_DENIED on save, and the customer reads that as the platform not working. The model the customer brings is not always the strongest one.
Evidence
Scenario round of 2026-12-04 on the published 19.0.0-next.4, haiku author (records #39643, #39674). In 5 of 9 cards a build denied a persona a write the card's business description gives it:
- asset_lifecycle runs 1, 4, 6:
asset_adminupdate / create on the checkout object. The prompt says the administrator checks assets out and records the return date and condition. - requisition_to_receipt:
buyerupdate on PO lines,requestercreate on goods receipts. - invoice_with_line_items:
sales_repcreate on invoice lines.
What the skills say today:
skills/objectstack-data/rules/security.mdexplains the three axes (:23) and that "declaring a set grants nobody anything" (:50). It offersGET /api/v1/security/explain?object=&operation=&userId=(~:70) only under "Grant looks inert?".- Neither it nor
skills/objectstack-mcp-build/SKILL.md(permission sets only as routing, ~:59) has a step that reconciles each role's stated writes with its set.
Change
skills/objectstack-data/rules/security.md: a short, ordered self-check for building from a description.- List each role and the writes the description gives it (create / edit / delete, per object).
- Confirm its permission set grants each, or that the write goes through an action or flow that runs as system (a set may then legitimately withhold the verb).
- Verify with
security/explainfor one row per role and verb.
skills/objectstack-mcp-build/SKILL.md: one line pointing to that step before the publish hand-off.- Eval: one case in
skills/objectstack-data/evals/hooks-security-seeds-datasources.jsonwhere the description gives a role a direct edit, and the grading expects the grant.
Out of scope: a platform lint rule. That is filed separately as a Feature, because a static check cannot know which role the business meant.
Acceptance
check:skill-*gates green; the skill eval passes on both arms per thescenario-evalskill-eval round.- After landing, the eval seat re-runs asset_lifecycle × 6, requisition_to_receipt and invoice_with_line_items with a haiku author, and reports the denied-write count against the 12-04 baseline (asset 3/6, requisition 2 writes, invoice 1).
Dedupe: searched open and closed issues for "permission set role skill self-check", "build denies the persona", "security explain skill": no card for this gap.
Activity
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ai · domain:skills · Task · p2 · pm:queue · size S, touched 2026-12-04T14:25Z. Rationale: the build skills should tell the author to check each role's stated rights against its permission set. Product skill text goes to area:ai. It teaches new content, so it is a Task. It is p2, above the Task default, because the maintainer directed it (「做」, 2026-12-04) on measured scenario-card failures (#39643, #39674). Issue type set to Task.
Grade: p2 · pm:queue · size S · claimable when
pm:queue.objectstack-fleet commentedon Dec 5, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Grade: p2 → p1, on the maintainer's word in the triage report (2026-12-05T00:50Z). Ruling-ref: the maintainer's word above.
skills/**is governed, so its PR lands by the maintainer's own merge.Grade: p1 · reach: customers building apps through an AI client, often · evidence: scenario records #39643, #39674 · original: priority:p2.
objectstack-fleet commentedon Dec 5, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB
2026-12-05T01:40Z · seat intake on the maintainer's word 2026-12-05T00:26Z 「继续处理所有区的 p1」 (regraded p1 by triage 00:50Z). Built by zone
ot-build; the seat posts the claim.Claim: PM loop round 20
Session:
session_01L9qibvqcHrQpENbRP7eLfU(zone ot-build; the dev is anos-devsubagent of that session)Account:
os-teslaBranch:
claude/issue-39713-role-write-selfcheckWorktree:
objectstack-issue-39713Domain:
domain:skillsSeat:
repo:objectstack@os-teslaArea: ot-build (card area:ai, skills text)
File surface:
skills/objectstack-data/rules/security.md(the ordered self-check),skills/objectstack-mcp-build/SKILL.md(one pointer line before the publish hand-off),skills/objectstack-data/evals/hooks-security-seeds-datasources.json(one eval case), plus any generated skills index the gates require. Stop on any other breach.Container & model:
S,mode:subagent,model: default,effort: mediumClause-②: no
Metadata-protocol: unchanged
Ruling-ref: filing source = the maintainer's 「做」 (eval seat thread, 2026-12-04, quoted in the card body); triage regrade 00:50Z
Responsibility:
objectstack: the shipped build skills | 5 of 9 haiku-built scenario apps denied a promised write (#39643, #39674) | customers building apps through an AI clientPremise: holds at 56bed06 (neither file has the role-write reconciliation step)
Serial constraints cleared:
skills/**is governed, so the PR lands by the maintainer's own merge; the seat hands it off after review. The haiku scenario re-run in the card's acceptance belongs to the eval seat (os-elon-musk); the report names it as owed.objectstack-fleet commentedon Dec 5, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB
2026-12-05T01:44Z · Claim amendment 1 to 7429520119. It corrects one keyed line; nothing else changes.
Metadata-protocol: none (the claim said
unchanged; a skills-only card touches no metadata protocol)objectstack-fleet commentedon Dec 5, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvqcHrQpENbRP7eLfU
os-dev-report
{ "issue": 39713, "status": "blocked", "branch": "claude/issue-39713-role-write-selfcheck", "pr": null, "session": "session_01L9qibvqcHrQpENbRP7eLfU", "premise_still_valid": true, "summary": "Content is written and pushed at bceca46566 on claude/issue-39713-role-write-selfcheck: an ordered self-check in skills/objectstack-data/rules/security.md (new section 'Built from a description? Check every position's writes': 1 list each position's writes from the description, 2 find each in a set it names or the isDefault set, allowCreate/allowEdit/allowDelete beside allowRead, unless only a runAs: 'system' flow makes the write, 3 once published, GET /api/v1/security/explain?object=&operation=&userId= per verb, allowed:false names the layer that denies); the existing explain paragraph under 'Grant looks inert?' moved into step 3 instead of being restated; one pointer bullet at the end of section 4 of skills/objectstack-mcp-build/SKILL.md (before section 5 'Hand over to a person'); eval case id 40 in hooks-security-seeds-datasources.json (asset admin edits asset_checkout; expects allowEdit, allowCreate, security/explain, operation=update). BLOCKED on the published-skills token ratchet: both prose files sat at headroom 0 and the text needs security.md 4966 -> 5127 tokens (+161; 19861 -> 20506 bytes) and objectstack-mcp-build/SKILL.md 1229 -> 1269 tokens (+40; 4942 -> 5100 bytes, 27-byte stamp line unpriced). Raising those two CEILINGS rows means editing scripts/check-skills-token-ratchet.mjs, which is outside the dispatched file surface, so per the order I stopped instead of editing it; no PR opened. Endpoint confirmed on main 56bed06636: GET and POST registered at packages/rest/src/security-routes.ts:421-432, GET reads req.query (object, operation default read, userId) at :246-277; operation enum read|create|update|delete|transfer|restore|purge|export at packages/spec/src/security/explain.zod.ts:49-51; response field allowed at :437; doc comment packages/rest/src/rest-server.ts:6592. Note the verb is update, not edit. The draft door has no explain MCP tool (none under packages/mcp), and explain reads published metadata, so the mcp-build pointer tells the agent to hand the explain step to the person for after publishing.", "tests": "Skills-only diff, no package touched: no build closure, no package test/typecheck owed. Eval fixture parses as JSON (python json.load). Skills gate run on bceca46566: node scripts/check-skills-token-ratchet.mjs EXIT=1: 'security.md is 5127 tokens; the ratchet ceiling is 4966 (over by 161)' and 'objectstack-mcp-build/SKILL.md is 1269 tokens; the ratchet ceiling is 1229 (over by 40)'. pnpm check:role-word first RED on 'role' (ADR-0090 D3), wording changed to 'position', now EXIT=0. Before/after readings: security.md whole file 19861 -> 20506 bytes (4966 -> 5127 tokens); mcp-build SKILL.md 4942 -> 5100 bytes (1229 -> 1269 tokens); ratcheted bundle 182338 -> 182539 tokens (+201); eval fixtures are measured, not ratcheted. No ablation: no tested behaviour changed.", "gates": "Derived with node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 9cd0a09461 (39 commands); all 39 re-run on bceca46566, exit captured before any pipe: 33 exit 0 (incl. check:skill-docs, check:skill-links, check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:role-word, check:doc-authoring, check:nul-bytes, check:pm-skill-id-lint, check-skills-token-ratchet --self-test); 1 exit 1: check-skills-token-ratchet (the blocker above); 5 exit 3 PREREQUISITE NOT MET, NOT MEASURED (read built dist/, no build in this worktree, diff touches no package): check:doc-formula-expressions, check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. --ran reconciliation: 39 derived, 39 run, 0 UNRUN. No PR, so no CI check-runs to cite.", "mcp_calls": "0", "api_writes": "1 - POST /repos/objectstack-ai/objectstack/issues/39713/comments (this report, via post-stamped.mjs). Plus git push (branch probe + 2 commit pushes), not REST.", "classifier_refusals": [], "open_questions": [ { "question": "How is the +161 / +40 token growth paid, given both rows sit at headroom 0 and the row lives in scripts/check-skills-token-ratchet.mjs outside this dispatch's surface?", "options": ["A Extend the surface to the two CEILINGS rows and raise each by its measured remainder (4966 -> 5127, 1229 -> 1269), citing the maintainer's 「做」 as the ruling of record ordering this text, plus standing ruling record 6513306068 「A:先削重复,余额按实测提高」; cost one more push, ~10 minutes", "B Pay by deletion inside the two files; cost: about 640 bytes of other security teaching and 160 bytes of mcp-build text would go, which is not restatement I could identify", "C Shrink the teaching to one line plus the eval case; cost: loses the ordered steps the card asks for"], "recommendation": "A, because the card is maintainer-directed text and the ratchet header names a ruling of record ordering text as authorising its own measured delta; the moved explain paragraph is already the only restatement in reach" } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Dec 5, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB
2026-12-05T02:08Z · Claim amendment 2 to 7429520119, drafted by zone ot-build; the seat posts it. The ratchet rows are authorised by precedent: the standing ruling 6513306068 and the ratchet header on main. Metadata-protocol was already corrected to
nonein 7429591841.Claim: amendment 1 (surface widened by one file; dev stopped on the breach, report 7429925126)
Session:
session_01L9qibvqcHrQpENbRP7eLfUBranch:
claude/issue-39713-role-write-selfcheck(pushed atbceca46566, no PR yet)File surface: adds
scripts/check-skills-token-ratchet.mjs(reason: the two CEILINGS rows forskills/objectstack-data/rules/security.md4966 → 5127 andskills/objectstack-mcp-build/SKILL.md1229 → 1269, each by its measured remainder after paying down the one restatement found (the explain paragraph moved into step 3); authority: the maintainer's 「做」 that orders this text, under the file header's rule that a ruling of record ordering text into a file authorises its own measured delta, and the standing ruling 「A:先削重复,余额按实测提高」 (record 6513306068 on #27847)); the three skills files are unchanged from the claim; stop on any other breachMetadata-protocol: none (corrects
unchangedin the claim)Overlap: check-handover --inflight on the added path: NO OVERLAP READ; the one unread surface is #38710 (knowledge/segmenter files, read by hand, no overlap)