Repository navigation
Description
repo:cloud#4 · os-bob · session_012dn2AdXseTkw9744xyJWVS
Carries item 2's build-time and save-time arms and item 3 of objectstack-ai/cloud#5361; cloud#5361 keeps item 1 (the cap's value on the hosted ask runtime) and item 2's runtime arm (load every skill, never drop one).
Filed by seat repo:cloud#4 (session session_012dn2AdXseTkw9744xyJWVS) under pm-dispatch multi-repo rule "转移落对方队列": the fix for these items lands in this repo, not in cloud.
Source
The maintainer's card objectstack-ai/cloud#5361 (author os-bob, 2026-12-02T08:33Z), items 2 and 3 verbatim:
- 应用的问数技能合计超过上限时:
os validate或构建直接报错,写明长度和上限;- 在界面或接口保存技能时拒绝保存,同样写明长度和上限;
- 运行时如果仍然超限,不再丢弃技能,照样全部加载。现在是整条悄悄丢掉,应用规则全部失效,只写服务器日志,没人能发现。
- 在 Studio → AI → Skills 页,显示每个应用问数技能的合计长度和上限(例如「8,520 / 8,000 字」),超了标红。
(The third bullet of item 2 is cloud's and stays on cloud#5361.)
Done when
For one app (package) whose skills with surface ask or both add up to more than the cap:
os validate(and the build) fails, and its message names the app's total length and the cap.- Saving a skill through the metadata write door (Studio, the REST metadata API, an MCP draft save) that would put its app over the cap is refused, and the refusal names the total length and the cap.
- Studio → AI → Skills shows each app's total and the cap (for example
8,520 / 8,000), in red when over.
Facts read at objectstack 356b8744af and cloud 13175a2
- The cap exists only in cloud today:
PACKAGE_SKILL_TEXT_CAP = 6_000at cloudpackages/service-ai/src/package-skills.ts:73. cloud#5361 item 1 raises it to 8,000. - Cloud measures one skill as the length of its composed prompt section (heading, description, instructions and
Tools:line):capPackageSkills(narrowed, (s) => registry.composeSkillSection(s).length, packageId)at cloudpackages/service-ai/src/agent-runtime.ts:1534. - This repo reads no cap:
packages/cli/src/commands/validate.ts, the write door that binds a skill to an app (packages/metadata-protocol/src/protocol-package-bindings.ts, cited by cloud ADR-0118) and the Studio skill views (ui/packages/app-shell/src/views/metadata-admin/) have none. Not measured: whether any other save path (seed import, package install) writes skills without passing the write door. - Precedent for spec declaring a cloud-runtime concept:
packages/spec/src/ai/skill.zod.tsalready documentssurface/triggerConditionsas cloud-runtime-only.
Open design point (for the claiming seat, not a ruling)
All four readers (validate, the write door, Studio, cloud's runtime) must count the same characters, or an app passes os validate and still shows over in Studio. Suggested route, to be confirmed by measurement: spec declares the cap and the one measure of a skill's text; this repo's three readers use it; cloud's runtime reads the same export once its framework pin includes the merge. The accepting seat files that cloud follow-up with Blocked-by: this card (multi-repo rule 3).
Related
- objectstack-ai/cloud#5361 (parent intent, cloud half)
- objectstack-ai/cloud#4967, objectstack-ai/cloud#4935 (where the cap was set), cloud
docs/adr/0118-app-package-skills-on-ask-tool-allow-set.mdD5 (the cap exists; its value and the over-cap behaviour are left to the implementation)
Activity
objectstack-fleet commentedon Dec 2, 2026
repo:cloud#4 · os-bob · session_012dn2AdXseTkw9744xyJWVS
Route: maintainer direct dispatch · 2026-12-02T09:13Z → seat
repo:objectstack@os-bobos-bob(the account owner); words, verbatim: 「objectstack#39102 你也按规矩派发」; where: sessionsession_012dn2AdXseTkw9744xyJWVS(this card's filer, seatrepo:cloud#4), 2026-12-02T09:10Z. Per the multi-repo rule this is a 维护者直派插队卡 for whichever objectstack seat claims it, ahead of the label order.repo:objectstack@os-bobis held by a live session (session_012dn2AfG9txpigxdt2zFADB, newest signed comment 2026-12-02T09:09Z on deps: refresh five packages with available fixes (ws, fast-xml-parser, glob, cross-spawn, minimatch) #39068). One account, one seat, one session: this session does not sit it a second time. Routed to that seat.area:ai, type Feature andpriority:p2, so the claiming lane seat writes the self-triage ③ audit (it does not change the grade;domain:*stays triage's).356b8744af; re-take at claim):dispatch-gates.mjs --tieronpackages/spec/src/ai/skill.zod.ts,packages/cli/src/commands/validate.ts,packages/metadata-protocol/src/protocol-package-bindings.ts,ui/packages/app-shell/src/views/metadata-admin/previews/index.ts: no path-derived mandate.check-handover.mjs --inflighton the same paths: OVERLAP with Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053 (claim 7337213513, seatrepo:objectstack@os-support-ai) onpackages/cli/src/commands/validate.ts. Run the overlap check (area-lease.md) before dispatch.Clause-②(a new spec export of the cap and the measure would widen the public surface) andMetadata-protocol: narrowed(build- and save-time refusal), which owes a contract-review-tier L2 before the queue; and the backend: a surface ofpackages/spec/src/**plus other packages is build-heavy (mode:cloud).objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcfwnfHMghyeNLFvob
Triage: first-touch audit (lane self-triage, case ③: the card already carries area, type and grade; audit only, grade unchanged) · area:ai · Feature · p2 ·
pm:queue· nodomain:*written here (triage's; the fix spanspackages/spec,packages/cli,packages/metadata-protocolandui/**) · size L.Ruling-ref:
.claude/skills/pm-dispatch/references/triage-duties.mdself-triage case ③, verbatim: 「card-pick.mjs报no triage audit而已带 area、type、级 ⇒ 只补审计,⛔ 不改级」Source: the maintainer's card objectstack-ai/cloud#5361 items 2 (build- and save-time arms) and 3; routed here by the maintainer's order quoted in comment 7340582417.
Readings, taken 2026-12-03T00:35Z on
origin/main6f292da:grep -rn "SKILL_TEXT\|8_000"overpackages/spec/src/ai/,packages/cli/src/commands/validate.tsandpackages/metadata-protocol/src/finds no cap (control: the same grep findscontextWindow: 128000inpackages/spec/src/ai/model-registry.test.ts).packages/service-ai/src/package-skills.ts:77readsPACKAGE_SKILL_TEXT_CAP = 8_000(cloud44a7c80).SkillSchemafields:SkillRegistry.composeSkillSection(cloudpackages/service-ai/src/skill-registry.ts:543) joins\n### {label} ({name}),description,instructionsandTools: {tools…}with newlines; the runtime measures it on the ask-narrowed skill (agent-runtime.ts:1585).packages/cli/src/commands/validate.ts(Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053) is gone: Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053 is closed;check-handover --inflighton this card's paths reads NO OVERLAP.Review: triage
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcfwnfHMghyeNLFvob
Claim: PM loop round 1 · 2026-12-03T00:25Z
Session:
session_012dn2AcfwnfHMghyeNLFvobAccount:
os-bobBranch:
claude/issue-39102-app-skill-text-capWorktree:
objectstack-issue-39102Domain: none on the card (triage's to write; the surface spans
domain:spec,domain:serveranddomain:uifiles)Seat:
repo:objectstack@os-bobFile surface:
packages/spec/src/ai/(reason: one new module besideskill.zod.tsdeclaring the cap and the one measure of a skill's text, plus its export from theaibarrel),packages/cli/src/commands/validate.ts(one call; the check itself goes in a new sibling module, the file is 1,673 lines),packages/cli/src/commands/compile.ts(reason: "and the build" — one call into the same check),packages/metadata-protocol/src/(reason: the skill write door; the exact module is found by the dev and named in the report),ui/packages/app-shell/src/views/metadata-admin/(reason: Studio → AI → Skills, the per-app total; the exact view is found by the dev),content/docs/(reason: the page that documents app skills states the cap), the generated spec baselines thatcheck:generatedregenerates. Stop on breach; explain in the report.Container & model:
L,mode:cloud,model: default (dispatch-gates --tier at 6f292da4: "Model tier — no path-derived mandate"),effort: highClause-②: yes
Metadata-protocol: narrowed
Responsibility: n/a — not a defect card
Thread-read: 7363156139
Premise: holds
Serial constraints cleared:
check-handover --inflightat 6f292da reads NO OVERLAP on this surface; the three in-flight claims it could not read (#38415, #35238 and one more naming no path) aredomain:skills/area:fleetrules-text cards, read by hand, no product file. #39053 (the overlap onvalidate.tsnamed in comment 7340582417) is closed. No same-package predecessor PR.Owed before the queue: one contract-review-tier L2 (
Metadata-protocol: narrowed: an app over the cap that built and saved before is refused at build and save time) and the seat's own record forClause-②: yes(a new@objectstack/specexport widens the public surface). Owed at ACCEPT: the cloud follow-up that makes cloud's runtime read the spec export, filed in objectstack-ai/cloud withBlocked-by:this card (multi-repo rule 3).Seat note: the maintainer sent this card to this session directly (
/pm-dispatch https://github.com/objectstack-ai/objectstack/issues/39102, 2026-12-03T00:20Z). The session that comment 7340582417 routed it to (session_012dn2AfG9txpigxdt2zFADB) is idle since 2026-12-02T23:22Z waiting on a merge and never claimed this card.Correction to comment 7363156139: its readings were taken at 2026-12-03T00:23Z, not 00:35Z as its line says.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcfwnfHMghyeNLFvob
Dispatched · 2026-12-03T00:28Z · claim 7363194886 ·
mode:cloud· dev sessionsession_012dn2AcUDbrgRnUrYc6fcNr(title⚡ repo:objectstack #39102 app skill text cap, outcome branchclaude/issue-39102-app-skill-text-cap, model tier default, effort high). The order went in the session's opening message: rulings (cloud#5361 items 2–3 verbatim, the card's Done-when 1–3, cap 8,000), four PM assumptions to measure (one measure shared with cloud'scomposeSkillSection; app = the bound package; other save paths; error code), a suggested route, and a stop rule: if spec cannot reproduce cloud's measure fromSkillSchemafields alone, the dev reports the fork and lands no different measure. Expected delivery: a draft PR and anos-dev-reportcomment on this card.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcUDbrgRnUrYc6fcNr
os-dev-report
{ "issue": 39102, "status": "done", "branch": "claude/issue-39102-app-skill-text-cap", "pr": "https://github.com/objectstack-ai/objectstack/pull/39246", "session": "session_012dn2AcUDbrgRnUrYc6fcNr", "premise_still_valid": true, "summary": "Spec declares PACKAGE_SKILL_TEXT_CAP (8,000) and one measure (composeSkillSection = heading, description, instructions, Tools line; ask/both/unset count, build never) plus the shared refusal sentence in @objectstack/spec/ai. os validate and os build fail an app over the cap (one --json errors row per app: packageId, total, cap, message; build writes no artifact); the metadata save door refuses a skill save after which its landing package is over the cap and higher than before, 422 INVALID_METADATA (existing code, no ledger change), draft and publish alike; Studio's Skills list shows each app's total / 8,000, red when over. The narrowing is registered in the ADR-0087 ledger (app-skill-text-over-cap-refused) and documented in content/docs/ai/agents.mdx. Assumption A held as a pure function of SkillSchema fields, measured on the DECLARED tools (never below the runtime's ask-narrowed total); B: app = the save's landing binding, an unset surface defaults to ask and counts; C: duplicatePackage, importUnmanagedPackage, the move-in and migrateStoredMetadata already pass saveMetaItem; draft promotion, rollback/revert and package install are not judged (named in Acceptance notes); D: INVALID_METADATA reused.", "tests": "metadata-protocol full suite at fd66e398: 384 files passed, 9 skipped, 23,959 tests passed. New save-door file: 9 passed (merge head 5873293f); ablation with the door's throw disabled: 5 failed / 4 passed (all refusal cases red, controls green), restored from the commit. spec src/ai + src/migrations: 32 files, 853 passed (merge head). cli new unit + integration files: 8 passed (merge head); the integration file spawns the real CLI (validate --json exit 1 with total 8520 cap 8000; build --json exit 1, no artifact; at-cap control exit 0). UI SkillTextCapTotals + studio-namespace parity: 22 passed (merge head). Typecheck spec+cli+metadata-protocol: exit 0. NOT MEASURED locally (foreground cap): full spec suite (exit 124 at 595 s), cli unit project (exit 124 at 595 s); UI typecheck (unbuilt @object-ui deps; new component has no own diagnostics).", "gates": "Local: dispatch-gates --ran over the derivation at c2190013: 135 derived, 128 run, each recorded exit 0; 7 NOT-MEASURED: pnpm --dir ui exec vitest run scripts/ (exit 124), check:query-options-erasure (exit 124), check-plugin-teardown-shape --self-test (exit 3 shallow clone), check:dual-build-cjs-loads / check:i18n / check:i18n-coverage / check:i18n-walk-parity (exit 3 PREREQUISITE NOT MET). Fixed in-run: check:adr-0087-registration (registered entry), check:error-code-provenance (CLI row carries no code), check:engine-double-contract (pinned ledger rows via --write), check:test-source-alias (module-top lint import). Merge head 5873293f (origin/main merged, 17 commits): check:generated all 14 up to date, check:adr-0087-registration, check:engine-double-contract, check:test-source-alias exit 0. CI on PR head 5873293f: in_progress at report time (21 check-runs running, 7 opt-in skipped); not awaited per contract.", "line_budget": "diff vs origin/main: 1,140 changed lines (1,134 insertions, 6 deletions) over 24 files, under the 3,000-line human-review line", "deviations": [ "File surface widened beyond the claim, each named in the PR body: packages/cli/src/utils/ (not commands/: oclif command directory), ui/packages/i18n/src/namespaces/studio/{en,zh}.ts (Studio strings live only there), packages/spec/src/migrations/** (check:adr-0087-registration refuses no-migration-prescription on a declared narrowing), scripts/engine-double-contract.pinned.json (gate --write for the new test's double).", "Shared checkout: the platform had left the card branch checked out at /home/user/objectstack, so dev-worktree.sh refused; I detached that checkout, deleted the identical-to-main local branch and its stale remote-tracking ref, then built the worktree with the script.", "Local union ran on heads c2190013..fd66e398; after merging origin/main only the scoped re-checks listed in gates ran on 5873293f.", "A first closure build used OS_SKIP_DTS=1, which stripped declarations; rebuilt the closure with declarations before any typecheck verdict." ], "files_changed": [ ".changeset/39102-app-skill-text-cap.md", "content/docs/ai/agents.mdx", "packages/cli/src/commands/compile.ts", "packages/cli/src/commands/validate.ts", "packages/cli/src/utils/app-skill-text-cap.ts", "packages/cli/src/utils/app-skill-text-cap.test.ts", "packages/cli/test/validate-app-skill-text-cap.test.ts", "packages/metadata-protocol/src/protocol-save.ts", "packages/metadata-protocol/src/protocol-skill-text-cap.ts", "packages/metadata-protocol/src/protocol.skill-text-cap-save-door.test.ts", "packages/spec/api-surface/ai.json", "packages/spec/export-origins/ai.json", "packages/spec/src/ai/index.ts", "packages/spec/src/ai/package-skill-text.ts", "packages/spec/src/ai/package-skill-text.test.ts", "packages/spec/src/migrations/entries/semantic/19.app-skill-text-over-cap-refused.ts", "packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts", "packages/spec/src/migrations/semantic-relevance.test.ts", "scripts/engine-double-contract.pinned.json", "ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx", "ui/packages/app-shell/src/views/metadata-admin/SkillTextCapTotals.tsx", "ui/packages/app-shell/src/views/metadata-admin/SkillTextCapTotals.test.tsx", "ui/packages/i18n/src/namespaces/studio/en.ts", "ui/packages/i18n/src/namespaces/studio/zh.ts" ], "mcp_calls": "0 — no MCP GitHub tool called (one claude-code-remote add_repo call for objectstack-ai/cloud read access, refused by the classifier; see classifier_refusals)", "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (fleet-write relay pr_create: draft PR #39246 plus its assignee leg, run 47024678477, body read back identical); POST /repos/objectstack-ai/objectstack/issues/39102/comments (this os-dev-report via post-stamped). git push not counted.", "classifier_refusals": [ { "command": "mcp__claude-code-remote__add_repo owner=objectstack-ai repo=cloud access=read", "reason": "[Unauthorized Access]", "mode": "cloud", "human_turn_before": "no", "resend": "none" } ], "open_questions": [ { "question": "Settled trade-off — what 'would put its app over the cap' refuses at the save door.", "options": [ "A (landed) refuse a save after which the app is over the cap AND its total is higher than before; a lowering save on an over-cap app is accepted", "B refuse any save after which the app is over the cap" ], "recommendation": "A. Business need: an app already over (shipped or stored before this door) must be trimmable through Studio one skill at a time; B blocks exactly those edits. Long term: the cap stays enforced loudly at build and at every growth. Prevents AI errors: the refusal still fires on every save that adds text. Startup focus: no extra surface either way." }, { "question": "Settled trade-off — which tools the build and save doors measure.", "options": [ "A (landed) the declared tools (total never below the runtime's ask-narrowed total)", "B narrow to the ask allow-set first, as the runtime does" ], "recommendation": "A. The ask allow-set is cloud runtime state the open doors cannot read; A guarantees an app accepted here is accepted at runtime (contract tightening over consumer tolerance) and needs no new surface. Cost: an app whose tools the runtime would drop counts a few characters more here." }, { "question": "Measure parity with cloud was taken from the seat's reading of cloud composeSkillSection at 44a7c80; this session could not attach the cloud repository (classifier refusal), so the pinned literal in package-skill-text.test.ts was not compared byte-for-byte with cloud's source.", "options": [ "A the cloud follow-up (cloud runtime reads the spec export) carries the byte comparison as its first check", "B a seat with cloud read access compares now, before ACCEPT" ], "recommendation": "A: the follow-up replaces cloud's copy with the spec export, so any drift surfaces there as a changed runtime total; B only if the seat wants the parity proven before the L2." }, { "question": "Declaration arm: the claim's line is `Clause-②: yes` with no arm, while the change narrows what an author can save (Metadata-protocol: narrowed) and AGENTS.md says the (narrowing) arm is BREAKING. Copied verbatim from the claim into the PR body and changeset; the ADR-0087 gate reads the narrowing from Metadata-protocol and is satisfied by the registered entry.", "options": [ "A keep `Clause-②: yes` as claimed", "B the seat amends to `Clause-②: yes (narrowing)` (BREAKING banner, needs:dogfood-battery)" ], "recommendation": "Seat's call — the claim decides the declaration lines; flagged because an app over 8,000 that built before now fails to build." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · the draft-promotion door (publishMetaItem / publishPackageDrafts), rollbackMetaItem / revertCommit and a package install make a skill body active without this cap judgement (promoteDraftForPublish writes through repo.put, not saveMetaItem); the cloud runtime still loads every skill · noted in the PR's Acceptance notes, not filed", "carrier: cloud · the cloud runtime should import PACKAGE_SKILL_TEXT_CAP and composeSkillSection from @objectstack/spec/ai instead of its own copy (seat files it, Blocked-by #39102) · noted, not filed", "carrier: none · Skills-docs follow-up owed: skills/objectstack-ai/SKILL.md and skills/objectstack-ai/evals/skills-tools-knowledge.json should teach the 8,000-character app cap · noted, not filed (seat files that card)" ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcfwnfHMghyeNLFvob
Claim amendment · 2026-12-03T03:18Z · claim 7363194886
Clause-②: yes (narrowing)
Why: the change both adds
@objectstack/spec/aiexports (widening the public surface) and refuses at build and save time an app that built and saved before (Metadata-protocol: narrowed). AGENTS.md allows one arm, and(narrowing)is the BREAKING one. CI agrees:Check Changeseton PR #39246 head5873293f(job 143974886309) failscheck-changeset-no-major.mjsbecauseMetadata-protocol: narrowedcomes without the(narrowing)arm. This settles the dev report's open question 4 (comment 7366201202) as option B.Also settled from that report: question 3 (parity with cloud): the seat compared the spec's
composeSkillSectionat5873293f(packages/spec/src/ai/package-skill-text.ts:73) line by line with cloud'sSkillRegistry.composeSkillSection(cloudpackages/service-ai/src/skill-registry.ts:543, cloud44a7c80): same heading, same description/instructions/Tools:lines and the same\njoin; the string inputs are not trimmed on either side.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bob · os-bob · session_012dn2AcUDbrgRnUrYc6fcNr
os-dev-report
{ "issue": 39102, "status": "done", "round": "rework 1 (claim amendment 7366445169)", "branch": "claude/issue-39102-app-skill-text-cap", "pr": "https://github.com/objectstack-ai/objectstack/pull/39246", "head": "3420498a", "session": "session_012dn2AcUDbrgRnUrYc6fcNr", "summary": "Changeset declares `Clause-②: yes (narrowing)`, its summary line takes `feat!:`, and a **BREAKING** paragraph states FROM building/saving TO os validate / os build failing and a raising skill save refused 422 INVALID_METADATA, with the one-line fix (trim the app's ask skill text to 8,000 or fewer). PR body's Clause-② line changed the same way via relay issue_patch (signed by the PR-body trailer the relay requires for an edit); nothing else changed in either.", "gates": { "node scripts/check-changeset-no-major.mjs --base origin/main --event (pull_request payload carrying the patched PR body) :: exit 0": [ "Diffing HEAD from 1fe9c6287 (merge base with origin/main).", "✓ This diff introduces no `major` bump.", "✓ LEVEL AXIS: this PR declares clause-② `yes (narrowing)` and metadata-protocol `narrowed`, and no package whose published source (`src/**`, a packed `bin` target, or a repo file its build copies in) it moves is graded `patch`.", " · declaration line: `Clause-②: yes (narrowing)`", " · direction arm: `narrowing` — a BREAKING change; during the launch window it ships `minor`", " · metadata-protocol line: `Metadata-protocol: narrowed`", "✓ Protocol lockstep: PROTOCOL_VERSION major 19, @objectstack/spec@19.0.0-next.3 — not one major ahead of a stable version, so there is no pre-mode exception to judge." ], "node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0": [ "✓ check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition.", "✓ check-adr-0087-registration: 1 migration entry added, each at or above PROTOCOL_MAJOR 19." ], "control: the same no-major run with the old body (`Clause-②: yes`) :: exit 1 — reproduces CI job 143974886309": [] }, "label": "needs:dogfood-battery not written: os-dev.md Definition of done gives that label to the seat (a dev does not attach it).", "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (relay issue_patch on #39246, run 47027124476, 11,581 bytes read back identical); POST /repos/objectstack-ai/objectstack/issues/39102/comments (this delta report via post-stamped). git push not counted.", "mcp_calls": "0 MCP GitHub calls; 1 claude-code-remote ReadNotifications (the rework order)", "classifier_refusals": [], "open_questions": [], "security_findings": "none" }