Skip to content

rest + service-analytics: the dataset query door judges admission before it resolves, and the dataset tools run a holder's effective (overlay-first) item (ADR-0150 D3, ADR-0149 D2) #32292

Closed
2 of 2 issues completed

Description

@objectstack-fleet

domain:server#3 · os-support-ai · session_01WGufzeeBmtefMTT21doena

Filed by seat 3, split out of #32183 at its step 0 (readings 6773035227, tree de141e32; seat ruling on #32183). ⛔ Not a claim.
Ruling-ref: epic ruling 6766102988 point 1 (last sentence) and epic ruling (b) on #32098, carried as the #32183 card notes 6767831853 and 6767803831. The two limbs move to this card because they are a different class from #32183's disabled-holder set (an ADR-0149 D2 visibility order, and one holder's row choice), and they sit outside its file surface.

④ coordination card: a child of the ADR-0150 epic #31527.

Epic: ADR-0150 (#31527). Lane: domain:server (rest analytics routes, service-analytics dataset tools). Reader: the server seat that claims it.
Serial: after #32183 lands (it changes the holder set the dataset door reads through getMetaItem).

Limb 1: the REST dataset query door's order (from 6767831853)

POST /analytics/dataset/query (packages/rest/src/analytics-routes.ts) resolves the name through the registry first and reaches admission only inside queryDataset. A caller admitted to neither holder gets a 409 naming both packages. MCP query_dataset admits first and then applies D3 over the admitted holders (#32098, ADR-0149 D2). This breaks no red line: the 409 names every candidate and picks nothing.

Limb 2: one holder's effective item on the served list (from 6767803831)

MCP query_dataset reads the served list. On the stdio fallback one holder can have two listed rows: a bare-slot overlay beside the composite, both stamped with one _packageId. The tool keeps the first parsed row, which is the list's order. The registry's getPackageScopedItem serves the bound bare-slot overlay first, so a customized dataset can run its uncustomized base on that host.

Do

  1. Decide and build the REST door's order. Either judge admission (admitDatasetCatalogEntry) before resolving, as MCP query_dataset does, or record why not. If it judges first: a caller admitted to no holder gets NOT_FOUND, byte-equal to a missing name; admitted to exactly one gets that one; a refusal names only the admitted holders. Declare each moved answer FROM → TO, and pin the hidden holder as absent from every answer.
  2. One holder, one effective item. When a served-list door takes one holder's item, it takes the holder's effective item (overlay first), the same one the registry serves. Pin: a customized dataset on the stdio fallback runs its overlay.
  3. Census every other served-list door that picks one row per holder (dataset, skill prompts/get, the agent roster) for the same first-row choice, and record each.

Clause-②: the claimer declares it. Limb 1 moves 409 → 404/200 for callers admitted to fewer holders (a widening for some, and a visibility change the epic seat red-line reads). Limb 2 moves which body runs.
Dedupe (open and closed: dataset query admission order, query_dataset overlay first parsed row, admitDatasetCatalogEntry): only #32183 (where the limbs were carried), #32072 and #31589 (closed, the work these limbs follow).
Business reason: a caller who may not see a dataset should not learn its package from a refusal, and an administrator's customization of a dataset should be what runs on every host.
Epic red-line review before landing.
class: d · type: Feature
Grade: p2 (no red line broken today; first-party reach 0, since no first-party name has two holders).

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX

    Parked · #32292 · 2026-11-12T13:32Z — on the maintainer's release-line ruling 6824949405 on #31527 (Sales tapped 「三招都用(推荐)」 on the epic seat's card 「专题怎么提速?」, 2026-11-12T13:28:14Z): every p2 card of epic #31527 without an open PR, and every nested follow-up card, waits until the release ships.

    • State: pm:dispatched → pm:on-hold in this stroke; assignee os-sales released. Nothing is deleted.
      Resume-from: claude/project-thread-elxrlt@339584f66cd2ccab69965e45a421dc422fa5192d

    Restart-when: the release that carries the epic #31527 release line is published (ruling 6824949405 on #31527)

  2. added
    pm:on-hold
    and removed
    pm:dispatched
    on Nov 12, 2026
  3. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX

    Un-parked · #32292 · 2026-11-12T13:37Z — the park above is withdrawn. The maintainer (Sales) corrected the release-line ruling 6824949405 in the os-sales project, verbatim: 「我也不着急发版,你已经开发完的分支,还是继续推进到合并」 (2026-11-12T13:30:34Z). A card whose work is developed and pushed continues to merge. pm:on-hold → pm:dispatched, assignee os-sales restored, in this stroke; the takeover claim stands. Still waits on PR #32497.

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

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVQtH5Sd8rivsRdDor
    os-dev-report

    {
      "issue": 32292,
      "status": "done",
      "branch": "claude/project-thread-elxrlt",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/32804",
      "session": "session_01L6bhgVQtH5Sd8rivsRdDor",
      "premise_still_valid": true,
      "summary": "Limb 1 only (limb 2 withdrawn by seat ruling 6817809380, Q3 = A; census in the PR body). Main 2f80f2897, which carries PR #32497 as 0763bf6ec, is merged in at 7499b616a with no rebase: all ten remerge-diff files are the blocker's and each merged blob equals origin/main's, so the delta over main is this card's four files (+539/-45). Head 890be0cd1 adds three pins the ruling still owed: one holder not admitted keeps queryDataset's 403 (Q1 = A), the caller arm's one closure item keeps its 403 and never falls through to a holder outside the closure (Q2 = A), and the caller arm's three-holder refusal names only the two admitted holders (epic scope note 6781265442). Clause-② yes (widening), Metadata-protocol none, as ruled.",
      "tests": "head 890be0cd1: the #32292 describe in packages/rest/src/analytics-routes.test.ts 14/14 green; pnpm --filter @objectstack/rest test exit 0 (407 files, 8124 passed, 332 skipped); test:repo exit 0 (5 files, 300 passed, 23 skipped); typecheck exit 0. Ablation through scripts/ablation-replace.mjs, each leg proven on disk (anchor 1 to 0, blob moved) and restored (blob == HEAD, git diff HEAD empty): A0 refusal rethrown before the rule (main's door) 8 red / 6 green; A1 narrowed refusal keeps every candidate 3 red; A2 503 arm removed 1 red; A3 one-admitted ambiguity not picked 3 red; every control green on every leg. A fifth leg with origin/main's own analytics-routes.ts blob 8a88b63d gives the same 8 red / 6 green as A0, restored to 77cd4831 (HEAD). rest tests import the door from source, so no rebuild between legs.",
      "gates": "dispatch-gates --commands derived 65 for 4 paths; all 65 exit 0 on 890be0cd1, --ran reconciles 65 derived / 65 run / 0 NOT-MEASURED / 0 UNRUN. First pass had two exit 3 prerequisites, both rerun exit 0: check-plugin-teardown-shape --self-test after fetching its pinned fixture commit (shallow clone), check:dual-build-cjs-loads after a full pnpm build (119/119). ADR-0087 registration (--base origin/main, --self-test) and the changeset gates are in the 65. pnpm lint exit 0. CI on the PR: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and the arm is (widening)",
      "mcp_calls": "3 — mcp__github__issue_read (get, get_comments) and mcp__github__list_pull_requests, all reads; no write tool",
      "api_writes": "3 — relay pr_create (POST /pulls, POST /issues/32804/assignees) and this comment; plus two git pushes to the card branch (not REST)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }

    Not done here, left to the seat: the reviewer request (relay pr_request_reviewers at the seat's hand-off), the contract review, the epic red-line read, ready and the queue.

  6. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX

    Claim amendment · 2026-11-12T20:22Z — file surface of claim 6817615501 widened by one file: content/docs/data-modeling/analytics.mdx (its two-holder paragraph is made untrue by PR #32804, so the PR corrects it; os-dev rule: a sentence this change makes false is fixed in the same PR). Card thread session session_01L6bhgVQtH5Sd8rivsRdDor, branch claude/project-thread-elxrlt. Nothing else changes.

  7. objectstack-fleet commented on Nov 12, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#7 · os-sales · session_01L6bhgVSjQBHNkZd6Eqx2XX

    Landed · #32292 · 2026-11-12T21:55Z — PR #32804 (ACCEPT 6836377126) merged as 2fc3fce5bb7a54780288ff1a6dae1767bd96029c (on origin/main). pm:dispatched removed in this stroke. Follow-up #32826 (sub-issue, parked under ruling 6824949405 on #31527).

  8. removed
    pm:dispatched
    on Nov 12, 2026
  9. added 4 commits that reference this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathdomain:serverenhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions