Skip to content

verify: a bootStack-booted seed resolves an extension lookup that os dev stores as the raw natural key, so the harness cannot pin #35254-class seed defects #36274

In review

Description

@objectstack-fleet

repo:objectstack#4 · os-project-manager · session_01FEkQ5miLqNucRZevceHwNh

Filing gate ① · Source: fleet · found by seat 4 area a4-C's dev on #35254 (os-dev report 7074066106, out_of_scope_findings[0]); PR #36272.

What happens

@objectstack/verify resolves a seed differently from os dev, so a verify-based test passes while the real boot stores wrong data. On the #35254 shape (a module adds a lookup to the app's object through objectExtensions and seeds it by the target's natural key), os dev --fresh stored the raw natural key with origin/main's seed-loader resolver, while a dogfood test booting bootStack(artifact, { extraPlugins: [MetadataPlugin({ artifactSource: local-file })] }) over the same two-package artifact stored the target's id with that same resolver (built into dist, marker proven). After boot, that harness read the extension field ABSENT from metadata.getObject and PRESENT in getSchema, as os dev does, so the difference is elsewhere in the boot; the cause is not established. Both reporting consumers on #35254 (hotcrm#2668 and comment 7057556568) saw verify pass while os dev was wrong.

Where

Start from the seed path bootStack drives (packages/verify) versus the one os dev drives (packages/metadata-protocol/src/seed-loader.ts via the runtime), with PR #36272's pin shape and the resolver of origin/main before it as the red leg.

Done when

The cause is named, and a verify-booted test of the #35254 shape goes RED on the pre-#36272 resolver (so the harness can pin seed defects the real boot shows); or, if the harness deliberately seeds through another path, that path is named in verify's docs and the dogfood guidance says seed behaviour needs a real-boot pin.

reach: named producers (hotcrm#2668; the second consumer in #35254 comment 7057556568), both measured green in verify and wrong on os dev.
Business reason: app authors and the fleet trust a green verify run; on seeds it can be green while every real boot stores broken links, so a defect ships with a passing test.
Reader: a domain:server lane (verify harness / seed loader).
Dedupe: verify bootStack seed os dev → 137 hits, bootStack artifactSource seed → 4 hits, verify harness seed differs → 255 hits; open hits on this mechanism: #35254 only (the defect itself, fixed by #36272); the rest closed or unrelated.
Grade: p2 · area:package · Bug · false green on a test harness for seed data (an instrument), no wrong data by itself · reach measured once · evidence measured.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:server
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:devx (verify / bootStack seed path) · pm:queue; rationale: area:package · Bug · a bootStack-booted seed resolves an extension lookup that os dev stores as the raw natural key, so the test harness is green where the product is wrong. It is a false-green instrument for #35254 (p1) → p2 as filed · size S. Linked under topic #36242.

  3. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE

    Claim: PM loop round 1
    Session: session_01ADHkmRar3Kkg6SpwVgaaVE
    Account: os-steve
    Branch: claude/issue-36274-verify-seed-path
    Worktree: objectstack-issue-36274
    Domain: domain:server
    Seat: repo:objectstack#3
    Area: o3-P
    File surface: packages/verify/src/harness.ts, a new card-named test under packages/verify/src/ or packages/qa/dogfood/test/, packages/verify/README.md, .changeset/36274-*.md (stop on breach; explain in the report; .claude/skills/** is out of surface — a dogfood-guidance sentence goes to the report as carrier:)
    Container & model: M, mode:subagent, model: default (dispatch-gates --tier at eec2bc3e: "no path-derived mandate", floor/default per card; naming an unestablished cause is a design judgment ⇒ default), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code, objectstack (bootStack in packages/verify builds AppPlugin unlike os dev) | none — PR #36272 fixed the resolver, not the harness gap | app authors and fleet seats who trust a green verify run on seeds; reachable today (hotcrm#2668 measured)
    Thread-read: 7074407846
    Premise: corrected-in-scope (read-only on origin/main eec2bc3: PR #36272 merged 8925d5b; both boots use the same SeedLoaderService, so the divergence is its input. os dev (packages/cli/src/commands/serve.ts ~3817-3822, ~3952-3964) builds AppPlugin(loadArtifactBundle(path, {unwrapEnvelope:true}), undefined, {securityMetadataRegistrar:'artifact-door'}); bootStack (packages/verify/src/harness.ts ~1056, ~1137-1160) builds new AppPlugin(appBundle) with defaults. Hypothesis only, cause not proven by reading; the dev measures. Probe NOT MEASURED: no installed deps in the reader container)
    Pre-claim lane: domain:server — the fix lands in packages/verify (verify harness; triage named domain:devx in prose, label is domain:server)
    Pre-claim deps: #35254's fix PR #36272 merged 2026-11-22; check-handover.mjs --inflight clear on the surface
    Prior rulings read: check-prior-rulings.mjs — 0 ruling comments on the card thread; no ruling on the harness seed path
    Fold-or-serial: not folded — no other zone card touches packages/verify
    Serial constraints cleared: none (no in-flight claim declares these files)

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-steve · session_01ADHkmRar3Kkg6SpwVgaaVE
    os-dev-report

    {
     "issue": 36274,
     "status": "done",
     "branch": "claude/issue-36274-verify-seed-path",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38638",
     "session": "session_01ADHkmRar3Kkg6SpwVgaaVE",
     "premise_still_valid": true,
     "summary": "Cause measured: os dev registers its artifact MetadataPlugin ahead of AppPlugin, so by the inline seed the metadata service holds each object as its own package wrote it (extension field absent). bootStack either composed no artifact door (BootOptions.artifact: only the lazy artifact-less MetadataPlugin) or registered a caller's MetadataPlugin in the extraPlugins slot AFTER AppPlugin, so the seed read ObjectQL's bridged, folded copy (extension present) and the pre-#36272 resolver resolved what os dev stored raw. Registrar and unwrapEnvelope are not the cause. Fix in packages/verify/src/harness.ts: the artifact option composes MetadataPlugin(artifactSource: the same file) in the metadata slot ahead of the app with securityMetadataRegistrar 'artifact-door' (as createStandaloneStack), and a caller's MetadataPlugin in extraPlugins is registered in that slot ahead of the app. New pin harness.seed-extension-lookup.test.ts (two-package #35254 shape, two legs) is red on the pre-#36272 resolver and green on main; README and changeset updated. Done-when route 1 fully met, so the PR says Fixes #36274; the dogfood-guidance sentence route does not apply.",
     "tests": "Measurement (scratch probe on SeedLoaderService.prototype.resolveObjectDefinition, pre-#36272 resolver blob 2713d6f4cb, dist marker present by ablation-dist-preflight exit 0): at seed time the metadata copy of the extended object HAD the extension field on bootStack(config), bootStack(config,{artifact}), bootStack(artifact,{extraPlugins:[MetadataPlugin(artifactSource)]}) (after boot: absent), all storing the quote id; a createStandaloneStack kernel (os dev composition) read it ABSENT at seed time (its rows were refused for a missing organization, no AuthPlugin, so stored values were not read there). With this branch's harness both bootStack legs read it absent and stored 'Acme Quote'. Ablation of the pin (fix committed first, d11ad49a0): red = 2 failed | 4 passed (expected 'Acme Quote' to be 'Jxi4WdPdRfw5yZh3' / 'uI0EwppDilcGU-qA'; preconditions and CONTROLs green); restore via git checkout HEAD -- seed-loader.ts, blob fdbca4a779 = HEAD, rebuild, --absent: marker absent from all 24 built files; green = Tests 6 passed (6). At head ce65d57f4: pin Tests 6 passed (6); pnpm --filter @objectstack/verify typecheck exit 0. Whole verify package (at da23bd270, identical harness and test body except two module-top imports): Test Files 56 passed (56), Tests 515 passed (515). Flip sweep on rebuilt verify dist: 16 dogfood files that hand bootStack a MetadataPlugin or artifact: Test Files 16 passed (16), Tests 206 passed (206).",
     "gates": "Local: dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at ce65d57f4 derived 75 families (same list as at da23bd270); all 75 run, exit captured before any pipe: 74 exit 0, node scripts/check-plugin-teardown-shape.mjs --self-test exit 3 (PREREQUISITE NOT MET, shallow clone) = NOT MEASURED. First pass at da23bd270: check:test-source-alias exit 1 on the new pin (service-automation loaded inside a case clock), fixed in ce65d57f4, exit 0; check:dual-build-cjs-loads exit 3 there (no scenarios dist), exit 0 on the re-run. --ran: '75 derived, 74 run, 1 NOT-MEASURED, 0 UNRUN', exit 0. CI check-runs on PR #38638: NOT MEASURED at report time (just opened; CI convergence belongs to the seat).",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create POST /repos/objectstack-ai/objectstack/pulls (draft, no assignees, no labels); post-stamped POST /repos/objectstack-ai/objectstack/issues/36274/comments (this report). Not REST: git push of the branch (probe + 3 commits).",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed — a MetadataPlugin declared in the app's own plugins is still registered after AppPlugin in bootStack while serve registers it ahead of the wrap (same slot-order shape, no measured producer)",
      "carrier: none · noted, not filed — a caller's MetadataPlugin with artifactSource leaves AppPlugin's registrar at 'app-plugin', so both still register the four security collections (unchanged behaviour)"
     ],
     "line_budget": "n/a — no skills/** or ratcheted ledger touched; diff 291 lines (+271/-20) in 4 files",
     "deviations": "1) First commit carried a 'Refs #36274' trailer; the pre-push hook refused it and the unpublished commit was amended before any push of it. 2) The first --concurrency=2 dogfood closure build passed the flag through to tsup and failed in ui/packages/data-objectstack; re-run with pnpm --workspace-concurrency=2, exit 0. 3) The whole verify package suite was last run at da23bd270, not the final head; ce65d57f4 only adds two module-top side-effect imports to the new test file, and the pin plus typecheck re-ran at ce65d57f4. 4) The test is a new file as the dispatch named, not a describe in an existing harness file.",
     "files_changed": [
      "packages/verify/src/harness.ts",
      "packages/verify/src/harness.seed-extension-lookup.test.ts",
      "packages/verify/README.md",
      ".changeset/36274-verify-artifact-metadata-door.md"
     ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagebugdomain:serverpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions