Skip to content

feat(cloud-connection)!: the marketplace catalog list filters by taxonomy facets on the server, and retires ?category= - #31234

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-eqgsby
Nov 7, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-eqgsby

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #31173

Clause-②: no (narrowing) — the facets are declared by the published MarketplaceSearchRequestSchema; refusing the retired ?category= filter, and a facet the catalog cannot answer, narrows what the proxy honours
Metadata-protocol: none
Skills-docs: none — no page under skills/** or content/docs/** describes the query of GET /api/v1/marketplace/packages (a git grep for category= and marketplace/packages there finds none); the generated references/marketplace/marketplace.mdx already lists the facet keys from the schema, and nothing in it moves

维护者速读

What changes

packages/cloud-connection/src/marketplace-proxy-plugin.ts, the catalog list door GET /api/v1/marketplace/packages (and HEAD):

  • The facets, the spec's spelling. businessFunctions, industries, solutionTypes (plural, each a list) and maturity (one value), the keys MarketplaceSearchRequestSchema declares in @objectstack/spec/marketplace. A facet is ONE comma-separated value, ?businessFunctions=sales,marketing, the spelling the platform's other list-valued query parameters take (names on the /meta list, fields / searchFields on the data routes); each value trimmed, blanks dropped, repeats folded. The allowed values are read from the spec schemas' .options, never copied.
  • OR within, AND across. A row passes a facet when it carries any selected value; facets AND with each other, with maturity and with q. Rows are the catalog's own (snake_case business_functions, industries, solution_type, maturity, the columns objectstack-ai/cloud#3661 adds and console marketplace: facet filters (business function, industry, solution type) and a Beta badge replace the single category chip row — reads the spec taxonomy (objectstack#30904) #31011's console reads). A row with no solution_type counts as the spec's default app (DEFAULT_SOLUTION_TYPE) and one with no maturity as stable, the spec's reading of an absent key and the console's (effectiveSolutionType on PR feat(console): marketplace facet filters and a Beta badge from the spec taxonomy #31187). A row without the facet columns passes no business-function or industry filter, so until the cloud serves the taxonomy those two facets return nothing, as console marketplace: facet filters (business function, industry, solution type) and a Beta badge replace the single category chip row — reads the spec taxonomy (objectstack#30904) #31011 plans.
  • Paged on the server. On the public snapshot path the proxy filters the whole snapshot, then limit / offset page it (limit 1–100, default 50, as before) and total counts every match.
  • ?category= retired, and refused. The category branch is gone. A category parameter is refused 400 VALIDATION_ERROR with the spec's own prescription, retiredCategoryGuidance('MarketplaceSearchRequest.category') from @objectstack/spec/marketplace: the text a parse of MarketplaceSearchRequestSchema gives the same retired key (migration entry 18.marketplace-category-retired), naming the facets to send instead. No second spelling is kept, and a caller still filtering by category is told so instead of receiving the whole catalog.
  • Refused, before either path is asked, 400 with the proxy's { success: false, error: { code: 'VALIDATION_ERROR', message } }: category (above), a value the spec does not declare for the facet (?businessFunctions=crm, ?maturity=preview), a facet or maturity supplied twice (?industries=retail&industries=logistics, the shared repeatedQueryParamMessage), and a facet naming no value (?solutionTypes=). The read sits in the handler ahead of the R2 fast path and the cloud path, so the answer does not depend on which one serves the list.

Tests

The catalog pins live in the proxy's existing harness, packages/cloud-connection/src/marketplace-proxy-browse-only.test.ts (its captureHandler and fakeCtx, plus a stubbed fetch), 13 new beside its 3: OR within a facet, AND across, the app / stable defaults, rows without the taxonomy, folded values, q plus server paging (total, limit, offset), ?category= refused with the spec prescription alone, beside a real filter and on the cloud-only configuration, each facet refusal on the R2 configuration and on the cloud-only one with no fetch made, and the cloud path forwarding the facet query verbatim.

Suites and ablations
  • pnpm --filter @objectstack/cloud-connection test: on head 868cfd7e (in the dogfood chain, under the lock), Test Files 73 passed (73), Tests 952 passed (952). typecheck (tsc --noEmit plus tsconfig.test.json, which compiles the test): exit 0 on 868cfd7e.
  • Ablations through scripts/ablation-replace.mjs on the committed implementation (868cfd7e), each anchor hit once, each restore proven by blob == HEAD and an empty git diff HEAD. The suite imports the plugin from src/ relatively, so no build sits on the path.
    • A1, the category refusal disabled (red-first for the retargeted pins): both ?category= cases red, expected undefined to be 400, 2 failed / 14 passed.
    • A2, the undeclared-value refusal disabled: 2 failed / 14.
    • A3, the repeated-key refusal disabled: 1 failed / 15.
    • A4, the empty-facet refusal disabled: 1 failed / 15.
    • A5, OR within a facet turned into every-of: 3 failed / 13.

Acceptance notes

  • Card vs spec spelling. The card writes solutionType; the spec's request schema declares solutionTypes (a list, like the other two facets). The door implements the declared spelling only; ?solutionType= is ignored like any parameter the door does not read (the proxy refused no query parameter before this change, and category is the one retired key it now refuses). solutionType (singular) is the listing's own key, not a filter.
  • The cloud path. With no OS_MARKETPLACE_PUBLIC_BASE_URL (the default: resolveMarketplacePublicBaseUrl returns empty when it is unset) every list request takes the cloud path, which forwards pathname + search to the control plane unchanged once the query passes the door (pinned by the last test). Whether the cloud filters by these names is the cloud's: NOT MEASURED here, reason: objectstack-ai/cloud is not readable from this session. Until it does, the console's switch-over sees server filtering only where the public snapshot path is configured.
  • The request schema is not this route's whole query. MarketplaceSearchRequestSchema also declares query / page / pageSize, while this door (and the console, and the cloud route it proxies) speak q / limit / offset, and the list answers the catalog's row shape, not MarketplaceSearchResponseSchema. This PR takes only the facet keys and values from the schema and leaves the paging names as they were.
  • Kept as before. ?limit=abc still reads NaN and answers an empty page on the snapshot path (limit: null on the wire): unchanged here, not in this card. The console switch-over to the server parameters is the domain:ui follow-up the card names.

Verification

Head 868cfd7e (rework round after contract review 6711888512; origin/main merged once at 248a01c7). Gate union derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (60 families), run after a full pnpm turbo run build --concurrency=2 (VERDICT command-exit 0), each exit code captured before any pipe:

  • 60 run, exit 0 each. --ran: "60 derived famil(ies) accounted for — 60 run, 0 NOT-MEASURED". check-plugin-teardown-shape --self-test needed git fetch --depth=1 origin 621a4876 for its fixture on this shallow clone.
  • Full dogfood battery (the (narrowing) arm), pnpm --filter @objectstack/dogfood test under the lock on 868cfd7e: VERDICT command-exit 0, Test Files 435 passed, 3 skipped (438), Tests 3609 passed, 41 skipped (3650).
  • pnpm lint scoped: eslint --no-inline-config over the two touched source files, exit 0.
  • CI families are read from this PR's check-runs, not re-run here.

Generated by Claude Code

…cets on the server, retire ?category=

The catalog list door reads businessFunctions, industries and solutionTypes
(one comma-separated value each) and maturity, ORs inside a facet and ANDs
across, and pages the filtered snapshot. A value the spec does not declare,
a repeated facet key or an empty facet is refused before either path runs.
The ?category= filter is gone; the parameter is read as no filter.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@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 Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/cloud-connection, touching 16 documentable anchor(s).

26 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 5b22ee759364cb675ff5d4281b797c3684323f69.

⛔ 6 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 6 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 63 of 226 client-bound route-ledger rows — the other 163 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 163: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 104 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 — 6 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 5b22ee759364cb675ff5d4281b797c3684323f69 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from fe2a71e4e06127134d7215f4f86bdfe500bc73b5 — the merge of head 868cfd7e797dc67a17f7a7f4df224edf047da3be into base 5b22ee759364cb675ff5d4281b797c3684323f69, 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 fe2a71e4e06127134d7215f4f86bdfe500bc73b5 && git checkout fe2a71e4e06127134d7215f4f86bdfe500bc73b5
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5b22ee759364cb675ff5d4281b797c3684323f69 868cfd7e797dc67a17f7a7f4df224edf047da3be && git checkout -B drift-repro 5b22ee759364cb675ff5d4281b797c3684323f69 && git merge --no-ff 868cfd7e797dc67a17f7a7f4df224edf047da3be

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

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 5b22ee759364cb675ff5d4281b797c3684323f69 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

Contract-review-claim: session_01FEkQ5o8PE7ZtVjcor51wBZ · head 81072e5 · 2026-11-07T19:12Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 81072e50e85a4f02ed801b5e25d316cf103b07ad
Local-runs: none
Scope: packages/cloud-connection/src/marketplace-proxy-plugin.ts, packages/cloud-connection/src/marketplace-proxy-catalog-facets.test.ts + packages/spec/src/marketplace/marketplace.zod.ts, packages/spec/src/marketplace/taxonomy.zod.ts, packages/spec/src/shared/retired-key.ts, packages/spec/src/migrations/entries/semantic/18.marketplace-category-retired.ts, packages/rest/src/query-multiplicity.ts, packages/cloud-connection/src/marketplace-public-url.ts, packages/cloud-connection/src/marketplace-proxy-browse-only.test.ts, ui/packages/app-shell/src/console/marketplace/marketplaceApi.ts, ui/packages/app-shell/src/console/marketplace/marketplaceTaxonomy.ts

Inputs read: card #31173 (body, triage 6709309123, claim 6710538394, os-dev-report 6711774130), PR #31234 (body, 3-file list, net diff origin/main...81072e50), the head's check-runs. .changeset/31173-marketplace-catalog-facet-filters.md is a prose face: read for ②, not reviewed. Check-runs on the head at review time: 27 success, 13 skipped, 6 still in_progress (Test Core 1–5/8, Type Check · workspace), none failed; the gate verdicts that are in do not move the verdict below, and the pending six cannot turn a ④ must-fix into a PASS.

① Derived judgments

Each accept-set or public-surface change the diff implies at GET|HEAD /api/v1/marketplace/packages, judged against the published spec on main (MarketplaceSearchRequestSchema, taxonomy.zod.ts) and the cited code:

  1. Facet keys honoured — businessFunctions, industries, solutionTypes (one comma-separated value each) and maturity (one value). Right. They are the keys the published request schema declares (marketplace.zod.ts:434–442); the allowed values are read from the spec enums' .options, not copied; OR inside a facet and AND across matches the schema's own docblock ("Values inside one facet are OR-ed, facets are AND-ed"). The comma form is the platform's wire spelling of a list-valued query parameter (fields, names), not a new capability, so the accept set widens nowhere.
  2. Undeclared value refused, 400 VALIDATION_ERROR. Right. The spec's z.enum refuses the same value; the code is the ledger's standard 400 code (ADR-0112). Case-sensitive (Retail refused) matches the enums.
  3. Repeated key refused (?industries=a&industries=b), shared repeatedQueryParamMessage. Right, as a declared narrowing. The spec declares an array, not its query encoding; the comma form carries every declared array, so no declared value is lost, and the refusal is the repo's one multiplicity rule (query-multiplicity.ts, packages/rest 的其它 req.query.* 读取点同样把 string | string[] 当字符串用(#6307 的未扩大部分) #6877) applied as that file prescribes for a non-res door (message only, own envelope).
  4. Empty facet refused (?solutionTypes=, ?solutionTypes=,). Right, with a note. The spec's z.array(...).optional() admits [], which as an "any of these" filter matches nothing; refusing it narrows a shape no consumer can use and the (narrowing) arm covers it.
  5. ?category= is no longer a filter and is silently ignored (200, whole snapshot). WRONG — see ④ must-fix. The spec does not merely "not declare" category: it declares it as a tombstone whose parse refuses any value with retiredCategoryGuidance('MarketplaceSearchRequest.category'), and the spec's own migration entry (18.marketplace-category-retired.ts, acceptanceCriteria) states that a MarketplaceSearchRequestSchema parse "refuses it with its prescription". The proxy turns that loud refusal into a silent strip. The accept set for category did not widen (it was accepted before), so this does not flip Clause-②; it leaves the declared narrowing half done.
  6. Every other unknown key, solutionType (singular, the card's spelling) included, is ignored. Unchanged pre-existing posture (measured by the dev: the proxy refused no query parameter before). Noted in ④ as should-fix, not a contract break.
  7. Server-side paging over the filtered set; total counts every match; limit 1–100 default 50. Right, and it is the card's expected item 1 on the snapshot path. ?limit=abc → NaN → empty page is pre-existing and out of this card.
  8. Row defaults — absent/undeclared solution_type reads as app, absent/undeclared maturity as stable. Right: the listing schema's .default('app') / .default('stable'), and the console's effectiveSolutionType (marketplaceTaxonomy.ts:95–97) reads the row the same way, so the server and the first consumer agree.
  9. Rows without the taxonomy columns pass no business-function or industry filter. Right (listColumn → []); matches console marketplace: facet filters (business function, industry, solution type) and a Beta badge replace the single category chip row — reads the spec taxonomy (objectstack#30904) #31011's plan that those facets return nothing until cloud#3661 serves the columns.
  10. Cloud path: facets validated in the handler, then pathname + search forwarded verbatim; the LRU cache key already includes search. Right as far as this repo goes; what the cloud does with the names is unmeasured — escalated in ③.
  11. Public surface of @objectstack/cloud-connection: no export, type or error code added; new imports (@objectstack/spec/marketplace taxonomy symbols, @objectstack/rest repeatedQueryParamMessage) are existing workspace dependencies and the spec subpath exists in exports. Right.
  12. HEAD: the refusal applies to HEAD as to GET; a filtered HEAD answers headers with no body. Right.

② Semver level

.changeset/31173-marketplace-catalog-facet-filters.md: '@objectstack/cloud-connection': patch, title feat(cloud-connection)!:, BREAKING banner with Before/Now/Who moves/The remedy, Clause-②: no (narrowing), Metadata-protocol: none, one ADR-0087 marker not-required (no-migration-prescription).

  • Level fits. AGENTS.md Post-Task Checklist 3: the level follows the metadata-protocol kind alone; a query parameter of a served route is not something a metadata author writes, so none → patch, and "a non-protocol change, widening or breaking, ships patch and keeps its BREAKING banner and ADR-0087 disposition". The fixed group bumps the family together either way. Check Changeset and the ADR-0087 gate (PR-automation) are green on this head.
  • Clause-②: no (narrowing) holds. The proxy accepts nothing the spec does not declare: the four keys and their vocabularies are the schema's; the comma encoding is the platform's spelling of a declared array; q / limit / offset pre-exist this diff. What it refuses (items 2–4) and what it stops honouring (item 5) only shrink the accept set, so the arm is (narrowing), not yes. The declaration is line-initial in both the PR body and the changeset body, as the face requires.
  • ADR-0087 disposition. no-migration-prescription is honest in the ADR's sense: nothing at rest carries a catalog query, so os migrate meta has no seam; the changeset's "remedy" paragraph is a request-rewrite note, not a metadata migration prescription, and the gate accepted the pairing on this head.

③ Boundary flags

Dev flags (PR "Acceptance notes" and os-dev-report 6711774130); open_questions: [].

  1. solutionTypes (spec) implemented where the card wrote solutionType. Accepted. The published schema is the contract and it declares the plural list; solutionType is the listing's own key. The card's spelling is a drafting slip; the domain:ui follow-up card must carry solutionTypes verbatim.
  2. One comma-separated value per facet; repeated key / empty facet / undeclared value refused 400 before both paths — covered by the spec? Answered in ① items 1–4: the undeclared-value refusal is the spec's own; the repeated-key and empty-facet refusals are narrowings of encodings the spec does not declare, properly under the (narrowing) arm; nothing is accepted that the spec does not declare, so Clause-② stays no.
  3. ?category= ignored, not refused. NOT accepted — must-fix in ④. The spec's retiredKey tombstone and its migration entry declare a loud refusal with the prescription; the card's "retired (no second spelling kept)" is satisfied on the spelling side but the spec's refusal is not made real.
  4. Cloud path forwards the query verbatim; cloud handling NOT MEASURED. Escalated, not a fix here: on the default configuration (no OS_MARKETPLACE_PUBLIC_BASE_URL, resolveMarketplacePublicBaseUrl → '') every list request takes the cloud path, so the card's "paginates server side" is delivered only where the snapshot path is configured, and a cloud that ignores the names answers an unfiltered 200 after the proxy has validated the facets. A card on objectstack-ai/cloud (pairing with cloud#3661) must pin the same names, the comma encoding and solutionTypes plural; the seat files it at landing beside the domain:ui card.
  5. Body claim not on the tree. The PR body and the dev report say the console client listMarketplacePackages "still accepts a category argument no caller passes". On main its signature is { q?, limit?, offset? } (marketplaceApi.ts:252); the category at :902 is OrgPackageSummary, the org catalog, not the marketplace list. Prose only, but the domain:ui follow-up must not be filed on that sentence.
  6. Test placement. The new suite copies captureHandler and fakeCtx byte-for-byte from marketplace-proxy-browse-only.test.ts, the component's existing harness file; ruling record 6583487846 puts a new pin for a component with a shared harness file into that file as a top-level describe. Should-fix in ④.
  7. PR author is objectstack-fleet[bot] (relay) — no out-of-relay login to name.

④ Design judgment

The narrowing itself, read against the published spec on main and the cited code. Two questions: does it take a declared capability away at the consumer, and does it make the spec's own refusal real?

Taken away at the consumer? No. Every capability the request schema declares for the four keys is delivered on the snapshot path (OR/AND, vocabularies, maturity, paging over the filtered set) and forwarded on the cloud path; what the proxy stops honouring, category, the spec itself retired in 18. Nothing declared is narrowed away.

The spec's own refusal made real? Only partly, and that is the failing half.

  • MUST-FIX — ?category= is silently ignored where the spec declares a loud refusal. MarketplaceSearchRequestSchema.category is retiredKey(retiredCategoryGuidance('MarketplaceSearchRequest.category')): z.never with the prescription as its error, built — per retired-key.ts's own docblock — exactly so that a removal is audible and never a "silent strip". The spec's migration entry 18.marketplace-category-retired.ts states the acceptance criterion in words: a MarketplaceSearchRequestSchema parse "refuses it with its prescription". The proxy is the one in-repo door that reads a search request's query; after this diff a client sending ?category=crm receives 200 and the whole catalog. That is the card's own "silently dead" failure reproduced by design, and it contradicts the diff's own reasoning one function up: a misspelled facet value is refused because "an empty page would hide a misspelling", yet a dead filter key is let through because a full page hides it just as well. The repo's multiplicity doctrine the diff cites says the same: a wrong answer delivered as a success is the shape to refuse. Fix: in readCatalogListQuery, params.has('category') → { ok: false, param: 'category', message: retiredCategoryGuidance('MarketplaceSearchRequest.category') } (the spec's prescription, byte-for-byte, already exported from @objectstack/spec/marketplace), answered as the other refusals are, 400 VALIDATION_ERROR, before both paths; retarget the two ?category= tests (served whole / narrows nothing beside a filter) to the refusal and keep the ablation anchor. The changeset's Now paragraph then reads "refused with the spec's prescription" instead of "ignored". This is a FAIL.
  • Should-fix — the card's spelling solutionType (singular) is swallowed silently. The card, the console's FacetSelection.solutionType and the listing key all spell it singular; a follow-up author will send ?solutionType=template and get the whole catalog with 200. Either refuse the known-wrong key naming solutionTypes (one more row in the read, the same envelope), or at minimum file the domain:ui card with the plural spelled out; the first is the design that holds without relying on the card text.
  • Should-fix — harness duplication. Move the 13 pins into marketplace-proxy-browse-only.test.ts as top-level describes, or lift captureHandler / fakeCtx into one shared helper both files import (ruling record 6583487846).
  • Should-fix — prose on the tree. Strike the "listMarketplacePackages still accepts a category argument" sentence from the PR body (③.5).
  • Escalate — cloud path. As ③.4: a cloud card must adopt the names and encoding; until it does, the default configuration validates and then trusts the cloud.

Everything else tried holds: repeated/blank/undeclared values on each key, ?category= beside a real filter, HEAD on both paths, offset past the end, a row with an undeclared solution_type string (read as app, as the console reads it), the cache key carrying the facets, and the fetch-free refusal on the cloud-only configuration.

Implemented-by: claude/project-thread-eqgsby
Reviewed-by: session_01FEkQ5o8PE7ZtVjcor51wBZ (fable subagent)

VERDICT: FAIL

…ith the spec prescription

A category parameter on the catalog list is refused 400 VALIDATION_ERROR with
retiredCategoryGuidance before either path is asked, instead of being ignored.
The catalog pins move into the proxy's existing browse-only harness.

Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

Contract-review-claim: session_01FEkQ5o8PE7ZtVjcor51wBZ · head 868cfd7 · 2026-11-07T20:35Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 868cfd7e797dc67a17f7a7f4df224edf047da3be
Local-runs: none
Scope: packages/cloud-connection/src/marketplace-proxy-plugin.ts, packages/cloud-connection/src/marketplace-proxy-browse-only.test.ts + packages/spec/src/marketplace/marketplace.zod.ts, packages/spec/src/marketplace/taxonomy.zod.ts, packages/spec/src/shared/retired-key.ts, packages/spec/src/migrations/entries/semantic/18.marketplace-category-retired.ts, packages/rest/src/query-multiplicity.ts, packages/cloud-connection/src/marketplace-public-url.ts, ui/packages/app-shell/src/console/marketplace/marketplaceApi.ts, ui/packages/app-shell/src/console/marketplace/marketplaceTaxonomy.ts

Delta review of the rework after record 6711888512 (FAIL on head 81072e50), by the same reviewer; a full record on the new head. Inputs: card #31173 (body, triage 6709309123, claim 6710538394, os-dev-reports 6711774130 and 6712663916), PR #31234 (patched body v2, 3-file list, net diff origin/main...868cfd7e, and the delta 81072e50..868cfd7e), the head's check-runs. The changeset is a prose face: read for ②, not reviewed. Check-runs on 868cfd7e at the time of writing: 37 success, 15 skipped, 0 failed, 0 pending (a second Check Changeset run, started by the body edit, finished green while this record was written). Cited code did not move: the spec marketplace files, retired-key.ts, the migration entry, query-multiplicity.ts, marketplace-public-url.ts and the two console files are byte-identical between the round-1 main (714dda8f) and this head.

The head's two commits. 248a01c7 merges origin/main (733efbd4) once: git show --cc 248a01c7 prints no hunk for any path in scope, and git diff 733efbd4 248a01c7 on the scope files equals the round-1 content exactly, so the merge resolved nothing by hand and carried nothing of its own. 868cfd7e is the rework; the net diff against main is the same three paths as before, with the separate test file gone and its pins in the harness file.

① Derived judgments

Round-1 items 1–4 and 7–12 stand unchanged (the delta touches none of their code): facet keys and vocabularies from the published schema, OR within / AND across, undeclared-value refusal, repeated-key and empty-facet refusals as declared narrowings, server paging over the filtered set, app / stable row defaults agreeing with the console's effectiveSolutionType, rows without the columns passing no facet, cloud path forwarding after the read, no export / type / error code added, HEAD handled as GET. Re-judged on the delta:

  1. ?category= is refused 400 VALIDATION_ERROR, before both paths, with the spec's prescription. Right now. readCatalogListQuery opens with params.has('category') and answers Query parameter 'category' is retired: followed by retiredCategoryGuidance('MarketplaceSearchRequest.category') byte-for-byte (imported from @objectstack/spec/marketplace, where taxonomy.zod.ts exports it and the schema's tombstone uses the same call). This is the refusal retired-key.ts and the migration entry 18.marketplace-category-retired.ts ("a parse of MarketplaceSearchRequestSchema refuses it with its prescription") declare, made real at the one in-repo door that reads a search request's query. has refuses the bare key too (?category=), which is right: the key is retired, not a value of it. The read sits ahead of the R2 and cloud branches, so the pins' fetchCalls is empty on both configurations. The card's "retired (no second spelling kept)" is now met on both sides. The accept set only shrinks further: no Clause-② movement.
  2. Pins moved into marketplace-proxy-browse-only.test.ts. Right: they use the file's captureHandler / fakeCtx(method, path); the module-level beforeEach fetch stub now also wraps the three existing pins, which make no fetch, so nothing they measure changes. 3 + 13 pins; the two ?category= pins assert the 400, the code, the prescription substring and no fetch, alone and beside a real filter and on the cloud-only configuration.

② Semver level

Unchanged frontmatter: '@objectstack/cloud-connection': patch, feat(cloud-connection)!:, BREAKING banner, Clause-②: no (narrowing) line-initial in the changeset and the PR body, Metadata-protocol: none, one ADR-0087 marker not-required (no-migration-prescription). The rework reworded the narrowing clause ("refusing the retired ?category= filter"), the marker's why ("refuses one the spec already retired, with the spec's own prescription") and the Now / Who-moves paragraphs ("A script still sending ?category= gets the 400 instead of a filtered list"), so the prose now describes the tree.

  • Level fits. A query parameter of a served route is not metadata an author writes: Metadata-protocol: none → patch; AGENTS.md Post-Task Checklist 3 has a non-protocol breaking change ship patch with its banner and ADR-0087 disposition. Check Changeset (both runs) and the ADR-0087 gate are green on this head.
  • Clause-②: no (narrowing) holds. Nothing is accepted that the spec does not declare; the delta adds a refusal and removes nothing declared.
  • ADR-0087 disposition stays honest: nothing at rest records a catalog query, the "remedy" is a request rewrite, not a metadata migration, and the gate accepted the pairing.

③ Boundary flags

Round-1 flags and the rework report (os-dev-report 6712663916; open_questions: []):

  1. Must-fix ?category= — taken, as ① item 5; ablation A1 reported red-first on both retargeted pins. Closed.
  2. Should-fix harness duplication — taken: the separate file is deleted, the pins are top-level describes in the component's harness file (ruling record 6583487846). Closed.
  3. Should-fix prose on the tree — taken: the PR body no longer names listMarketplacePackages (0 matches); the "Kept as before" note now carries only the pre-existing ?limit=abc reading. Closed.
  4. Should-fix ?solutionType= (singular) swallowed — left as it was, by the seat's call, with the domain:ui follow-up to spell solutionTypes. Accepted as a seat decision: it is pre-existing posture (the door ignored every unknown key before), not a contract break; it stays a should-fix for the follow-up, see ④.
  5. Cloud path forwards the validated query verbatim; cloud handling NOT MEASURED — unchanged; escalation stands: a card on objectstack-ai/cloud (pairing with cloud#3661) must pin the same names, comma encoding and plural solutionTypes; until then the default configuration (no OS_MARKETPLACE_PUBLIC_BASE_URL) validates and forwards, and the card's server-side paging is delivered where the snapshot path is configured.
  6. Dev deviation: the PR body was patched by the seat, not the dev (os-dev.md single-writer rule); the body read here is the seat's v2 and matches the tree. Noted, no action.
  7. PR author is objectstack-fleet[bot] (relay) — no out-of-relay login to name.

④ Design judgment

The narrowing against the published spec on main, over the floor (the plugin and the harness file) with the cited code read.

Taken away at the consumer? No. Every capability the request schema declares for businessFunctions, industries, solutionTypes and maturity is delivered on the snapshot path and forwarded on the cloud path; category is what the spec retired, and the diff removes only that.

The spec's own refusal made real? Yes, now on both sides. The three refusals the spec implies (undeclared value: the enum; category: the tombstone's prescription) and the two the (narrowing) arm declares (repeated key, empty facet) all answer 400 VALIDATION_ERROR before either path, with messages naming the parameter and the remedy; a caller still filtering by category reads the spec's own sentence instead of receiving the whole catalog as though it had matched. The round-1 inconsistency (a misspelled value refused, a dead key let through) is gone.

Probed on the new head and holding: ?category= alone, blank, beside a real filter, on the cloud-only configuration (no fetch); the prescription substring is the exported text, not a copy; repeated / blank / undeclared values on each key; q plus paging with total over the filtered set; HEAD on both paths; a row with an undeclared solution_type string read as app, as the console reads it; the module-level fetch stub against the three pre-existing pins.

  • Should-fix (carried, not blocking): ?solutionType= singular — the card's, the console FacetSelection's and the listing key's spelling — is ignored and answers the whole catalog with 200; one more row in readCatalogListQuery naming solutionTypes would hold without relying on the follow-up card's text. The seat's decision to carry it in the domain:ui card is accepted.
  • Escalate (carried): the cloud list route, as ③.5.

No must-fix.

Implemented-by: claude/project-thread-eqgsby
Reviewed-by: session_01FEkQ5o8PE7ZtVjcor51wBZ (fable subagent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · os-project-manager · session_01FEkQ5o8PE7ZtVjcor51wBZ

维护者速读

席位意见:接受。代理按规格已声明的四个分面过滤并分页;已退役的 ?category= 现在按规格的处方明确拒绝,不再静默忽略。控制台切换和云端列表接口各有后续,不在本 PR。

席位核对 — ACCEPT · domain:server#5 · Head-sha 868cfd7e797dc67a17f7a7f4df224edf047da3be · 2026-11-07T20:39Z

  • Shape: 3 files (changeset, marketplace-proxy-plugin.ts, marketplace-proxy-browse-only.test.ts), read from the diff. Facets businessFunctions / industries / solutionTypes (spec plural) / maturity, OR within and AND across, server-side paging; undeclared values, repeated keys and empty facets refused 400 VALIDATION_ERROR; ?category= refused with retiredCategoryGuidance('MarketplaceSearchRequest.category') before both the R2 and cloud paths.
  • Review: CONTRACT_REVIEW_TIER (fable). Round 1 FAIL 6711888512 on 81072e50 (the retired filter was silently ignored); delta PASS 6712729702 on this head, no must-fix. Ruling-ref: 2026-11-07T16:00Z 「你有 fable ,车道契约复审可以自己做」.
  • Gates: head check-runs 37 success, 15 skipped, none red or pending. check-expected-skips: OK (exit 0). No governed path. The dev's dispatch-gates --commands on this head: 60 run, all exit 0; full dogfood VERDICT 0. Mergeable state clean.
  • Accepted deviations: the card's solutionType is implemented as the published spec's solutionTypes; ?solutionType= (singular) stays ignored like every other undeclared key, by the seat's call.
  • Out of scope: (1) the console switch-over to the facets is a domain:ui follow-up the seat files at landing, spelling solutionTypes; (2) the cloud list route (default configuration forwards the validated facets verbatim) must adopt the same names, comma encoding and plural, carried on cloud#3661. Clause-②: no (narrowing), Metadata-protocol: none, Skills-docs: none (body). Changeset @objectstack/cloud-connection patch, BREAKING banner.
  • Landing: ungoverned. Fixes #31173. Ready + auto-merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 7, 2026 20:41
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 7, 2026 20:41
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 7, 2026
Merged via the queue into main with commit 8f4e8fb Nov 7, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-eqgsby branch November 7, 2026 21:08
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 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.

marketplace proxy: filter the catalog by business function, industry and solution type on the server, and retire the dead ?category= filter

1 participant