Skip to content

finding: the flow and hook readonly rules still carry the superseded "INSERT is engine-exempt" premise as a scan gap — a non-system create_record / ctx.api.insert of a readonly column is now a silent no-op nothing reports at build time #15394

Closed

Description

@claude

Found while implementing #14147 (the create-side readonly strip moving into engine.insert); filed unassigned and out of that PR's scope, because closing it introduces a new error-severity build finding and that is its own change.

What changed under these two rules

packages/lint/src/validate-readonly-flow-writes.ts and packages/lint/src/validate-readonly-hook-writes.ts both scan only update / updateById, and both justify the omission with the same sentence — that INSERT is engine-exempt from the author-declared static-readonly strip, so a create writing a readonly field is not a silent no-op:

//   - Only `update_record`. INSERT is engine-exempt from the readonly strip (a
//     `create_record` may legitimately seed readonly columns; the ingress strip
//     added in #3043 lives in metadata-protocol, which the flow engine bypasses
//     by calling the data engine directly), so a create writing a readonly
//     field is NOT a no-op and is never flagged.

The maintainer ruling of 2026-09-03 (option C, comment 5522734749, overturning their own 2026-07-24 "INSERT (all callers) exempt" row) made that premise false: engine.insert runs the same isSystem-gated stripReadonlyFields the update path runs. The prose in both files has been corrected in #14147's PR; the SCAN GAP has not, because widening it is a behaviour change for every consumer's build.

Why each one is now a real finding

Both surfaces run NON-elevated by default, which is what separates them from the action sibling (an action body is { ...ec, isSystem: true }, so its create genuinely still lands):

Suggested shape

Extend each rule's subject set to the create verb, reporting ONLY the static readonly shape there (readonlyWhen has no create-side strip — engine.ts still says "INSERT stays exempt", so a conditional finding on a create would be false), and keep the existing runAs: 'system' / elevation exemption gating the static branch exactly as it does on update.

⚠️ Whoever takes this should measure the blast radius on the shipped examples first: this adds an error-severity os validate / os build finding, so any in-repo flow or hook that seeds a readonly column on create without elevation reds the build the day it lands. That is the finding working as designed, but it is a landing plan, not a side effect.

Not this

packages/lint/src/validate-readonly-action-writes.ts is already handled in #14147's PR and needs nothing here: an action body is system-elevated by design, so a static-readonly finding on that surface would state something false about a write that lands. Its silence is now recorded as a reasoned refusal (READONLY_ACTION_INSERT_SILENCE) with a pin that the overturned sentence cannot come back as the justification.


Generated by Claude Code

Activity

  1. added
    finding
    on Sep 4, 2026
  2. added
    bug
    priority:p2
    domain:devx
    pm:blocked
    on Sep 4, 2026
  3. os-zhuang commented on Sep 4, 2026

    @os-zhuang
    Contributor

    分诊 · domain:devx / priority:p2 / pm:blocked (by #14147 / PR #15395)

    Anchor read, not guessed. The deliverable is the subject set of two rules in packages/lint/src/ (validate-readonly-flow-writes.ts, validate-readonly-hook-writes.ts) plus their pinning tests. Nothing lands in packages/objectql or service-automation. ⇒ domain:devx.

    The correction this card needs: it is a future defect, not a live one

    Re-measured on origin/main f1d7872 (2026-09-04T23:38:52Z). The card's body says the create-side no-op "is now" the behaviour — that is true of #14147's PR branch, and not yet true of main:

    read result
    stripReadonlyForInsert 5 files, all still describing it as the DataProtocol ingress guard (rule-validator.ts:1310, engine.ts:6062 — "#3043")
    stripReadonlyForInsert called from engine.insert not present
    the superseded premise in the lint rules still there verbatim — validate-readonly-flow-writes.ts:14, validate-readonly-hook-writes.ts:42
    READONLY_ACTION_INSERT_SILENCE (the action-sibling pin the card says is "already handled") 0 hits repo-wide
    positive control for that zero the same sweep returns READONLY_ACTION_WRITE_EXCLUSIONS, READONLY_ACTION_WRITE_PATTERN_IDS, READONLY_HOOK_WRITE_EXCLUSIONS, READONLY_HOOK_WRITE_PATTERN_IDS, READONLY_FIELD, READONLY_WHEN_FIELD ⇒ the pin token's absence is real, not a broken pattern
    #14147 pm:dispatched, assigned, PR #15395 open — "a static readonly field is stripped from a non-system INSERT inside engine.insert, and the boundary copy is deleted"

    So today a non-system flow create_record still lands the readonly value (the flow engine calls the data engine directly and bypasses the ingress copy) — which is exactly what the rules' current comment says, and why they are correct as written right now. The moment PR #15395 merges, that comment becomes false and the scan gap becomes a live silent no-op.

    That is not a criticism of the filing — the dev measured against the branch it was working in and said so. It changes only when this is actionable, which is why it goes to pm:blocked rather than pm:queue: shipping the widened rules before #15395 would emit error-severity findings about writes that currently land. A false error on a build is worse than the gap it closes.

    Blocked-by: #14147 (PR #15395). Unblocks automatically on that merge — no ruling needed to start.

    Grade — p2

    Not p1: it needs a non-elevated flow or hook that seeds a readonly column, and after #15395 the run still emits a step warning naming the dropped field, so the information exists — just at run time, days later, in a WARN log. Not p3: this rule family's entire stated purpose is shifting that discovery left to os validate / os build (#3425), so a create-verb gap is the rule failing at its own job on the sibling verb, not a nice-to-have.

    Boundary test — Bug, and no manual floor

    Widening the subject set narrows the accept set: it makes illegal a shape the engine will (post-#15395) already refuse to honour. That is restoring declared = enforced, not a feature, and gate strengthening is not the gate-weakening case that sits above the manual floor. Ordinary lane work.

    ⚠️ But the landing plan is part of the card, not a side effect — the filer is right and this is the sentence that pins it. Before the widened rules land, measure the blast radius on in-repo flows and hooks: any that seed a readonly column on create without elevation red the build the day this ships. Expected count is a deliverable of this card. The same pass must flip the two tests that currently pin the old premise as correct behaviour — validate-readonly-flow-writes.test.ts:327 ("clean: create_record is engine-exempt from the readonly strip") and validate-readonly-hook-writes.test.ts:215 ("GREEN: INSERT is engine-exempt") — plus validate-flow-node-writes.test.ts:409, which the card does not list and which asserts the same thing from a third file.

    Two constraints carried forward, both endorsed

    1. Static shape only, on the create verb. readonlyWhen has no create-side strip — engine.ts:11592 still reads "single-id stripReadonlyWhenFields; INSERT stays exempt" — so a conditional finding on a create would state something false. Keep the runAs:'system' / elevation exemption gating the static branch exactly as it does on update.
    2. validate-readonly-action-writes.ts is out of scope and must stay out. An action body is { ...ec, isSystem: true } by construction, so a static-readonly finding there would be false about a write that lands. Its silence is a reasoned refusal, and its pin should land with fix(objectql,metadata-protocol): a static readonly field is stripped from a non-system INSERT inside engine.insert, and the boundary copy is deleted #15395 — if that pin does not exist when this card is taken, say so on finding: the insert-path readonly strip is a protocol-boundary guard only — engine.insert applies none of it, and create_record's onFieldsDropped channel can never fire for a readonly drop #14147 rather than adding it here.

    ⛔ Not a claim, not a dispatch — routing only.


    Generated by Claude Code

  4. claude commented on Sep 5, 2026

    @claude
    ContributorAuthor

    Correction to a sentence in this card's body — "The prose in both files has been corrected in #14147's PR" — which was not true at PR #15395's head bd598e803, and which PR #15395's own body repeated.

    Measured at that head: only the hook rule's header (packages/lint/src/validate-readonly-hook-writes.ts:39-52) had been rewritten. The flow rule's header (validate-readonly-flow-writes.ts:14-18) still read "INSERT is engine-exempt from the readonly strip … so a create writing a readonly field is NOT a no-op and is never flagged"; the hook rule's STRIP_SUBJECT_METHODS docblock (:209-212) still read "absent BY DECISION, not by omission: the engine exempts INSERT"; and the GREEN control blocks in validate-readonly-hook-writes.test.ts:215 and validate-readonly-flow-writes.test.ts:327 (plus a third in validate-flow-node-writes.test.ts:409) still justified themselves with the overturned sentence.

    The patch round on PR #15395 (commits b5fb6d728 and da62e0e93, head 66c580b0c) corrects all of them: both rules' docblocks now name the insert/create silence as a scan gap that this card owns rather than an exemption, and the green cases keep their verdicts with the reason restated — "the conditional lock has no prior record on a create; the static half is the #15394 gap" — so that when this card lands they flip to red for the static shape instead of sitting green on a false premise. The scan gap itself is untouched by that PR and remains this card's deliverable.


    Generated by Claude Code

  5. claude commented on Sep 6, 2026

    @claude
    ContributorAuthor

    UNBLOCKED → pm:queue — PM seat domain:devx @ objectstack, session session_01Vbw3RPgdtqesx4azk9SbW8, unlock scan at 2026-09-06T05:58Z on re-fetched origin/main @ 159dbad.

    Blocker: #14147 (PR #15395 MERGED 2026-09-05T12:24:23Z). Verified by content: packages/objectql/src/engine.ts:6217 reads "stripReadonlyFields — which since #14147 runs on the create" and :9821 names the static strip on the insert path; both lint rules' headers on origin/main already restate the create-side silence as this card's scan gap (validate-readonly-flow-writes.ts:14-20: "this bullet's REASON is spent … SUPERSEDED"). The scan-gap widening itself is untouched on main — that is this card's deliverable. ⚠️ Widening two rules to report a non-system create_record / ctx.api.insert of a readonly column at error severity changes what os lint accepts ⇒ the dispatch will declare Clause-②: yes and run at the contract-review tier (or carry needs:contract-review if that tier is exhausted). packages/lint is serial — one lint card in flight at a time.

    State transition in this stroke: pm:blocked → pm:queue (one label write, read back). No claim, no dispatch yet — the card re-enters this lane's selection order; its file surface was re-verified on the merged ref above, and the dispatch brief will carry that reading rather than the card's original one.


    Generated by Claude Code

  6. added
    pm:queue
    and removed
    pm:blocked
    on Sep 6, 2026
  7. added
    pm:dispatched
    and removed
    pm:queue
    on Sep 6, 2026
  8. claude commented on Sep 6, 2026

    @claude
    ContributorAuthor

    Claim: PM loop round 1
    Session: session_01Vbw3RPgdtqesx4azk9SbW8
    Branch: claude/issue-15394-readonly-create-scan-gap
    Worktree: objectstack-issue-15394
    Domain: domain:devx
    File surface: packages/lint/src/validate-readonly-flow-writes.ts, packages/lint/src/validate-readonly-hook-writes.ts, their *.test.ts, and packages/lint/src/validate-flow-node-writes.test.ts only where its GREEN control block cites the superseded premise; a .changeset/*.md for @objectstack/lint (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: fable (CONTRACT_REVIEW_TIER) — node scripts/pm/dispatch-gates.mjs --tier at 33388f9 (06:05Z): no path-derived mandate; the tier is mandated by the content limb below. If the contract-review tier is measured unavailable at dispatch, the fallback is the default tier with needs:contract-review on the PR and in-seat review at the contract tier — recorded here if it happens.
    Clause-②: yes — two published os lint rules start reporting a new error-severity finding (a non-system create_record / ctx.api.insert of a static readonly column), which narrows what os lint / os build accept.
    Serial constraints cleared: packages/lint is this lane's serial resource — no other lint card is in flight from this seat (the four in flight are on scripts/**, .github/**). Another account's open PR #15791 (#15742) touches packages/lint/src/validate-expressions.ts + two tests only — no file overlap with this surface (open-PR file map 05:41Z, 34 PRs). Unblocked at 06:02Z (5557319060): #14147 / PR #15395 MERGED; engine.ts:6217 and :9821 carry the create-side static strip; both rule headers on origin/main @ 159dbad already restate the create-side silence as this card's scan gap (validate-readonly-flow-writes.ts:14-26, validate-readonly-hook-writes.ts:42-52, :210-221).


    Generated by Claude Code

  9. claude commented on Sep 6, 2026

    @claude
    ContributorAuthor

    os-dev-report
    Clause-②: yes

    {
      "issue": 15394,
      "status": "done",
      "branch": "claude/issue-15394-readonly-create-scan-gap",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/16248",
      "premise_still_valid": true,
      "summary": "Both readonly rules now report the static readonly shape on the create verb at error: a flow create_record node (non runAs:'system') and an L2 hook body's ctx.api.object('LIT').insert() (non runAs:'system') writing a field the target object declares readonly:true, under the existing update ids with a message naming the verb and what happens (the row lands without the column). No conditional (readonlyWhen) finding on a create (engine.ts still says INSERT stays exempt), and, mirroring staticReadonlyInsertSubject, no create finding on a platform object (managedBy set or sys_ name) while the update verb keeps judging them. A2 half-falsified: the QuickJS ctx.api.object() installs no create leaf, so a body's .create() throws rather than silently dropping; the hook rule widens to insert only and pins create as a reasoned method exclusion. The three GREEN controls flipped/rewritten as the correction specified. Blast radius measured over app-crm/app-showcase/app-todo at 159dbad: zero in-repo sites go red (table in the PR), so no example file joined the surface. Declared increment: two sentences in content/docs/automation/hook-bodies.mdx that literally said '#15394 ... nothing reports it at build time yet'. Draft PR #16248 carries needs:contract-review (added additively via REST, read back). Assignee was set by the PM and untouched.",
      "tests": "Head 9b76e9a49 (base 159dbad). Under scripts/pm/os-verify-lock.sh, exit codes captured before any pipe: closure build `pnpm --filter '@objectstack/lint^...' build` VERDICT command-exit 0; `pnpm --filter @objectstack/lint build` DTS Build success; targeted vitest (3 files) `Test Files 3 passed (3)` / `Tests 106 passed`; full `pnpm --filter @objectstack/lint test` `Test Files 98 passed (98)` / `Tests 3375 passed (3375)`; `pnpm --filter @objectstack/lint typecheck` exit 0 (check:test-typecheck: OK); DOWNSTREAM direction `pnpm exec turbo run typecheck --filter='...@objectstack/lint' --concurrency=2` `Tasks: 118 successful, 118 total` VERDICT command-exit 0; `pnpm --filter @objectstack/cli exec vitest run --project unit --maxWorkers=2` `Test Files 179 passed (179)` / `Tests 2406 passed | 6 expected fail (2412)` (integration tier declared to CI, no diff on it). Ablation at 9b76e9a49: committed first; both subject sets reverted to update-only; on-disk blob hashes changed 213191a1→236f5f31 and c3ec36f0→f8a90e0b, injected marker grep-count 1 and removed anchor 0 per file; the two flipped test files went red on exactly the 11 create/insert cases (`Tests 11 failed | 63 passed (74)`, vitest exit 1); restore via `git checkout HEAD -- PATH` proven by `git diff HEAD` empty, `git status --porcelain` empty, and on-disk hashes equal to the HEAD blobs (213191a1 / c3ec36f0). Tests import the rules relatively from src (no dist on the ablation path); lint dist rebuilt at the final head anyway. Narrowed eslint: eslint.config.mjs:328 declares no parserOptions.project / typed rules (diff cannot move an untouched file's verdict); `eslint --no-inline-config --format json` over the 5 changed .ts files at 9b76e9a49 → 5 files, 0 errors, 0 warnings; .md/.mdx outside eslint's population. Same-day churn (A5): b398ad25 (#15395), 7dafaaed (#15751), both before base.",
      "gates": [
        "node scripts/pm/dispatch-gates.mjs --changed --commands → 81 families derived at 33ca99a5, byte-identical when re-derived at 9b76e9a49; `--ran` → '✓ dispatch-gates --ran: 81 derived famil(ies) accounted for — 81 run, 0 NOT-MEASURED.' (exit 0, 9b76e9a49); the tool also prints STALE TREE (origin/main moved 12 commits during the run)",
        "pnpm check:doc-authoring → first run exit 1 ('NEW internal issue-id reference(s) in sibling-package string prose: validate-readonly-flow-writes.ts #14147') — fixed in 1b75e4ea (id moved to the comment); rerun '✓ doc authoring guard: sibling-package prose ids hold the baseline — 829 pinned site(s) ... no growth' exit 0 at 9b76e9a49",
        "node scripts/check-adr-0087-registration.mjs --base origin/main → '✓ check-adr-0087-registration: this PR adds no declared-breaking changeset (1 non-breaking changeset(s) seen).' exit 0 — no disposition marker owed",
        "node scripts/check-changeset-no-major.mjs --base origin/main → '✓ This diff introduces no `major` bump.' exit 0; node scripts/check-empty-changeset.mjs --base origin/main → '✓ No empty-frontmatter changeset introduced' exit 0",
        "pnpm check:nul-bytes → 'check-nul-bytes: OK (scanned 7948 text file(s) ... no raw ASCII control bytes)' exit 0 at 9b76e9a49",
        "pnpm check:cross-package-test-inputs → 'OK: 27 package(s) read outside themselves, all declared' exit 0 at 9b76e9a49; pnpm check:test-source-alias → 'check-test-source-alias OK — 72 packages' exit 0 at 9b76e9a49",
        "pnpm check:docs-transcript-drift → first run exit 3 PREREQUISITE NOT MET (lint dist absent); rerun '✓ check-docs-transcript-drift: 4 declared transcript value(s) across 403 page(s) ... equal what the registry derives' exit 0",
        "pnpm --filter @objectstack/lint run check:doc-formula-expressions / check:doc-security-posture → first run exit 3 PREREQUISITE NOT MET; rerun exit 0 ('✓ check:doc-formula-expressions: 22 record-scoped formula example(s) ... judged clean')",
        "pnpm check:dts-closure → rerun with the consumer closure built: 'check-dts-closure: 66 built package(s) swept - 157/157 declared declaration file(s) present' exit 0",
        "pnpm --filter @objectstack/spec run check:skill-examples → first run exit 1 (client-react dist had no .d.ts); after `pnpm --filter @objectstack/client-react build` (DTS Build success): '✅ 257 prose examples type-check across 3 surface(s)' exit 0",
        "node scripts/check-plugin-teardown-shape.mjs --self-test → first run exit 1 (fixture pinned to commit 621a4876 unreachable in the shallow clone); after `git fetch origin 621a4876...`: '✓ check-plugin-teardown-shape self-test: 47 cases pass' exit 0; the main gate was exit 0 throughout",
        "remaining 66 derived families (comment-mask adoption+corpus, keyed-text-bounds, closing-keyword-parity, ci-filter-parity, undeclared-dep-imports, docs-audit affected-docs + drift-comment, reference-carrier-shape, engine-double-contract, objectql-double-limit, logger-receiver-detach, page-declaration-shape, published-files, org-identifier, refd-timer-probe, driver-memory-census, query-options-erasure, slot-lookup, spec duration-unit-keys/docs/empty-state/liveness/strictness-ledger/variant-docs/yaml-examples, doc-frontmatter, doc-route-spelling, docs-section-name, doc-anchors, docs-single-h1, docs-redirects, docs-audit-scope, section-landing-index, platform-object-tenancy-census, registry-log-declared, system-context-census, corpus-claim-drift, objectui-changeset, published-readme-links, react-page-adapter-contract, role-word, skill-identifier-liveness, type-check-coverage, type-source-resolution, vendor-version-stamps, watch-hint-literal, where-matcher, changeset-gate-self-tests, release-rehearsal-clone --self-test, and every paired --self-test) → exit 0 each (ledger in the run; per-command logs kept)",
        "NOT MEASURED: pnpm check:dual-build-cjs-loads and pnpm check:type-check-debt → exit 3 PREREQUISITE NOT MET (both read every package's built output; 84 packages without dist in this container) — CI-owned; the diff touches no package either ledgers"
      ],
      "files_changed": [
        ".changeset/lint-readonly-create-scan-gap.md",
        "content/docs/automation/hook-bodies.mdx",
        "packages/lint/src/validate-flow-node-writes.test.ts",
        "packages/lint/src/validate-readonly-flow-writes.test.ts",
        "packages/lint/src/validate-readonly-flow-writes.ts",
        "packages/lint/src/validate-readonly-hook-writes.test.ts",
        "packages/lint/src/validate-readonly-hook-writes.ts"
      ],
      "deviations": [
        "Surface increment: content/docs/automation/hook-bodies.mdx (2 sentences) — the page said 'nothing reports it at build time yet (#15394)'; landing this card without it leaves published docs asserting a gap that no longer exists. No example file was touched (blast radius zero).",
        "Hook rule widens to insert only, not create: the card's '.create' shorthand is falsified for L2 bodies (QuickJS installs no create leaf; the call throws). Recorded as READONLY_HOOK_METHOD_EXCLUSIONS and pinned; the gap it leaves is filed as #16249.",
        "Create-verb findings skip platform objects (managedBy or sys_), mirroring staticReadonlyInsertSubject; the dispatch text did not name this, the engine does — pinned with update-verb controls.",
        "NOT MEASURED locally: check:dual-build-cjs-loads, check:type-check-debt (whole-repo dist prerequisite; CI-owned). packages/cli integration tier declared to CI.",
        "Channel switch for the dedup search: REST /search/issues returned 403 from this container (control query also 403), so one targeted MCP search_issues was used (2 MCP calls total: the first attempt was rejected 422 for parentheses in the query, the retry answered 3 closed, non-duplicate cards).",
        "Lock contention: three queue-timeouts (exit 99) against other seats' runs (PM check:pm-dispatch-gates ×2, a sibling build) — intervals spent on lock-free work, same OS_VERIFY_LOCK_SLOT retained; the turbo consumer typecheck held the lock 16m35s (118 tasks, uncached)."
      ],
      "line_budget": "n/a",
      "mcp_calls": "2 — both search_issues (dedup for the filed finding); every other read and write was repo-scoped REST",
      "open_questions": [],
      "out_of_scope_findings": [
        "filed as #16249: `objectstack build` lowers a hook body calling ctx.api.object('x').create() although the QuickJS sandbox installs no create leaf — FORBIDDEN_PATTERNS refuses .sudo( but not .create(, and the extractor ledger advertises create as a live write; the body throws TypeError: not a function on its first run (unassigned, no label — concrete defect left for triage)"
      ]
    }
    

    Generated by Claude Code

  10. added
    needs:contract-review
    and removed
    needs:contract-review
    on Sep 6, 2026
  11. claude commented on Sep 6, 2026

    @claude
    ContributorAuthor

    Contract review — PASS (in-seat, contract tier) + ACCEPT. PM seat domain:devx @ objectstack. Reviewed-by: session_01Vbw3RPgdtqesx4azk9SbW8 (serving tier read via get_session at 07:5xZ: configured claude-fable-5-1, last served claude-fable-5-1 = CONTRACT_REVIEW_TIER). Implemented-by: branch claude/issue-15394-readonly-create-scan-gap (mode:subagent, fable). No contract fork and no dev flag left open ⇒ no isolated second-opinion subagent owed. Report: 5557832832. PR #16248 (draft, Fixes #15394, head 9b76e9a49, 7 files, @objectstack/lint changeset minor). Governed test on the file list: NOT governed.

    ⚠️ Provenance note, stated rather than hidden: both needs:contract-review carriers were stripped by this seat about two minutes BEFORE this comment landed — a script-ordering slip (the ruling text was not written when the label calls ran). This comment is the ruling those strips rest on; the pair read check-clause2-carriers --pair 16248 exit 0 after the strip.

    ① Derived judgments — the accept-set changes this diff makes, each judged

    1. New error finding, flow side: a create_record node on a flow without runAs: 'system' whose literal fields write a field the target object declares readonly: true — under the existing id flow-update-readonly-field, the message naming the verb and the runtime effect (row created without the column, step reports success). Correct: mirrors the engine's create-side static strip (engine.ts:6217, :9821, ruling C on finding: the insert-path readonly strip is a protocol-boundary guard only — engine.insert applies none of it, and create_record's onFieldsDropped channel can never fire for a readonly drop #14147); declared-vs-enforced restored, not a new prohibition.
    2. New error finding, hook side: an L2 body's literal ctx.api.object('<lit>').insert({…}) on a non-system hook writing such a field — id hook-api-update-readonly-field; STRIP_SUBJECT_METHODS gains insert only. Correct, same reasoning.
    3. Platform objects skipped on the create verb (managedBy set or sys_ name): correct — mirrors staticReadonlyInsertSubject (rule-validator.ts:1524-1525, read on origin/main); the update verb keeps judging them (unchanged, pinned with controls).
    4. No readonlyWhen (conditional) finding on a create: correct — the engine still exempts INSERT from the conditional strip (CONDITIONAL_SUBJECT_METHODS stays update/updateById; flow rule meta.readonlyWhen && !isCreate).
    5. Hook .create() deliberately NOT judged (READONLY_HOOK_METHOD_EXCLUSIONS, pinned): correct scope — the QuickJS ctx.api.object() installs no create leaf, so .create() throws rather than silently dropping; the dispatch's .create shorthand was falsified by the dev; the lowering gap that lets such a body build at all is filed as finding: objectstack build lowers a hook body calling ctx.api.object('x').create() although the QuickJS sandbox installs no create leaf — the extractor ledger advertises the verb, the lint rules read it as a live write, and the body throws TypeError: not a function on its first run #16249 (concrete defect, unlabelled, triage's).
    6. Public surface: no new rule id, no new severity; the exported constants are internal pins, not authorable surface.
    7. Docs increment (content/docs/automation/hook-bodies.mdx, two sentences that said "nothing reports it at build time yet"): required — landing without it leaves published prose asserting a gap that no longer exists.

    ② Semver

    @objectstack/lint: minor, with a "what now fails that passed before" section naming exactly the two new shapes. Consistent: a new error-severity finding on authored metadata whose runtime effect was already a silent strip; check-adr-0087-registration --base origin/main reads "no declared-breaking changeset" (no disposition marker owed); the repo ships new lint findings as minor with the failing shapes spelled out.

    ③ Flags / evidence

    No open_questions. Blast radius measured over app-crm / app-showcase / app-todo at 159dbad: zero in-repo sites red; spot-checked by this seat on origin/main — app-todo's one readonly: true field ("Completed Date", task.object.ts:83) is not among the eight fields its two create_record nodes write (subject, description, priority, category, owner, is_recurring, due_date, status). Three GREEN control blocks flipped/rewritten as the 09-05 correction specified (11 create/insert cases red on ablation; restored by blob equality). Full @objectstack/lint test (98 files / 3375) and typecheck green; downstream pnpm exec turbo run typecheck --filter='...@objectstack/lint' 118/118; CLI unit tier green; 81/81 derived families reconciled at 9b76e9a49; two NOT MEASURED honestly named (whole-repo dist prerequisites, CI-owned). Deviations accepted: the docs increment; insert-only widening; platform-object skip; lock queue-timeouts recorded.

    State: both carriers cleared (see note); pm:dispatched stays until MERGED. Landing: ordinary queue once every check on 9b76e9a49 is complete and green — reading Test Core (1/6) itself, never the rollup alone (flip point 08:12Z).


    Generated by Claude Code

  12. removed
    pm:dispatched
    on Sep 6, 2026
  13. claude commented on Sep 6, 2026

    @claude
    ContributorAuthor

    LANDED — PM seat domain:devx @ objectstack, session session_01Vbw3RPgdtqesx4azk9SbW8, 2026-09-06T08:55Z.

    PR #16248 (Fixes #15394, Clause-② yes, in-seat contract PASS 5557852190, carriers cleared) MERGED 2026-09-06T08:49:34Z as 720bf479b on main via the merge queue (queued 08:15:23Z). Content probe on re-fetched origin/main 6a1e38244 (git grep counts): insertStripExempt in packages/lint/src/validate-readonly-flow-writes.ts = 2, insertStripExempt/isCreate in validate-readonly-hook-writes.ts = 7; negative control: the retired "this bullet's REASON is spent" comment = 0. Card closed by the merge; pm:dispatched stripped and assignee cleared in this stroke. Changeset .changeset/lint-readonly-create-scan-gap.md is on main for the release notes.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:devxfindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions