Skip to content

metadata-protocol: follow-ups from the #35444 contract review: expansion/relation-target docblocks, a disabled-and-unexposed precedence pin, and the handbook's lookup line #35528

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbP6iSEGkWb5fn8yqd

Filing gate ①: nits N1–N3 of contract review 7007338672 on PR #35444 (VERDICT PASS, no must-fix or should-fix). The seat asked for them as one p3.

维护者速读

  • 用户能看到什么变化:没有。这张卡只补说明文字和一条测试。
  • 为什么做:停用包的关联展开修好后,有几处代码注释和运维手册还是按旧的行为写的。
  • 出错会怎样:不改的话,读文档的人会误以为关联字段还能展开停用包的记录。
  • 要你做什么:无。

Items

  • N1. In packages/metadata-protocol/src/protocol.ts, the class docblocks for refuseUnservedRelationTarget, servedExpand and servesExpansionTarget still describe the exposure decision alone. They should name the disabled-package predicate as well. EXPANSION_TARGET_OPERATION's docblock says a lookup renders alike on the data door and the dataset door. That no longer holds for a disabled target until the analytics door asks the same predicate (see the analytics card under metadata-protocol: $expand and a relation condition serve a disabled package's records through an enabled object's lookup, while the data route answers 404 OBJECT_PACKAGE_DISABLED #35427).
  • N2. Add a pin for a target that is both package-disabled and unexposed (apiEnabled: false or a whitelist). The relation condition answers OBJECT_PACKAGE_DISABLED, matching the direct route's order, and $expand withholds the entry.
  • N3. The deployment handbook's data-plane bullet should say what a lookup from an enabled object into a disabled module answers: $expand keeps the stored id, and a relation condition is refused with 404 OBJECT_PACKAGE_DISABLED.

Related: #35427 (parent), PR #35444.
Suggested-grade: p3.

Activity

  1. added
    domain:server
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:package · Bug (docblocks and the operator handbook still say a relation field expands a disabled package's records) · builders and operators, often → p2: a wrong sentence in shipped text is a Bug at that reach, not p3.

  3. added
    priority:p2
    and removed on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:queue added: my 14:4xZ audit line set the lane and grade but left the card with no pm state.

  5. added
    pm:queue
    on Nov 19, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB

    Claim: PM loop round 1
    Session: session_01L9qibyBJGiLjzCtE4F6HHB
    Account: os-tesla
    Branch: claude/project-thread-wx3lh7
    Worktree: objectstack-issue-35528
    Domain: domain:server
    Seat: repo:objectstack#3
    File surface: packages/metadata-protocol/src/protocol.ts and packages/metadata-protocol/src/protocol-query-validation.ts (docblocks of refuseUnservedRelationTarget, servedExpand, servesExpansionTarget, EXPANSION_TARGET_OPERATION only; no code change), one new pin test file named for this card under packages/metadata-protocol/src/ or packages/runtime/src/domains/, content/docs/deployment/marketplace-handbook.mdx (the "Data plane" bullet only), one @objectstack/metadata-protocol patch changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default tier — dispatch-gates.mjs --tier on protocol.ts, protocol-query-validation.ts, marketplace-handbook.mdx: "no path-derived mandate"; docblock wording and a new pin are not judged by the gate farm, so default over floor, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform text in objectstack (metadata-protocol docblocks and the deployment handbook lag PR #35444's disabled-package refusal on $expand and relation conditions) | none — no other page says what a lookup into a disabled module answers | builders and operators reading the docblocks or the handbook; read on origin/main e69fa46d
    Thread-read: 7014355190
    Premise: holds — at origin/main e69fa46: the refuseUnservedRelationTarget docblock (protocol.ts ~5108-5121) names only the exposure decision (OBJECT_API_DISABLED / OBJECT_API_METHOD_NOT_ALLOWED); servesExpansionTarget and servedExpand docblocks likewise; the handbook's "Data plane" bullet (marketplace-handbook.mdx:323-325) says nothing about a lookup from an enabled object into a disabled module. Moved since filing: the bodies now live in protocol-query-validation.ts (#25467 cut 3), and service-analytics now withholds a disabled target too (analytics-service.ts:1737, #35525), so N1's sentence that EXPANSION_TARGET_OPERATION's "alike on both doors" no longer holds is for the dev to re-measure, not to write as given. N2's pin: no existing test found that combines a disabled package with apiEnabled: false; the dev confirms before adding.
    Serial constraints cleared: no open PR touches protocol.ts, protocol-query-validation.ts or marketplace-handbook.mdx (file scan of all 48 open PRs at 07:4xZ); seat p1 #37608's PR #37818 does not touch them; parent #35427 closed, PR #35444 merged 2026-11-19T12:18Z; overlap-check.mjs re-runs before the first push
    Area: o3-package

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB
    os-dev-report

    {
      "issue": 35528,
      "status": "done",
      "branch": "claude/project-thread-wx3lh7",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37893",
      "session": "session_01L9qibyBJGiLjzCtE4F6HHB",
      "premise_still_valid": true,
      "summary": "N1: the docblocks of refuseUnservedRelationTarget, servedExpand and servesExpansionTarget (protocol.ts) now name the disabled-package predicate beside the exposure decision, and say it is asked first. They take net 0 lines, because the protocol.ts facade line ceiling is at 0 margin. EXPANSION_TARGET_OPERATION: H2 confirmed. service-analytics withholds a disabled target on the label pass too (analytics-service.ts ~1737, wired in plugin.ts ~1803), so 'alike on both doors' holds. The sentence was kept, with one added sentence for the disabled case. N2: pin added and green on main; no code changed. N3: handbook Data plane bullet extended.",
      "tests": "head 224d7072: vitest run src/protocol.expand-disabled-package-35427.test.ts src/protocol.expand-target-exposure.test.ts -> Test Files 2 passed (2), Tests 30 passed (30); pnpm --filter @objectstack/metadata-protocol typecheck exit 0 (tsc --listFiles counts the pin file: 1); lock VERDICT command-exit 0. Full package suite at 13b9b1b4 (the later commit is docblock-only): Test Files 372 passed | 9 skipped (381), Tests 23579 passed | 45 skipped; lock VERDICT command-exit 0. No ablation: no tested behaviour changed (pin of existing behaviour). The whitelist case discriminates by its control: re-enabled it answers 405 OBJECT_API_METHOD_NOT_ALLOWED and is expanded.",
      "gates": "local: dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 104 families at 224d7072. All 104 were run after the final commit, each exit captured before any pipe. --ran reconciliation (exit 0): '104 derived famil(ies) accounted for — 103 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. NOT MEASURED: check-plugin-teardown-shape.mjs --self-test exit 3; reason: shallow clone, positive control 621a4876 unreachable, shared clone not deepened. On the first head 13b9b1b4, check:facade-delegation-only went red: protocol.ts was 11716 lines against its ceiling of 11705. Fixed in 224d7072 by net-0 rewording; now 'protocol.ts: 11705 lines, ceiling 11705 (0 left)'. overlap-check.mjs: VERDICT clean exit 0 before each push. CI: PR #37893 check-runs at report time are all in_progress or queued (Check Changeset, Lint ·*, Type Check ·*, Governed Surface Queue Guard, PR-body guards, Spec property liveness); no conclusions yet.",
      "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no without a (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push x2 (not REST); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST issues/37893/assignees os-tesla); post-stamped comment on #35528 (POST issues/35528/comments)",
      "files_changed": [
        ".changeset/metadata-protocol-disabled-unexposed-target-pin.md",
        "content/docs/deployment/marketplace-handbook.mdx",
        "packages/metadata-protocol/src/protocol-query-validation.ts",
        "packages/metadata-protocol/src/protocol.expand-disabled-package-35427.test.ts",
        "packages/metadata-protocol/src/protocol.ts"
      ],
      "line_budget": "87 changed lines (+69 / -18) against a suggested budget of about 60 net. Net +51: protocol.ts 0, protocol-query-validation.ts +2, handbook +3, pin +33, changeset +13.",
      "deviations": [
        "File surface: the pin was added as a top-level describe in the existing PR #35444 harness file protocol.expand-disabled-package-35427.test.ts, not as a new file. AGENTS.md binds a new pin for a component with a shared harness file to go into that file (ruling record 6583487846), and AGENTS.md outranks the dispatch's 'one new pin test file'. The pin adds two SCHEMAS rows and two lookups there.",
        "The local branch claude/project-thread-wx3lh7 already existed at adb65d16, an ancestor of origin/main with no own commits. The worktree was created on it and fast-forwarded to origin/main e69fa46d.",
        "The PR body footer is the AGENTS.md session-URL form, not the harness reminder's robot-emoji line."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB

    ACCEPT → PR #37893 comment 7215129661 (L1-a, head 224d7072) · landing armed 2026-11-27T09:50Z (comment 7215148090): ready + auto-merge. No L2 owed.

  10. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyBJGiLjzCtE4F6HHB

    Delivered 2026-11-27T10:19Z · PR #37893 merged as f7f9345e5a (Fixes #35528). pm:dispatched comes off with the close; assignee kept as the record of who delivered it.

  11. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions