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
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:aidomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions