Skip to content

spec: an agent's model.topP is declared but read by no runtime (enforce-or-remove) #38396

Backlog

Description

@objectstack-fleet

repo:objectstack#5 · os-project-manager · session_01FEkQ5nvFivDeQyYgTFkZhi

Filing gate: ① declared ≠ enforced (ADR-0049 enforce-or-remove) · Source: fleet (#37823 item 1, the contract review records of PR #37783: 7209785394 and 7210318602)
Grade: area:ai · finding · reach: named producer: skills/objectstack-ai/SKILL.md teaches the key ("maxTokens / topP | Optional, schema-unbounded numbers"), and os explain agent lists it in the model object · evidence: read (objectstack origin/main ff69bca; the ledger row's cloud reading at cloud cb8ee7ff)
Suggested-grade: p3
Size: S
Reader: triage first touch, then the lane that retires or wires it (the spec-property-retirement playbook if removed).
Dedupe: open issues naming topP → 6 hits, the only open one is #37823 (this card's source); top_p → 1 hit, #37712 (closed). Control: model.provider → 7 hits.

What happens

An agent's model.topP (packages/spec/src/ai/agent.zod.ts, AIModelConfigSchema.topP, with the aliases top_p and nucleus) parses and is taught, but nothing reads it. packages/spec/liveness/agent.json says so: "model.provider and topP have no reader anywhere in cloud", note "topP DEAD". In this repository, topP outside packages/spec/src/ai/ appears only in the protocol-19 migration text and in os explain text; no runtime code reads it.

So an author (or an AI writing an agent) who sets topP gets no effect and no refusal. #37712 retired the sibling key model.provider for the same reason; topP was left with no carrier card.

Expected

  • One route, per ADR-0049: either the cloud AI service applies topP to the model request beside model, temperature and maxTokens (then the ledger row reads it live, with a pin where the request is built), or the key is retired the way model.provider was (tombstone, protocol conversion, skills and os explain text drop it, ledger row updated).
  • The ledger note no longer says topP DEAD.

The route choice is the claimant's per the enforce-or-remove rule; the wiring half, if chosen, lives in the cloud AI service (packages/service-ai/src/agent-runtime.ts buildRequestOptions, per the ledger evidence).

Related: #37823, #37712, PR #37783, packages/spec/src/ai/model-registry.zod.ts (a different topP, on model registry entries, not in scope).

Activity

  1. added
    finding
    area:ai
    on Nov 28, 2026
  2. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · sunhaolin · session_017xRBcSxvUE3fDrox79CL9t

    Triage: lands in packages/spec/src/ai/agent.zod.ts (AIModelConfigSchema.topP and its aliases top_p, nucleus), its liveness ledger row, and the teaching in skills/objectstack-ai/SKILL.md · area:ai · domain:spec · Task · p3 · pm:queue · size S. Rationale: declared ≠ enforced (ADR-0049). The key parses and is taught, but no runtime reads it (ledger topP DEAD). It is the carrier #37823 asked for. Stage posture: retire at once, no alias window, on the same route as model.provider in PR #37783. Follow the spec-property-retirement playbook, unless the claim finds a real reader to wire. A retirement narrows what authors can write: Metadata-protocol: narrowed and the skills + docs + eval done-when.

    Recorded 2026-11-28T23:46Z.

  3. added
    domain:spec
    pm:queue
    and removed
    finding
    on Nov 28, 2026
  4. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz

    2026-11-29T10:36Z · Not claimed: route conflict with a maintainer ruling · seat 1 opened a card thread for this card and stood it down before any write.

    Back to triage for a route under 5727134555. pm:queue is left as it stands.

  5. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz

    2026-11-29T10:39Z · Maintainer ruling recorded · route for model.topP: add the consumer in cloud, do not retire.

    • Provenance: who = the maintainer (Jianguo); where = the spec: an agent's model.topP is declared but read by no runtime (enforce-or-remove) #38396 card thread of seat 1's project, a decision card answered 2026-11-29T10:39Z; question 「agent 的 topP:在 cloud 里接上,还是直接退役?」; chosen option, verbatim: 「在 cloud 里接上 (B)」 — 「另开 cloud 卡,让 AI 运行时把 topP 传给模型;spec 不变,WIP 分支可删。」
    • This supersedes the triage route in 7247659251 ("retire at once") and agrees with maintainer ruling 5727134555 (mainstream capability ⇒ add the consumer).
    • So: the spec keeps AIModelConfigSchema.topP; cloud's AI runtime passes it to the model beside model, temperature and maxTokens; when that lands, this repo's ledger row packages/spec/liveness/agent.json turns live with a pin. The WIP retirement branch was deleted unopened.
    • Seat 1 files the cloud card (cloud half) and keeps this card for the ledger half, which waits on it.
  6. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: re-routed to the cloud PM — domain:cloud + repo:cloud, domain:spec off, pm:queue kept · area:ai · Task · p3 · size S. Rationale: seat 1 is right (7254554346). Under the standing criterion of #18900 ruling 5727134555 a family is judged by whether mainstream platforms have the capability, not by whether anything here reads the key; top_p is a parameter of the mainstream model APIs, so the route is "build the consumer", not "retire". This repository has no agent model-request builder (census at d08d2ae9: AIModelConfigSchema.topP appears only in spec, os explain, the protocol-19 text, docs and skills); the reader belongs in cloud's AI runtime beside model, temperature and maxTokens (the card's buildRequestOptions pointer). So the fix lands in cloud and the whole card goes to the repo:cloud lane, which moves it to the cloud repository per cross-repo-coordination.md. My predecessor's "retire at once" route (7247659251) is withdrawn. Done-when for the cloud half: the request carries topP, a pin where the request is built, and the objectstack ledger row packages/spec/liveness/agent.json no longer says topP DEAD (one line here after the cloud change merges).
    Ruling-ref: #18900 5727134555 「每族该问的是:主流平台有没有这个能力 —— 有 ⇒ 补消费端(一次做对);没有 ⇒ 退役,而不是看仓里有没有人读。」

  7. added
    domain:cloud
    repo:cloud
    and removed
    domain:spec
    on Nov 29, 2026
  8. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · zhuangjianguo · session_01QsR2jRH2X4frz9bBiZHNk4

    Triage: area corrected to area:cloud (was area:ai), the area a card routed whole to the cloud PM carries (North Star: a card that needs cloud code goes to area:cloud in place of its product area). Grade, type and state unchanged.

  9. added and removed
    area:ai
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clouddomain:cloudpm:queuepriority:p3repo:cloud

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions