Skip to content

ci: publishing the starter to the staging marketplace is refused (422) because it declares no businessFunctions, so main's push run is red and the marketplace starter stops updating #38828

Description

@objectstack-fleet

triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ

Filing gate: ① a product defect with a named landing point. Source: triage health read, R1511. main push run 46561001251 ("Publish starter to marketplace (staging)", head ea6e312, the chore: version packages (next) merge #38192) failed at the step "Publish to the staging marketplace".
Grading: area:package · Bug · p1 · reach: the first-party starter on the staging marketplace stops updating on every release, and the production workflow (publish-starter-production.yml) sends the same package · evidence: the run log below; the previous run of this workflow (11-29 13:41Z, head 75108ea6) also failed.
Dedupe: searched businessFunctions / business_functions and Publish starter to marketplace. #38024 (closed) set the workflow up, and no open card covers it.

What

The marketplace answered:

✗ version publish failed (422): {"success":false,"error":"Marketplace policy violations — version not stored.","violations":["business_functions is required: name 1-3 business functions the package serves, the primary one first (e.g. [\"sales\"], [\"finance\", \"supply_chain\"]). Publish them with `businessFunctions` in objectstack.manifest.json, or `business_functions` on POST /cloud/packages."]}

examples/app-starter declares no businessFunctions. The marketplace taxonomy in packages/spec/src/marketplace/taxonomy.zod.ts (MarketplaceBusinessFunctionsSchema: 1–3 distinct values, the first one primary) makes it required for a submission.

Ask

Declare businessFunctions for the starter where scripts/ci/publish-starter-marketplace.mjs reads the package's marketplace facets, then confirm that one staging publish lands (the workflow has a dry_run dispatch input). The starter holds companies, contacts, help articles, tasks and notes. Which value comes first is the lane's call. If it reads as a product decision, ask the maintainer and keep the card needs-user-decision.

Re-check

The next "Publish starter to marketplace (staging)" run on main concludes success. Also check whether the production workflow fails the same way before the next production publish.

Activity

  1. added
    priority:p1
    pm:queue
    domain:devx
    on Dec 1, 2026
  2. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Triage: first-touch audit (lane self-triage, case ③: the card already carries area, type and grade; audit only, grade unchanged) · area:package · Bug · p1 · pm:queue · domain:devx unchanged · size S.
    Ruling-ref: .claude/skills/pm-dispatch/references/triage-duties.md self-triage case ③, verbatim: 「card-pick.mjs 报 no triage audit 而已带 area、type、级 ⇒ 只补审计,⛔ 不改级」.
    Grade: area:package · Bug · Broken for the first-party starter's marketplace listing (every release's staging publish is refused 422) · reach: the staging marketplace now, the production publish runs the same script · evidence: measured — the last two "Publish starter to marketplace (staging)" runs on main both concluded failure (46561001251 at ea6e312, 46268797770 at 75108ea).
    Landing point read on origin/main 05da5bd: scripts/ci/publish-starter-marketplace.mjs packageBody() sends no taxonomy facet and reads no objectstack.manifest.json; examples/app-starter has none; the stack ManifestSchema (packages/spec/src/kernel/manifest.zod.ts) is strict and has no businessFunctions, so the facet cannot ride the stack manifest. The CLI's readPublishTaxonomy (packages/cli/src/commands/package/publish.ts) reads objectstack.manifest.json and sends business_functions. No .github/workflows/** change is needed: both publish workflows run the same script.
    Review: triage

  3. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Claim: PM loop round 1
    Session: session_01ADHkmNrdDzc1MxHJU3Tvyb
    Account: os-steve
    Branch: claude/issue-38828-starter-business-functions
    Worktree: objectstack-issue-38828
    Domain: domain:devx
    Seat: repo:objectstack@os-steve
    Area: ost-P
    File surface: scripts/ci/publish-starter-marketplace.mjs, examples/app-starter/objectstack.manifest.json (new), examples/app-starter/package.json (only if its files list must carry the new manifest), .changeset/38828-*.md (⛔ no .github/workflows/**, no root ci.yml, no packages/spec/src/**; stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier at 05da5bdb: "no path-derived mandate"), effort: high (reason: S but not mechanical — the facet source and its validation mirror the CLI's publish path, a judgment, not a gate)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code, objectstack (the first-party starter publish script scripts/ci/publish-starter-marketplace.mjs sends no business_functions) | none — no path sends the facet for the starter today | the staging marketplace's first-party starter, refused on every release (runs 46561001251, 46268797770); the production workflow runs the same script
    Thread-read: 7311744679
    Premise: holds, landing point corrected (read-only measure on origin/main 05da5bd): the 422 reproduces on the last two staging runs; the card's "where the script reads the package's marketplace facets" does not exist — packageBody() sends no facet and the script reads no objectstack.manifest.json; the stack ManifestSchema is strict with no businessFunctions, so the facet cannot ride defineStack. Corrected landing point: a new examples/app-starter/objectstack.manifest.json carrying businessFunctions, read and validated by the script as the CLI's readPublishTaxonomy (packages/cli/src/commands/package/publish.ts) does, sent as business_functions.
    Pre-claim lane: domain:devx — the fix lands in scripts/ci/ and examples/app-starter/
    Pre-claim deps: none (Blocked-by: absent); check-handover.mjs --inflight on the surface: no overlap read
    Prior rulings read: check-prior-rulings.mjs --card 38828: 0 rulings, 1 ⛔ line (publish-starter-marketplace.mjs:149 "Never an owner_org_id", kept); the card leaves the primary value to the lane: businessFunctions: ["sales", "customer_service", "collaboration"] (companies and contacts first, help articles, tasks and notes), from MarketplaceBusinessFunctionSchema
    Fold-or-serial: not folded — no other open area:package card shares this mechanism or these files (#38374 touches examples/app-starter/ but is another topic's card, files disjoint)
    Serial constraints cleared: none

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb
    os-dev-report

    {
      "issue": 38828,
      "status": "done",
      "branch": "claude/issue-38828-starter-business-functions",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38942",
      "session": "session_01ADHkmNrdDzc1MxHJU3Tvyb",
      "premise_still_valid": true,
      "summary": "New examples/app-starter/objectstack.manifest.json declares businessFunctions [sales, customer_service, collaboration] (sales primary, the lane's call per the dispatch). scripts/ci/publish-starter-marketplace.mjs reads it, checks it with the spec's own MarketplaceBusinessFunctionsSchema loaded via createRequire from the starter's @objectstack/spec dependency (no hand-kept enum), and sends business_functions in file order on POST /api/v1/cloud/packages, where the CLI sends it and the 422 text names; missing file, bad JSON, absent key, any unsent key in the file, a schema rejection, or an unloadable spec are refused before any request, dry run included. Header rewritten to say what facet is sent and why; owner_org_id rule unchanged; no workflow or packages/spec/src change. The staging confirmation is the next main push run after merge; nothing was dispatched.",
      "tests": "node scripts/ci/publish-starter-marketplace.mjs --self-test @139471f1: exit 0, '27 cases pass against a fake control plane' (was 20; floor 20->27; 7 new batteries + first-party body and dry-run cases assert business_functions). Real schema: built starter (pnpm turbo run build --filter=@objectstack/example-starter, VERDICT command-exit 0, 71/71) then --dry-run exit 0 printing 'business functions: sales, customer_service, collaboration (primary sales; checked by @objectstack/spec 19.0.0-next.3)' and business_functions in the package body; negative probes on a copy with the real spec linked: [crm], [sales,sales], 4 values, [] each exit 1 with the schema's own message. Ablation via scripts/ablation-replace.mjs (script, no build): delete the business_functions line -> exit 1, 3 failures; .sort() and .reverse() on the sent list -> exit 1, facet-order + first-party cases red (first .sort() run against the earlier fixture order [collaboration, sales] caught only the first-party case, so the order fixture was changed to [customer_service, sales, collaboration] in 139471f1 and re-ablated); restore proven by empty git diff HEAD and hash-object == HEAD blob. pnpm --filter @objectstack/example-starter typecheck exit 0.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 032b2d3d: 54 derived; --ran at 139471f1: '54 derived famil(ies) accounted for — 53 run, 1 NOT-MEASURED' (pnpm check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET, full-workspace dist; CI). All 53 others exit 0 (exit captured before any pipe, per-command runner). Script-reading and self-test families re-run at final head 139471f1 (all exit 0); check-comment-mask-corpus and check-self-test-workflow-commands (non-self-test) ran at 032b2d3d only, the later commit changes only self-test fixture values. Roster-under-scripts families outside the derivation: check:published-list-mirrors, check:engine-double-contract, check:i18n-stale-fill, check:select-shard-packages, check-dts-references --self-test exit 0; check:published-readme-exports exit 3 PREREQUISITE NOT MET (NOT MEASURED, CI). CI on PR head 139471f1 at report time: Check Changeset=success, Lint/Type Check lanes, Governed Surface Queue Guard, PR-body guards in_progress — NOT MEASURED here, convergence is the seat's read. Not run locally: starter pnpm test (no test or runtime reads the new file; CI).",
      "line_budget": "258 changed lines (+248/-10, 2 files) vs 3000 human-merge threshold: under; script 741 -> 975 lines (under the 1000-line split rule)",
      "files_changed": [
        "scripts/ci/publish-starter-marketplace.mjs",
        "examples/app-starter/objectstack.manifest.json"
      ],
      "deviations": "No changeset file: the starter is private and scripts/ci ships in no published package, so skip-changeset declared with pr_create labels (read back: skip-changeset listed). Commit trailers use the model-free pair per AGENTS.md (harness reminder's model-named Co-Authored-By not copied). The build command was auto-moved to background by the harness at the 600s mark; it completed (exit 0) and its log was read; no other background work.",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes — (1) pr_create via scripts/pm/fleet-write/dispatch.mjs: POST /repos/objectstack-ai/objectstack/pulls (draft), POST /repos/objectstack-ai/objectstack/issues/38942/assignees [os-steve], POST /repos/objectstack-ai/objectstack/issues/38942/labels [skip-changeset], read-back identical 7397 bytes; (2) os-dev-report comment via scripts/pm/post-stamped.mjs: POST /repos/objectstack-ai/objectstack/issues/38828/comments. git push x3 (probe, 2 commits) not REST.",
      "classifier_refusals": [],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — pnpm --filter @objectstack/spec check:template-manifests walks packages/create-objectstack/src/templates and packages/apps only, so examples/app-starter/objectstack.manifest.json is not parsed against TemplateManifestSchema by that gate; coverage observation, not a defect class; the publish script now checks the file on every run and dry run (PR Acceptance notes)."
      ],
      "owed_review": "PM L1 on PR 38942; no governed surface in the diff (scripts/ci, examples), so no Tier S/H record owed. Re-check owed after merge: the next main push run of 'Publish starter to marketplace (staging)' concluding success; production runs the same script."
    }
  6. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmNrdDzc1MxHJU3Tvyb

    Delivered by PR #38942 (merge commit 645e6b1508a133f5bb3e14f081783cb3843302ed); the card closed on the merge. pm:dispatched removed.
    Re-check still open: "Publish starter to marketplace (staging)" runs on a main push only when examples/app-starter/package.json changes (.github/workflows/publish-starter-staging.yml on.push.paths), i.e. on the next Version Packages merge. That run is the card's confirmation; the zone did not dispatch a live publish. If it fails, reopen this card. The production workflow runs the same script.

  7. removed
    pm:dispatched
    on Dec 1, 2026
  8. added a commit that references this issue on Dec 1, 2026
    645e6b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:devxpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions