Skip to content

cloud-connection: the in-environment install door forwards no version, so an environment user cannot install a named package version #31799

Closed

Description

@objectstack-fleet

repo:cloud#3 · os-warren · session_01JQwxbZqfEd7pcckjz3pGqn

Filing gate: ② a finding from a dispatched card. cloud#4011 (a hosted versionless install picked a code plugin; PR cloud#4021) measured that an in-environment install always means "latest": the framework's cloud-connection door does not forward a version (dev report cloud#4011 comment 6732043180). The cloud lane does not dispatch this; triage routes it.

维护者速读

  • 问题:在环境里装应用时不能指定版本,只能装"最新"。控制台那边的安装接口支持指定版本,但框架转发时把版本丢了。
  • 要做:环境内安装接口接受 version 并转发给控制面,控制面照常校验。
  • 需要你做的:无,分诊定车道。

Evidence (main 90cea47, same at pin 6ed533f)

  • packages/cloud-connection/src/cloud-connection-plugin.ts L1252 (POST /install { package_id, seed_sample_data?, install_mode? }): the forward body carries environment_id, seed_sample_data, install_mode and installer_user_id only.
  • The control plane's install door accepts a named version (cloud authorizePackageInstall pinned-version branch).

Work

  1. Accept version (and packageVersion if that is the house spelling) on the in-environment install route, validate its shape, and forward it.
  2. Leave every refusal to the control plane (code-plugin, pre-release, listing approval).

Done when

  • An in-environment install naming a version installs that version; a malformed version is refused at the door; omitting it keeps "latest"; tests pin all three.

Dedupe: repo:objectstack-ai/objectstack is:issue "cloud-connection install version", "cloud-connection-plugin version pin" → none (nearest #30964, install mode + installer forwarding, closed).

Related: cloud#4011, cloud#4021, objectstack#30964.

Activity

  1. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: domain:server · p3 · pm:queue · 2026-11-09T04:55Z

    ⛔ Not a claim.


    Generated by Claude Code

  2. added
    domain:server
    pm:queue
    pm:dispatched
    and removed
    pm:queue
    on Nov 9, 2026
  3. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmPF1skfu2kx89BEXZi

    Claim: PM loop round 1 · #31799 · 2026-11-09T07:04Z · bug (p3; cloud#4011 consumer)
    Session: session_01ADHkmPF1skfu2kx89BEXZi
    Account: os-steve
    Branch: claude/project-thread-d7w1a6 (the card thread's harness-pinned branch, restarted from main; platform exception to claude/issue-N-slug)
    Worktree: objectstack-issue-31799
    Domain: domain:server
    Seat: domain:server#1
    File surface: packages/cloud-connection/src/cloud-connection-plugin.ts (the in-environment POST /install route), its tests, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:thread, model: default tier, effort: medium
    Clause-②: yes (widening: the in-environment install route accepts and forwards a named version; nothing narrowed)
    Metadata-protocol: none
    Ruling-ref: none (the card's own work list)
    Responsibility: the in-environment install route drops a named version, so a hosted environment user can only install latest · reached by every in-environment install that names a version
    Thread-read: none
    Premise: holds (read at cc16008a: the forward body of POST /install carries no version)
    Serial constraints cleared: none known; overlap with open PRs on cloud-connection-plugin.ts is re-checked in step 0, before the first push.
    Order: standard order + server-seat1/31799-delta.md (project files).

  4. objectstack-fleet commented on Nov 9, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#1 · os-steve · session_01ADHkmQznRNHwfSHVJJUCj2
    os-dev-report

    {
      "status": "pr_open",
      "branch": "claude/project-thread-d7w1a6",
      "pr": "#31861 (draft)",
      "session": "session_01ADHkmQznRNHwfSHVJJUCj2",
      "premise_still_valid": true,
      "summary": "POST /api/v1/cloud-connection/install accepts `version`, checks it with the reused SEMVER_2_0_0_VERSION_PATTERN (malformed: 400 INVALID_REQUEST naming the key, nothing forwarded) and forwards it as params.version to sys_package/install_package. Omitted or null: no key sent, body byte-identical to main (latest). Every other refusal stays with the control plane.",
      "tests": "3 new in cloud-connection-plugin.test.ts: named version forwarded (3 SemVer shapes, trim, with install_mode); 12 malformed shapes refused 400 with no fetch; CONTROL absent/null body JSON-identical to main. Base leg: 2 pins red, CONTROL green. Ablation ABLATION_31799_SHAPE (shape check off): malformed pin red ('\"latest\": expected 200 to be 400'), restored, diff clean. Suite 80 files / 1125 tests green; typecheck green; eslint --no-inline-config clean.",
      "gates": "dispatch-gates --commands at 7c22f5f74f: 69 run with stdin closed, reconciled --ran: 69/69, 0 NOT-MEASURED. check:dual-build-cjs-loads exit 3 (missing dist) -> workspace build -> exit 0. Roster gates under touched dirs (authz-resolver, changeset-fixed, error-code-casing, filter-alias-parity) exit 0. check:nul-bytes OK.",
      "dogfood_battery": "No route added. Dogfood files that boot cloud-connection: 28 files / 245 tests green locally under os-verify-lock. PR-side Dogfood Regression Gate aggregate left to CI.",
      "mcp_calls": "issue_read x2, list_pull_requests x1, pull_request_read x1 (all reads)",
      "api_writes": "1 relay pr_create (#31861, read-back identical); this comment via post-stamped",
      "open_questions": [
        "Control plane's install_package param name `version` is NOT MEASURED: the cloud repo is not reachable from this session; it rests on the card.",
        "`packageVersion` is not accepted (one spelling only); like any unknown key it is ignored rather than refused."
      ],
      "security_findings": "none",
      "out_of_scope_findings": [],
      "files_changed": [
        ".changeset/31799-cloud-install-named-version.md",
        "packages/cloud-connection/src/cloud-connection-plugin.ts",
        "packages/cloud-connection/src/cloud-connection-plugin.test.ts"
      ],
      "line_budget": "+88 / -2 (S)",
      "deviations": "none"
    }

    Stamped 2026-11-09T07:51Z.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

Labels

domain:serverenhancementpriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions