Skip to content

fix(rest): the form list refuses an empty or bracketed object filter, as the view list does - #39692

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-1ni3iw
Dec 4, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-1ni3iw

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #39612

Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or docs page teaches the metadata list door's ?object= filter on form (or view); the refusal sentence itself names the one spelling the filter takes

Contract review owed: this is a narrowing (a new 400 on a public read door), so one CONTRACT_REVIEW_TIER review is owed on this head before the queue, besides L1. Not requested here.

维护者速读

  • 用户能看到什么变化:按对象列表单时,如果对象名为空或用了数组写法,接口不再返回全部表单,而是报错说明要填一个对象名,与视图列表一致。
  • 为什么做:补上元数据列表接口的一致性,防止客户端在对象编号缺失时误拿到所有对象的表单。
  • 出错会怎样:只影响传空对象名的请求,它们从拿到全部表单变成收到报错;可直接撤回这次改动恢复原样。
  • 要你做什么:无。

What changes

GET /api/v1/meta/form?object= (empty value) was read as no filter and answered 200 with every form in the environment, while the view list refuses it. Step 4a of createMetaListAnswer (packages/rest/src/meta-item-read-gate.ts), shared by the REST server and the runtime dispatcher, now asks the existing helpers before it filters:

  • refuseEmptyListFilter('object', 'object', 'form'): an empty ?object= answers 400 VALIDATION_ERROR naming the parameter. The sentence ends "leave the parameter out to list every form you can see", so it names forms, not views.
  • refuseBracketedListFilter(query, 'object', 'object', 'form'), and bracketedKeyJudgedByList now leaves object[ on form to it.

Call sites only, no new helper. The helpers' lists parameter (and throwListFilterRefusal's) is widened from 'app' | 'view' to 'app' | 'view' | 'form', because the sentence's last clause is per list.

Premise correction (bracketed half). On main, ?object[]=NAME and ?object[0]=NAME on form were already refused with 400 VALIDATION_ERROR, by the list's unknown-parameter check (nested { error: { code, message } }, "The "object[]" query parameter is not supported by this endpoint…"). They were never read as no filter, so the triage's String(query.object) reading of that half did not hold. They now get the view list's own refusal: the same flat envelope as view, and the sentence that says the filter takes one object name spelled ?object=NAME. The status and code are unchanged; the envelope and wording change.

Other list types that take ?object=: in the /meta/:type list chain, only view (step 4) and form (step 4a) read it. object is in the list's closed parameter set for every type, so on any other type the parameter is accepted and not read. That is noted under Acceptance notes and not changed here.

Tests

packages/rest/src/meta-form-object-filter-39004.test.ts (the #39597 harness: real ObjectQL engine, SQL store, RestServer route) gets a second describe block:

  • an empty ?object= on form answers 400 VALIDATION_ERROR with no list, as view does; the sentence starts with Query parameter 'object' names no object; got "". and ends with list every form you can see.;
  • ?object[]= and ?object[0]= on form answer 400 VALIDATION_ERROR in view's envelope, naming the key as sent; a bracketed key beside a plain one is refused too;
  • control: ?object=mfo_alpha still lists that object's two forms, and the view list still switches.

Red first on main a92f1ed9: the empty case got [200, undefined, false, …] and the bracketed case got [400, undefined, …] (the nested envelope), so 2 failed and 5 passed. Green at faf560d1.

Readings at faf560d
  • pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-form-object-filter-39004.test.ts src/meta-app-publish-gate.test.ts: 2 files, 42 tests passed.
  • pnpm --filter @objectstack/rest test: 452 files passed, 9379 tests passed, 351 skipped.
  • pnpm --filter @objectstack/rest typecheck: exit 0.
  • Consumer (@objectstack/runtime, after rebuilding rest): src/domains/meta-list-projection-parity.test.ts and src/domains/dispatcher-query-arity.test.ts, 2 files, 1497 tests passed.
  • Derived gates (dispatch-gates.mjs --commands, 72 families): 68 exit 0, 4 NOT MEASURED. check-plugin-teardown-shape --self-test needs a deeper clone than this shallow checkout. check:dual-build-cjs-loads needs every package's dist. check:query-options-erasure and check:type-check-debt hit my local time cap. All four are left to CI.

Acceptance notes

  • ?object= on list types other than view and form (for example /meta/page?object=lead) is accepted by the closed parameter set and not read, so it answers the whole list. This comes from reading the code and was not measured through HTTP, so it is not filed.
  • ?id= on types other than app is in the same position.

Verification

Files to read first, by risk:

  1. packages/rest/src/meta-item-read-gate.ts, step 4a in createMetaListAnswer (the two new refusal calls) and bracketedKeyJudgedByList.
  2. packages/rest/src/meta-form-object-filter-39004.test.ts, the meta list: GET /meta/form?object= with an empty value answers every form instead of 400 like view #39612 describe block.
  3. .changeset/39612-form-list-empty-object-filter.md.

Two-minute check: pnpm --filter @objectstack/rest exec vitest run --maxWorkers=2 src/meta-form-object-filter-39004.test.ts. Expect 7 tests passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibygFKTtFbkC7xCBSUX

… as the view list does

GET /meta/form?object= (empty) was read as no filter and answered 200 with
every form; it now answers 400 VALIDATION_ERROR through refuseEmptyListFilter,
as view does. A bracketed object key on form is judged by the list's own
refuseBracketedListFilter sentence instead of the unknown-parameter check.
Call sites only; the helpers' lists parameter is widened to name form.

Claude-Session: https://claude.ai/code/session_01L9qibygFKTtFbkC7xCBSUX
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

5 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 19 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 5e900d3b77ac19d4c73c5209d1f4a760a85b48a8 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 59033021ff2f80f641afe828ec97f5cd68ff4965 — the merge of head faf560d15122ad913e3ebd060ddfddf6c6e4a8dd into base 5e900d3b77ac19d4c73c5209d1f4a760a85b48a8, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 59033021ff2f80f641afe828ec97f5cd68ff4965 && git checkout 59033021ff2f80f641afe828ec97f5cd68ff4965
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5e900d3b77ac19d4c73c5209d1f4a760a85b48a8 faf560d15122ad913e3ebd060ddfddf6c6e4a8dd && git checkout -B drift-repro 5e900d3b77ac19d4c73c5209d1f4a760a85b48a8 && git merge --no-ff faf560d15122ad913e3ebd060ddfddf6c6e4a8dd

node scripts/docs-audit/affected-docs.mjs --json 5e900d3b77ac19d4c73c5209d1f4a760a85b48a8

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head faf560d · 2026-12-04T13:56Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: faf560d15122ad913e3ebd060ddfddf6c6e4a8dd
Local-runs: none
Scope: packages/rest/src/meta-item-read-gate.ts, packages/rest/src/meta-form-object-filter-39004.test.ts + packages/rest/src/meta-collection-routes.ts, packages/runtime/src/domains/meta.ts, packages/spec/src/api/protocol.zod.ts, AGENTS.md (read at the head / on main, not reviewed)

Inputs: card #39612 (body and its 4 comments: triage 7408414715, the claim and its amendment, the dev report), PR #39692 (body, the 3-file list, the net diff against main), and the 70 check-runs on the head. Narrowing face: no path is a remainder; the changeset is read for ② only.

① Derived judgments

Accept-set changes the diff implies, each read in the head's createMetaListAnswer (step 4a) and bracketedKeyJudgedByList:

  • GET /meta/form?object= (empty string): 200 with every form the caller may see becomes 400 VALIDATION_ERROR, thrown by refuseEmptyListFilter('object', 'object', 'form'). Right: it is the card's Expected, and the exact strict-equality test (query?.object === '') step 4 runs for view.
  • GET /meta/form?object[...]=NAME (any key opening object[, alone or beside a plain object): 400 VALIDATION_ERROR before and after. Before, recognition (metaListUnknownParamRefusal) refused it as a name outside META_LIST_QUERY_PARAMS; now recognition leaves it to the chain and refuseBracketedListFilter refuses it with the located sentence. Right, and the dev's premise correction holds on the code: on main bracketedKeyJudgedByList('form', 'object[]') was false, so the key was never read as no filter. Status and code are unchanged; the sentence changes, and on RestServer the envelope moves from the nested error.code / error.message pair to the flat one handleRouteError writes (see N2).
  • Unchanged, confirmed by reading: ?object=NAME narrows as fix(rest): apply the object filter to the form list #39597 left it; a value that names nothing real, whitespace included, still answers the empty list (only '' is refused, as on view); no object key still lists every form; a repeated ?object=a&object=b is still the arity gate's refusal at the door; view and app are untouched (their call sites pass the same literals as before).
  • Both transports and the environment-scoped twin: RestServer (meta-collection-routes.ts, one handler for both mounts, listType folded by metaTypeSingular) and the runtime dispatcher (runtime/src/domains/meta.ts, listType folded by pluralToSingular) hand the same folded type to recognition and to the chain, so recognition's exemption and the chain's refusal cannot disagree, for /meta/form or /meta/forms. The changeset's "REST server and the runtime dispatcher" claim holds.

Public-surface changes: none. refuseEmptyListFilter, refuseBracketedListFilter and throwListFilterRefusal are module-private; widening their lists literal union to include 'form' exports nothing. No spec schema, no exported constant (META_LIST_QUERY_PARAMS is unchanged), no route added.

② Semver level

@objectstack/rest: patch with a BREAKING banner, Clause-②: no (narrowing), Metadata-protocol: none, and one ADR-0087 marker (not-required (no-migration-prescription)). Matches what the diff publishes under AGENTS.md's changeset rule: a non-protocol breaking change ships patch and keeps its banner and disposition; nothing a metadata author can write changes, so the kind is none; the fix for a client (send one object name, or leave the parameter out) is in the body. Clause-②: no (narrowing) is line-initial in both the PR body and the changeset. Check Changeset is green on the head (the newest run, 13:37Z, succeeded; the cancelled run between the two successes was superseded).

Clause-②: no (narrowing) — correct. The diff adds no accepted input; it turns one accepted-and-misread input into a refusal.

③ Boundary flags

  • Dev report open_questions: empty. Nothing to answer.
  • Dev flag, premise correction (bracketed half already 400 on main): confirmed in ①; the card's "form now reads it through String(query.object)" did not hold for a bracketed key, which query.object never sees.
  • Dev flag, four derived gates NOT MEASURED locally (check-plugin-teardown-shape --self-test, check:dual-build-cjs-loads, check:query-options-erasure, check:type-check-debt): answered by the head's check-runs. Lint · scoped · query-options erasure, Type Check · debt ledger, Lint · scoped · tooling self-tests, Build Core, Lint & Repo Gates, TypeScript Type Check, all 12 Test Core shards, the three dogfood battery shards, Live E2E UI and Governed Surface Queue Guard conclude success. No check-run on the head concludes failure.
  • Dev out-of-scope finding (?object= and ?id= accepted and ignored on the other list types): answered under ④, "The owning zone's question". Escalated as a card, not as a finding on this head.
  • SQL push-down: no finding. The diff adds two guard calls ahead of an existing in-app filter; it adds no id materialisation, no join and no read. (The in-app object filter itself is fix(rest): apply the object filter to the form list #39597's, on main, outside this diff.)

④ Design judgment

The narrowing makes the door's own refusal real; it takes no declared capability away. Read against main:

  • The published spec (GetMetaItemsRequestSchema, packages/spec/src/api/protocol.zod.ts) declares no object member at all; the object filter is REST ingress, declared by the door's closed set. The spec's own docblock names an empty filter read as absent "a widening — the class the list door's ?id= / ?object= refusal closes (refuseEmptyListFilter in @objectstack/rest)". An empty ?object= listing every form was never a declared capability; it was that class, left open on form when fix(rest): apply the object filter to the form list #39597 gave form the filter.
  • The capability a caller could have been leaning on, "list every form", is intact and is named in the refusal itself: "leave the parameter out to list every form you can see". Nothing is delivered less than before except the misreading.
  • AGENTS.md route rule 5 states the harm exactly: a dropped filter returns the full set and no status, header or field distinguishes it from a real answer. The refusal is the remedy that rule prescribes.

Attempts to break it, none of which landed:

  • A first-party consumer that sends the empty or bracketed form. None found: the Console reads /meta/form unfiltered or by item name, data-objectstack spells ?object= only on view and always through encodeURIComponent(objectName), and its own docblock notes neither client spells ?object= through client.meta.getItems. Live E2E UI, Test UI and the dogfood battery are green on the head.
  • Recognition and chain disagreeing on the type. Both transports fold once and pass the same listType to both; see ①.
  • Ordering inside step 4a. Bracketed first, then empty, then the filter: ?object=&object[]=x gets the bracketed sentence, ?object= alone the empty one, and neither can fall through to the filter. Same order as steps 3 and 4.
  • Wrong sentence for the list. The widened lists literal reaches throwListFilterRefusal, so the tail reads "list every form you can see"; the test pins both the head and that tail for the empty case.
  • A value that should refuse but narrows instead (%20, an unknown name): answers the empty list, deliberately the same as view and documented on the helper. Not a regression of this diff.
  • Refusal after the store read. The 400 is thrown after step 2 (the per-caller gate), so the list is read before it is refused. That is the helper's documented place ("AFTER the per-caller gate, which keeps its place") and what view and app do; it leaks nothing, since the body carries no item.

The pin (meta-form-object-filter-39004.test.ts, second describe) runs the real RestServer route over a real engine and SQL store, asserts status, code, that no list was served, and the sentence, with view as the in-test control and a preservation case for a real object id. It reads as a pin, not a bare status assertion.

No must-fix, no should-fix.

Nits (no effect on correctness or the contract; none needs a fix on this head):

  • N1 (nit) — the new pins drive RestServer only. The dispatcher's form refusal rides the shared chain and the shared bracketedKeyJudgedByList, so it holds by construction, but no test in the diff names form on that transport. Follow-up material, or an accepted deviation.
  • N2 (nit) — the changeset's "Bracketed key" bullet says the request now gets "the view list's refusal instead" without saying that on RestServer the body shape moves from nested error.code to the flat code beside a string error. The PR body says it; the changeset, which ships as the CHANGELOG, does not. A client branching on error.code for that one already-refused request would read undefined.
  • N3 (nit) — META_LIST_QUERY_PARAMS's docblock still glosses object as "the view switcher" though form has read it since fix(rest): apply the object filter to the form list #39597. Pre-existing on main, outside this diff.

The owning zone's question — ?object= / ?id= accepted and ignored on the list door for types other than app / view / form: outside this narrowing's contract, and it does owe a card.

  • Outside this contract. Card meta list: GET /meta/form?object= with an empty value answers every form instead of 400 like view #39612's Expected is the form list joining the view list's two refusals, and the claim's file surface says "call sites only". Refusing or implementing the parameter on every other type is a different accept-set change on a dozen-odd types, with its own design choice and its own narrowing review. It is no finding on this head, and this PR must not grow to carry it.
  • It owes a card. It is the class route rule 5 exists for and the class the door's own code says it closes: META_LIST_QUERY_PARAMS's docblock condemns a name that "answered the whole list with 200, which a caller cannot tell from a filter that matched everything". The closed set is one set for the door, while the reads are per type, so GET /meta/page?object=lead passes recognition and no step reads it. The door is also inconsistent with itself today: bracketedKeyJudgedByList refuses ?id[]=x on a type that reads no id ("a name the list does not read, refused here"), while the plain ?id=x on that same type answers the whole list. Metadata read: GET /api/v1/meta/form?object=X ignores the object filter and answers every form #39004 was this exact defect on form, filed and fixed.
  • What the card must carry. (a) An HTTP measurement first: the dev's note is a code reading, and I confirm the reading (recognition is type-blind for plain keys; only steps 3, 4 and 4a read id / object), but the filing gate wants it measured, which the fix(rest): apply the object filter to the form list #39597 harness does in one case. (b) A per-type ruling, not a blanket refusal: for a type whose items bind an object, the answer may be to IMPLEMENT the filter, as Metadata read: GET /api/v1/meta/form?object=X ignores the object filter and answers every form #39004 did for form; for a type with no such binding, to refuse the name per type. A capability declared and not delivered is implemented or retired, never narrowed at the consumer, so which arm applies to which type is the maintainer's call, and the refusing arm is itself a narrowing that owes its own review. (c) A dedupe pass on the dev's words (META_LIST_QUERY_PARAMS per type, id filter ignored non-app) before filing; I searched no issues.

Implemented-by: claude/project-thread-1ni3iw
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Filled brief handed to the isolated at-tier reviewer whose record is the comment above (adopted by this L1-a thread):

Contract review brief — PR #39692 @ faf560d15122ad913e3ebd060ddfddf6c6e4a8dd (card #39612)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39612: its body and EVERY comment (rulings and earlier records included)
· PR #39692: its body, its file list, and the net diff against main at faf560d15122ad913e3ebd060ddfddf6c6e4a8dd
· the check-runs on faf560d15122ad913e3ebd060ddfddf6c6e4a8dd: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (none in this diff; .changeset/39612-form-list-empty-object-filter.md is the changeset), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/f90b304d-2703-5b33-b155-97489671c85a/scratchpad/pr-39692/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Question the owning zone asked to have judged (answer it, do not assume a verdict):
· ?object= / ?id= are still accepted and ignored on the list door for types other than app / view / form.
Does that owe a card (a silent-ignore on a public read door), or is it outside this narrowing's contract?

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · ACCEPT · #39692 @ faf560d151 · Area: ot-build · read 2026-12-04T14:02Z

  • L2: I adopt at-tier record 7413718842 (CONTRACT_REVIEW_TIER, narrowing face, PASS, No must-fix, no should-fix., nits N1–N3) and its filled brief. Independence pair holds: reviewer session ≠ dev session.
  • Card fit: meta list: GET /meta/form?object= with an empty value answers every form instead of 400 like view #39612 asks the form list to join the view list's two refusals at the call sites only. Step 4a calls the existing refuseBracketedListFilter / refuseEmptyListFilter for form (type widened to 'app'|'view'|'form', no new helper). Empty ?object= on form goes 200 → 400; bracketed object[…] stays 400 and now carries the view list's envelope and sentence. Fixes #39612 is right.
  • Declarations: Clause-②: no (narrowing), Metadata-protocol: none, @objectstack/rest patch with the BREAKING banner and one ADR-0087 marker; Skills-docs: none with its reason is true (no skill or docs page teaches ?object= on this door). needs:dogfood-battery is on and the battery concluded success at this head.
  • Changeset, read sentence by sentence: true to the diff. N2 (nit): the "Bracketed key" bullet does not say that on RestServer the 400 body moves from nested error.code to the flat code beside a string error; the PR body says it. Accepted deviation, or ride a later changeset.
  • Out-of-scope question (zone's): ?object= / ?id= still accepted and ignored on the other list types is outside this card's contract, and it does owe a card — the same silent-ignore class Metadata read: GET /api/v1/meta/form?object=X ignores the object filter and answers every form #39004 was on form, and the door refuses ?id[]=x while answering plain ?id=x with the whole list. The card owes an HTTP measurement first, then a per-type ruling (implement where items bind an object, refuse elsewhere — the refusing arm is its own narrowing). Dedupe before filing. The seat files it.
  • Nits (no block): N1 no pin names form on the dispatcher transport (the shared chain covers it); N3 META_LIST_QUERY_PARAMS' docblock still calls object "the view switcher" (pre-existing).
  • Gates at faf560d151 (l1-face.mjs --pr 39692): 45 success · 24 expected skip · 0 failed · 0 pending; the one Check Changeset=cancelled sits between two successes on this head (superseded). Mergeable clean.

Not Tier H: the seat lands it after this ACCEPT.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

维护者速读

  • 用户能看到什么变化:按对象查表单列表时,对象参数写空(?object=)或带括号,现在直接报错,不再悄悄返回全部表单;和视图列表一致。
  • 为什么要改:调用方(脚本、AI)以为拿到的是某个对象的表单,实际拿到全部,会按错的结果继续做。
  • 风险:这是收紧,以前被放过的空参数现在被拒(400);只改一个读取口,带说明条目。因为是收紧,按规矩要你批。
  • 要你做什么:在 PR fix(rest): the form list refuses an empty or bracketed object filter, as the view list does #39692 上批准(L2 PASS 评论 7413718842,Head-sha faf560d15122ad913e3ebd060ddfddf6c6e4a8dd),批准后座位落地。

Seat opinion: ACCEPT. The form list now refuses what the view list already refuses (#39004 family); nothing that names a real object changes.

席位核对

ACCEPT · head faf560d15122ad913e3ebd060ddfddf6c6e4a8dd · 2026-12-04T14:03Z

  • Shape: packages/rest/src/meta-item-read-gate.ts +17/−8, one test file, changeset; 101 lines. Clause-②: no (narrowing) ⇒ maintainer approval.
  • Premise: meta list: GET /meta/form?object= with an empty value answers every form instead of 400 like view #39612 (empty ?object= on GET /meta/form answers every form; view answers 400); restatement 7411392920.
  • Gates: CI green on head (45 ok, 24 skipped, 0 failed), mergeable clean, Dogfood battery (opt-in) success; L2 CONTRACT_REVIEW_TIER PASS 7413718842 (no must/should-fix; N1–N3 accepted); L1-a ACCEPT 7413744060.
  • Deviations accepted: none.
  • Out of scope: ?object= / ?id= accepted and ignored on the other meta list types → card filed by the seat.
  • Landing: maintainer approval via os-zhuang, then the seat lands.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-04T14:04Z · Hand-off: PR #39692 awaits the maintainer's approval (Tier H); seat record above.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 4, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 4, 2026 14:04
@os-zhuang
os-zhuang marked this pull request as ready for review December 4, 2026 14:28
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 6b551a0 Dec 4, 2026
77 of 78 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-1ni3iw branch December 4, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation needs:dogfood-battery pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

meta list: GET /meta/form?object= with an empty value answers every form instead of 400 like view

3 participants