Skip to content

build/validate: seed rows are never checked against the package's own validation rules; a refused seed only shows as a dropped-record log at boot #35653

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4cysZsTQwxLv9M2TzHH

Split from #34986 (its check half; the teaching half is PR #35652). Measured on main by area a4-A's dev (os-dev report 7022810829 on #34986):

  • os validate / os build never run validation rules on seed rows; nothing at build or publish reports it.
  • At boot the seeder logs [Seeder] … dropped record(s) with the rule MESSAGE, not its name.
  • os verify exits 1 on dropped rows but names no rule, and it is not a scaffold check.

Direction already given on #34986 (6970307554): seed rows get no exemption; report it first ("check first").
Done when: a build/validate-time finding names the seed file, the row, and the refusing rule's name for every seed row the package's own validation rules refuse, with a test.
Dedupe read: seed, validation rule, os validate — only #34986.

Activity

  1. added
    priority:p2
    finding
    area:ai
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx · pm:queue; rationale: area:build · Bug · Impeded (os validate / os build never run the package's validation rules on seed rows; a refused seed shows only as a boot-time drop logged by message, not rule name) · builders, often · measured on main → p2 as set. area:ai → area:build: the fix is in the build and validate doors.

  3. added
    domain:devx
    pm:queue
    and removed
    area:ai
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruled: fold · maintainer 2026-11-20T05:1xZ, verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」

    2026-11-20T05:16Z · This card now carries a fold group. Shared mechanism: author-time seed checks in os validate / os build (validation rules on seed rows, a blank key field). The cards below, unclaimed and unstarted, are closed into this one so a single claimant fixes them in one PR. Each row's source card keeps its full body; this card closes when every row below and its own ask are done. Grade stays the highest of the group.

  5. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko

    Claim: PM loop round 1 · 2026-11-23T11:03Z
    Session: session_011y7As7qKGpBTzxc5S8q3Ko
    Account: os-alice
    Branch: claude/issue-35653-seed-rule-check
    Worktree: objectstack-issue-35653
    Domain: domain:devx
    Seat: repo:objectstack#7
    Area: o7-build
    File surface: packages/lint/src/** (a new seed check + its test file), packages/cli/src/commands/{validate,build}.ts and packages/cli/test/** only if the check is wired there, .changeset/**. Out: skills/** (the teaching half shipped as PR #35652), packages/metadata-protocol/src/seed-loader.ts (load-time behaviour unchanged).
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: narrowed
    Responsibility: objectstack: os validate / os build never run a package's validation rules or keyed-mode key checks over its seed rows | the seed loader refuses at boot and logs the message only; os verify exits 1 naming no rule | every builder shipping seed data, often
    Thread-read: 7031157975
    Premise: holds — the card's measurement (os-dev report 7022810829 on #34986) is the reading; the dev re-measures on origin/main before writing
    Serial constraints cleared: none — no open PR's file list meets the seed/lint check surface (open PR file lists read 2026-11-23; #36629 and #36525 touch other packages/lint files)
    Pre-claim lane: domain:devx per triage 7023109384 — the check lands in the build/validate doors (packages/lint, packages/cli, o7-build path roots)
    Pre-claim deps: none open; parent card #34986's teaching half PR #35652 is separate
    Prior rulings read: 6970307554 on #34986 (verbatim: "Seed rows are not exempt from the package's own validation rules." · "Check first. A build whose seed rows are refused by its own rule reports that to the author as a finding that names the rule and the count, at build or publish time."); 7031157975 fold ruling (verbatim: 「只考虑合并没人认领的,没开始开发的,你负责处理」) folds #35486 (keyed-mode blank key field) into this card

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko

    Claim amendment · 2026-11-23T15:01Z · Branch: claude/issue-35653-seed-rule-check
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Why: the new build/validate-time refusal of seed rows narrows what passes os validate / os build; Metadata-protocol: narrowed takes a (narrowing) arm. The dev's work paused at ~12:05Z on the usage limit and resumed at 2026-11-23T15:01Z; same claim, same branch. Owed before the queue: the dogfood battery at the final head and an L2 at contract-review tier.

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As7qKGpBTzxc5S8q3Ko

    Progress · 2026-11-24T05:32Z · claim held, work paused · Branch: claude/issue-35653-seed-rule-check
    Paused under the maintainer's dev-concurrency cap for seat repo:objectstack#7 (relayed by the seat today: at most 3 dev subagents across the seat; area o7-build takes no new dispatch). The dev stopped mid-implementation on a usage limit; its work is saved and it resumes on the same claim and branch when the seat lifts o7-build's cap. Claim 7098964740 and amendment 7104932358 (Clause-②: no (narrowing), Metadata-protocol: narrowed) stand. ⛔ Not released — please don't reclaim.

  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Claim amendment · 2026-11-24T21:34Z · Branch: claude/issue-35653-seed-rule-check
    Session: session_011y7As5bdhV5T4N9vpjmZzH (seat session) resumes this claim, taking over from the retired o7-build zone session session_011y7As7qKGpBTzxc5S8q3Ko; same claim (7098964740), same branch, resuming from pushed head 05a13dd2bc5.
    Container & model: M, mode:subagent, opus (default tier, no path-derived mandate), effort: high
    File surface: unchanged from the claim — packages/lint/src/** (the seed check + its test file), packages/cli/src/commands/{validate,build}.ts and packages/cli/test/** where the check is wired, .changeset/**. Out: skills/**, packages/metadata-protocol/src/seed-loader.ts.
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed

  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
    os-dev-report

    {
      "issue": 35653,
      "status": "done",
      "branch": "claude/issue-35653-seed-rule-check",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37156",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH",
      "premise_still_valid": true,
      "summary": "Resumed the paused claim on the same branch (merge of origin/main 63ab4794e as 2f03942f1d1). os validate and os build now run judgeSeedRowRefusals (packages/lint) with the write path's own evaluateValidationRules injected, and refuse (exit 1, also in --json) every seed record its object's own validation rule refuses, naming the dataset location, object, record index and rule name, plus (folded row) every keyed record with a blank key field in the seed loader's own sentence; pairs the record's literal values cannot decide are counted, never refused. Finished this round: the ADR-0087 entry the changeset already claimed but never existed (packages/spec/src/migrations/entries/semantic/18.seed-record-refused-before-load.ts), the validate/build parity ledger classification the CLI unit tier was red on, a door fixture whose rule an earlier authoring rule refused, and the Skills-docs line plus a spec minor in the changeset. 'Names the seed file' is met as the dataset's stack location (data[i], packages[j].manifest.data[i]) and object: a loaded stack carries no per-dataset source path. Head cb30582ea3b4f738a1784cee90e44a7c8a0f848c. A contract-tier review is owed before the queue (declared narrowing, Metadata-protocol: narrowed).",
      "tests": "lint: pnpm --filter @objectstack/lint test -> Test Files 234 passed (234), Tests 9613 passed (9613); typecheck exit 0 (at 5ab29411de4, lint unchanged since). cli: typecheck exit 0; vitest --project unit at 5ab29411de4 -> 441/444 files, 3 red: validate-build-gate-parity.test.ts (real, fixed in b200e789e64) and two published-subpath pins refusing an unbuilt packages/cli; after cli build those 3 + seed-row-refusals-35653.test.ts -> Test Files 4 passed (4), Tests 73 passed (73). Integration tier (diff touches a spawning test), seed-row-refusals-35653-doors.test.ts at cb30582ea3b -> Tests 2 passed (2). spec src/migrations -> Test Files 5 passed (5), Tests 200 passed (200). Ablation (one, lint src path, no build in resolution): ablation-replace on 'input.evaluateValidationRules(' -> '((..._ablated: unknown[]) => undefined)(' : landed (anchor 1->0, blob 2a129806dc48->2ee33fdbda90), 4 failed / 14 passed of 18; restored blob == HEAD, git diff HEAD empty. First attempt with 'void (' was a no-op (parse error, file loaded no tests), declared void.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at cb30582ea3b: 96 families, sweep run at that head; --ran: '96 derived famil(ies) accounted for — 95 run, 1 NOT-MEASURED'. The cli vitest family lost its lock turn in the sweep (99) and type-check-debt's re-measure lost its turn (3); both rerun under the lock: Tests 3 passed (3) and 'check-type-check-coverage --re-measure: OK'. check-adr-0087-registration: 'registered seed-record-refused-before-load (new here)'. NOT MEASURED: check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET (13 packages outside the build closure have no dist). Local-only check:dev-prereqs exit 1: workspace not fully built (42 of 108 packages lack dist; targeted builds only), a local-state reading. CI check-runs on cb30582ea3b at report time: Check Changeset, Lint (ESLint, repo & tooling, docs & code guards, CI release & engine, PM dispatch-gates, scoped x3), Type Check (workspace, source, consumer, debt ledger), Governed Surface Queue Guard, PR-body guards, Spec property liveness: all in_progress; opt-in jobs skipped. Not waited on.",
      "dogfood_battery": "cb30582ea3b4f738a1784cee90e44a7c8a0f848c · os-verify-lock: VERDICT command-exit 0 · Test Files 487 passed, 3 skipped (490) · Tests 4128 passed, 68 skipped (4196) · no failures",
      "mcp_calls": "0",
      "api_writes": "3 relay strokes (each POST /repos/objectstack-ai/objectstack/dispatches, executed as objectstack-fleet[bot]): claim amendment POST /repos/objectstack-ai/objectstack/issues/35653/comments (7145109348, ordered by the dispatch); pr_create POST /repos/objectstack-ai/objectstack/pulls (#37156, draft) + POST /repos/objectstack-ai/objectstack/issues/37156/assignees (os-alice); this os-dev-report POST /repos/objectstack-ai/objectstack/issues/35653/comments. Plus git pushes (not REST).",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat (Skills-docs follow-up owed) · skills/objectstack-data/references/seeds.md says '`os validate` does not run them on seed rows', which this PR makes false; skills/** is out of this domain:devx claim, so the seat files the follow-up and rewrites the PR line to #N · noted, not filed"
      ],
      "deviations": "File surface widened beyond the claim by one file: packages/spec/src/migrations/entries/semantic/18.seed-record-refused-before-load.ts (the ADR-0087 entry the narrowing owes; the gate refuses no-migration-prescription on Metadata-protocol: narrowed); the claim's 'build.ts' is the build command's compile.ts. Changeset gained '@objectstack/spec': minor (fixed group). The harness attribution reminder named a model in Co-Authored-By; commits use the dispatch's model-free pair; the merge commit 2f03942f1d1 carries no trailer pair. PR title carries '!' (declared narrowing); the changeset headline, written by the prior session, does not."
    }
  11. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Claim amendment · Branch: claude/issue-35653-seed-rule-check
    Clause-②: yes (narrowing)
    Metadata-protocol: narrowed
    File surface (amended): adds packages/spec/src/migrations/entries/semantic/18.seed-record-refused-before-load.ts (the ADR-0087 entry a narrowed changeset owes) and packages/cli/src/commands/compile.ts (the claim's build.ts is a subclass of it).
    Why: per the contract review 7148256354 (N1), the diff adds nine names to the @objectstack/lint entry, so the exact declaration is Clause-②: yes (narrowing); level, disposition and review tier are unchanged. The two files above were touched by the resumed dev and accepted in seat record 7148269444.

  12. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH

    Progress · 2026-11-25T00:25Z · claim held, work paused · Branch: claude/issue-35653-seed-rule-check
    Paused on the account usage limit (maintainer's instruction via the project coordinator; resets at about 01:10 UTC). The dev stopped mid-round; pushed head 72ae1b5e17a, worktree kept. The seat resumes it on the same claim and branch after the reset. ⛔ Not released — please don't reclaim.

  13. objectstack-fleet commented on Nov 25, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
    os-dev-report

    {
      "issue": 35653,
      "status": "done",
      "branch": "claude/issue-35653-seed-rule-check",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37156",
      "session": "session_011y7As5bdhV5T4N9vpjmZzH",
      "premise_still_valid": true,
      "summary": "Rework round for REWORK 7148269444 and contract review 7148256354. S1: the blank-key walk now leaves out the object's own organization column as the seed loader resolves it, seedRowTenantColumn(definition) ?? organization_id, read through resolveTenantFieldName (@objectstack/core). The walk takes the resolver as a required input that both doors inject, as they inject the evaluator; lint has no dependency on core and seedRowTenantColumn is not exported. It is pinned in lint (a tenancy.tenantField object, with organization_id then judged as an ordinary key) and in cli against the real loader's dry run. The changeset now has a feat(cli)! headline, a BREAKING paragraph with FROM/TO, Clause-② yes (narrowing) and Skills-docs follow-up #37158. Nits N2-N5 are applied in code, entry and changeset: the not-judged list, the plugin-code hook note, the heading counting records, and step 3d-quater. origin/main 49c8e0f069a was merged as 61386cf6bc5. The Test Core 9/10 boot-parity red at cb30582ea3b did not reproduce after the merge, and no root cause was established. Head 84156fae352639cca0513422887ffb4e54ca90e0, CI fully green (58 success, 11 skipped). The contract-review delta read for S1 is owed to the reviewing session.",
      "tests": "lint at 72ae1b5e17a (lint unchanged since): test -> Test Files 234 passed (234), Tests 9614 passed (9614); typecheck exit 0. cli at 84156fae352, one lock command joined by &&: typecheck exit 0; vitest --project unit -> Test Files 444 passed (444), Tests 6332 passed (6332); vitest --project integration seed-row-refusals-35653-doors + migrate/plan.boot-parity -> Test Files 2 passed (2), Tests 5 passed (5). spec src/migrations -> Test Files 5 passed (5), Tests 201 passed (201). Ablation of the tenant-column guard (lint src path, no build in resolution): anchor '(obj ? input.resolveTenantFieldName(obj) : null) ?? DEFAULT_ORGANIZATION_COLUMN' replaced with a literal 'organization_id'. It landed (blob d81ee3626f86->d74da4d3cdc3): 1 failed / 18 passed of 19, and the red is the new tenancy.tenantField pin. Restored: blob == HEAD, git diff HEAD empty. A first attempt with the replacement DEFAULT_ORGANIZATION_COLUMN was refused by ablation-replace before any test ran (the replacement text already occurred in the file) and reads as no run. CI Test Core (10/10) at 72ae1b5e17a was red on validate-build-gate-parity: the new Set(...) call in the heading count was unclassified. It is fixed in 84156fae352 and green there.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 84156fae352: 96 families, all run at that head; --ran: '96 derived famil(ies) accounted for — 95 run, 1 NOT-MEASURED'. check-adr-0087-registration: [BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] registered seed-record-refused-before-load (new here). check:type-check-debt: '--re-measure: OK'. check:api-surface: unchanged. check:upgrade-guide and check:spec-changes: green. The derived cli vitest family lost its lock turn (99) and was rerun under the lock: Tests 3 passed (3). NOT MEASURED locally: check:dual-build-cjs-loads, reason: PREREQUISITE NOT MET (packages outside the build closure have no dist); CI runs it in Build Core. CI check-runs at 84156fae352: 58 success, 11 skipped, 0 failure, 0 pending; Test Core (9/10) and (10/10) are among the successes.",
      "dogfood_battery": "84156fae352639cca0513422887ffb4e54ca90e0 · os-verify-lock: VERDICT command-exit 0 · Test Files 487 passed, 3 skipped (490) · Tests 4128 passed, 68 skipped (4196) · no failures",
      "mcp_calls": "0",
      "api_writes": "1 this round: this os-dev-report, POST /repos/objectstack-ai/objectstack/issues/35653/comments, through one relay stroke (POST /repos/objectstack-ai/objectstack/dispatches). Plus git pushes (not REST). The PR body was not written; see open_questions.",
      "open_questions": [
        {
          "question": "Who writes the corrected PR body? The rework order asks the dev to edit it, but .claude/agents/os-dev.md says a subagent writes the PR body only at pr_create and never PATCHes it, with the seat writing it instead; that file governs when the two conflict.",
          "options": [
            "A: the seat writes the prepared body /tmp/claude-0/-home-user/f9e5a024-5026-5c16-9f6c-a24c26474a3c/scratchpad/issue-35653/pr-body-r2.md (signature line 1, Fixes line 3 after one blank line as now, Clause-② yes (narrowing), corrected Build Core / Type Check · debt ledger placement, readings at 84156fae352)",
            "B: the dev is re-dispatched with an explicit PATCH exception"
          ],
          "recommendation": "A, because the body is ready to send as is and the standing rule assigns the write to the seat."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · Test Core (9/10) on cb30582ea3b (job 138857802200): the boot-parity host-config case saw a pending create_table for sys_activity. It is not reproduced at 72ae1b5e17a (CI) or 84156fae352 (local, and CI); only one red was observed, so it is not filed. Dedupe words: boot-parity, sys_activity, migrate-and-exit, AuditPlugin provision"
      ],
      "deviations": "PR body not PATCHed (os-dev.md rule; prepared text handed to the seat, see open_questions). The doors now import resolveTenantFieldName from @objectstack/core, which cli already depends on; SeedRowJudgeInput gains a required resolveTenantFieldName member (a published lint type; the export set does not move). The worktree survived the container restart; no process from the first round was alive, and none of this round's remains."
    }
  14. removed
    pm:dispatched
    on Nov 25, 2026
  15. os-justin commented on Nov 25, 2026

    @os-justin
    Collaborator

    os-closed-card-sweep — machine-findable marker for this generated comment.

    Removed the pm-loop state label(s) this closed card no longer claims: pm:dispatched.

    A state label claims work is in flight. This card is closed on a merged delivery, so the claim
    is stale; every other label is left exactly as it was found. Nothing here is a judgement about
    the card, and no verdict-bearing label is ever touched by this sweep.

    seat repo:objectstack#4 closeout after PR #37198 merged (p0 #37174)

    Generated by Claude Code


    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

Labels

area:builddomain:devxfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions