Skip to content

platform skill: "Declaring is a demand" says a missing declared provider is a hard boot error, but os serve only warns for hierarchy-security #35285

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Filing gate: out-of-scope note from the dev of #35171 (PR #35281 Acceptance notes), confirmed by its contract review (comment 6997435800), filed by seat 5. ⛔ Not a claim. Related, not a duplicate: #35172 (runtime fallback logs nothing outside the CLI).

What is wrong

skills/objectstack-platform/SKILL.md:332-334 teaches: "A capability YOU declared whose provider package is absent is a hard boot error; one the platform auto-injects for you stays best-effort (warn and continue)." os serve only warns for a declared hierarchy-security with no provider, and for cloud-only capability tokens (packages/cli/src/commands/serve.ts:5472-5497, the reviewer's reading on the PR head); the runtime then falls back to owner-only scope. An agent following the skill tells a user their app will refuse to boot when it will in fact start with narrowed visibility.

Do

Read serve.ts and the capability preflight on main and cite them. Correct the skill line to name the exceptions (or the rule the code actually follows); if the maintainer's intent is that a declared provider is always a hard error, say so in the PR instead and leave the code question to a separate card. Pay the ratchet with a same-file restatement cut.

Done when

The skill states what os serve does for a declared capability with no provider, with code cited; skill gates pass; contract review (governed skills/**).

Activity

  1. added
    documentation
    priority:p2
    pm:queue
    finding
    domain:skills
    area:ai
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7

    Claim: PM loop round 1 · area ai-1 (lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」) · 2026-11-19T02:22Z
    Session: session_01Utp6CazXu8zyYD5PC6J2u7
    Account: os-bill
    Branch: claude/issue-35285-declared-capability-serve
    Worktree: objectstack-issue-35285
    Domain: domain:skills
    Seat: repo:objectstack#5
    File surface: skills/objectstack-platform/SKILL.md ("Declaring is a demand", ~:332-334, and a same-file restatement cut), generated outputs it feeds, scripts/check-skills-token-ratchet.mjs (platform row note only under letter B), root .changeset/. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — skills/** governed: seat contract review and landing, effort: high
    Clause-②: no (text-only served skill text)
    Metadata-protocol: none
    Responsibility: the platform skill teaches that a declared capability with no provider is a hard boot error, while os serve only warns for hierarchy-security and cloud-only tokens; every agent telling a user whether their app boots
    Thread-read: none
    Premise: holds — on origin/main ``: skills/objectstack-platform/SKILL.md:333 "absent is a hard boot error"; the code reading (`packages/cli/src/commands/serve.ts` ~5472-5497) is the filing's, the dev re-reads and cites it
    Serial constraints cleared: none — only release PR #35129 touches the file
    Pre-claim lane: `domain:skills` (`skills/objectstack-platform/**`, governed)
    Pre-claim deps: none (related #35172, not a blocker)
    Prior rulings read: skill,declaring,demand,says,missing,declared,provider,hard,boot,error,serve,warns (+1 more) → 213 hits; ADR-0116 Decision §3, ADR-0120 D5, ADR-0061 D2, ADR-0064 Decision §4, ADR-0076 D3, ADR-0082 Decision §6, ADR-0097 Decision §4 (dev reads ADR-0116 §3 and ADR-0120 D5 for the declared-provider rule before writing; a conflict with the code goes to the seat, not into the skill); thread: none

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
    os-dev-report

    {
      "issue": 35285,
      "status": "done",
      "branch": "claude/issue-35285-declared-capability-serve",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35294",
      "head": "811f56608",
      "session": "session_01Utp6CazXu8zyYD5PC6J2u7",
      "premise_still_valid": true,
      "summary": "Rewrote the 'Declaring is a demand' rule in skills/objectstack-platform/SKILL.md (now :331-335) to what os serve does: a declared provider-table token or ai/ai-studio with its package absent is a hard boot error; an auto-injected one stays best-effort; a declared enterprise/cloud token with no provider only warns at boot and hierarchy-security's scopes then fall back to owner-only. Code cited in the PR body (serve.ts, capability-preflight.ts, ai-service-auto-inject.ts, sharing-service.ts). ADR-0116 Decision and ADR-0120 D5 read: neither states a declared provider must always hard-fail, so no needs_decision. Paid by two same-file restatement cuts (', not at boot'; '- so new routes added to HttpDispatcher work automatically'), the platform ratchet row moved by the measured remainder under ruling record 6513306068 letter B, quoted in the PR body.",
      "readings": {
        "A1": "holds at origin/main f848e373: skills/objectstack-platform/SKILL.md:332-334 read verbatim as the dispatch quoted",
        "A2": "holds: packages/cli/src/commands/serve.ts:5472-5497 only console.warn()s judgeDeclaredCapabilities findings for declared known tokens with no CAPABILITY_PROVIDERS row and no tier (hierarchy-security, ai-seat, governance, audit-compliance, access-policy-console), comment 'A warning, never a refusal: the boot is unchanged'; the loop at :5499-5531 continues past them. Hard boot failures that remain: declared CAPABILITY_PROVIDERS token whose import fails, serve.ts:5618-5627 (missingProviderMessage or 'failed to start'); declared ai/ai-studio via loadOptionalServicePlugin required, serve.ts:5331-5341 (resolveAiServiceLoad, utils/ai-service-auto-inject.ts:57-70). Auto-injected tokens warn/log and continue, serve.ts:5629-5633. Owner-only fallback: packages/plugins/plugin-sharing/src/sharing-service.ts:2476-2477."
      },
      "files_changed": [
        "skills/objectstack-platform/SKILL.md (+6/-5)",
        "scripts/check-skills-token-ratchet.mjs (platform row note + ceiling only)",
        ".changeset/35285-platform-declared-capability-boot.md (new, '@objectstack/skills': patch)"
      ],
      "line_budget": "SKILL.md whole file 421 -> 422 lines; all skills/*/SKILL.md 4830 -> 4831 lines; platform row tokens 6145 -> 6163 (priced bytes 24577 -> 24649: cuts -78, rule +150); bundle total 269946 -> 269964 tokens",
      "ratchet_row": "before ['skills/objectstack-platform/SKILL.md', 6145] (6145 tokens, headroom 0) -> after ['skills/objectstack-platform/SKILL.md', 6163] (6163 tokens, headroom 0)",
      "tests": "No code change. Gate script edited (check-skills-token-ratchet.mjs): its --self-test exit 0 '104 cases pass'; no *.test.* file names the script (git grep, 0 hits). Ablation: n/a (no tested behaviour changed). Readings at head 811f56608.",
      "gates": "Local subset at 811f56608: dispatch-gates --commands derived 67; all run, each exit captured before any pipe; --ran: '67 derived famil(ies) accounted for - 63 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)', exit 0. Green incl.: check-skills-token-ratchet (exit 0, platform 6163/6163), check:skill-docs, check:skill-links, check:skill-identifier-liveness, check:skill-top-level-keys, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:pm-skill-id-lint, check:role-word, check-adr-0087-registration, check-changeset-no-major, check-empty-changeset, check:pm-dispatch-gates (fast tier, 2249 cases, exit 0). check:doc-formula-expressions: first run exit 3 (formula/lint unbuilt), built under os-verify-lock (VERDICT command-exit 0), rerun exit 0 (recorded as 0 in ran.list). NOT MEASURED, exit 3 PREREQUISITE NOT MET (need a full workspace build; diff touches no package source): check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main, #35279, #35268, #35129). PR check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes - pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST /issues/35294/assignees os-bill; read-back 7166 bytes identical), os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35285/comments via post-stamped.mjs). Plus git push of the branch.",
      "deviations": [
        "Commit trailer: the model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md and the dispatch, not the harness reminder's model-named Co-Authored-By.",
        "check:role-word reports platform SKILL.md improved 2 -> 1; its ledger is outside the fence, --update not run.",
        "Four whole-tree build-reading gates left NOT MEASURED (exit 3) instead of building the workspace; CI Build Core / Lint & Repo Gates own them."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none - noted, not filed: a declared CAPABILITY_PROVIDERS token whose package loads but lacks its export only warns (serve.ts:5538-5541) while the tier loader throws for a required load (serve.ts:5319-5323); no public-door reach measured, so not a card under rule 3. In PR Acceptance notes."
      ]
    }
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (rules of #35223): area:ai (as leased) · Bug · Impeded · builders, often (a wrong sentence in a shipped skill) · read in the tree → p2, as filed; the card is in flight. Issue type set to Bug.

  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    ACCEPT → PR #35294 comment 6998620257 (head 811f566085233a11d7c40dfce2601ea80f2088c0, L2 PASS 6998607248). Tier H: awaiting a maintainer merge or approval (reviewers os-zhuang, hotlong). 2026-11-19T03:19Z

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

Metadata

Metadata

Assignees

Labels

area:aidocumentationdomain:skillsfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions