Skip to content

chore(docker): bump kiro-cli pin to 3.5.0 - #1618

Open
chaodu-agent wants to merge 1 commit into
mainfrom
chore/kiro-cli-3.5.0
Open

chaodu-agent wants to merge 1 commit into
mainfrom
chore/kiro-cli-3.5.0

Conversation

@chaodu-agent

Copy link
Copy Markdown
Collaborator

What problem does this solve?

The kiro image bundles kiro-cli 2.25.0. That version authenticates against the old CodeWhisperer API, which has a monthly usage limit. Once the limit is used up, every reply fails with -32603: The monthly usage limit has been reached, even on plans that work in Kiro IDE. The reporter confirmed kiro-cli 3.5.0 works with the same account.

#1609 added openab support for the kiro-cli 3.x v3 engine and Kiro workflows, but did not change the image pin, so docs/kiro-v3.md could not be followed with the official image. This PR bumps the pin.

Fixes #1615

Discord Discussion URL: https://discord.com/channels/1564929885242396673/1574824002193465414

Review Contract

Goal

Ship kiro-cli 3.5.0 in the kiro images (Dockerfile, Dockerfile.package, Dockerfile.unified) so default deployments stop hitting the CodeWhisperer monthly limit, without changing the behaviour of existing bots.

Non-goals

  • Switching the image default to the v3 engine. The default command stays kiro-cli acp --trust-all-tools.
  • The AgentCore runtime image (agentcore/runtimes/kiro/Dockerfile), which installs the latest kiro-cli through the install script and has no pin.
  • Migrating stored 2.x tokens automatically.

Accepted Residual Risks

  • kiro-cli 3.x selects the v3 engine by default and falls back to v2 only when a v2-only flag (--trust-all-tools, --agent, --model, --effort, --trust-tools) is passed (from kiro-cli acp --help on 3.5.0). The image default passes --trust-all-tools, so it stays on v2. An operator who overrode [agent] args with none of those flags (for example args = ["acp"]) moves to v3 after this upgrade. Mitigation: documented in docs/kiro.md (add --agent-engine=v2). Recovery: same.
  • Not confirmed whether a token stored by 2.25.0 keeps using the CodeWhisperer path under 3.5.0. The issue reporter logged in again after installing 3.5.0. Mitigation: docs/kiro.md tells operators to re-run the login command if the limit error persists.
  • The v2 engine in 3.5.0 has not been exercised end to end with a real prompt through openab in this PR (see Validation).

Acceptance Criteria

  • KIRO_CLI_VERSION=3.5.0 and the 3.5.0 SHA256 pins are identical in Dockerfile, Dockerfile.package and Dockerfile.unified, and the smoke-test assert_line checks match.
  • Smoke test Verify bumped runtime versions passes for the default and -unified variants (kiro-cli --version prints kiro-cli 3.5.0).
  • The default kiro-cli acp --trust-all-tools completes the ACP handshake in the smoke test.
  • docs/kiro.md documents the engine selection rule and the re-login step. docs/kiro-v3.md states which version the image bundles.

Follow-ups

  • A real-prompt check on a deployed bot after the next beta, with a token created by 2.25.0, to confirm whether re-login is required.
  • Consider pinning the AgentCore kiro runtime too.

At a Glance

Dockerfile / .package / .unified
  ARG KIRO_CLI_VERSION 2.25.0 ──► 3.5.0  (+ SHA256 amd64/arm64)
        │
        ▼
kiro-cli acp --trust-all-tools   (unchanged default)
        │  v2-only flag present
        ▼
v2 engine  ── existing bots unchanged
v3 engine  ── opt-in via docs/kiro-v3.md (#1609)

Prior Art & Industry Research

Not applicable. This is a version pin bump of a bundled CLI.

Proposed Solution

  • Bump KIRO_CLI_VERSION to 3.5.0 and replace KIRO_SHA256_AMD64 / KIRO_SHA256_ARM64 in the three kiro Dockerfiles, and update the matching assert_line checks in docker-smoke-test.yml.
  • docs/kiro.md: state the pinned version, the v3-by-default engine rule and how to stay on v2, and the re-login step for the monthly limit error.
  • docs/kiro-v3.md: say the official image bundles 3.5.0.

The nightly build keeps using KIRO_CLI_VERSION=latest with ETag checks, unchanged.

Why this approach?

3.5.0 is the version in the stable manifest (https://prod.download.cli.kiro.dev/stable/latest/manifest.json) and the version the reporter verified. The download layout is unchanged (kirocli/bin/kiro-cli), so the install step needs no edit. The zip now ships one binary instead of several, and cp /tmp/kirocli/bin/* still works.

Alternatives Considered

  • Also switch the default to --agent-engine=v3: v3 rejects --trust-all-tools, reads agents from Markdown files instead of JSON, and uses about 0.5 GB per process. That is a breaking change for existing bots and belongs in its own PR.
  • Leave the pin and document a PVC install (the issue's workaround): every operator would repeat a manual step and lose SHA256 verification.

Validation

  • SHA256 of both zips downloaded from prod.download.cli.kiro.dev/stable/3.5.0/ matches the stable manifest:
    • kirocli-x86_64-linux.zip 7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d
    • kirocli-aarch64-linux.zip ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0
  • x86_64 binary: kiro-cli --version prints kiro-cli 3.5.0. It needs at most GLIBC 2.34, and the base image is Debian trixie (glibc 2.41).
  • kiro-cli acp --trust-all-tools with an empty HOME answers initialize with agentInfo.version = "3.5.0", loadSession: true.
  • grep finds no remaining 2.25.0 or old SHA256 values in the repo.
  • Docker image build and smoke test: left to CI (no Docker on the authoring host).
  • Real prompt end to end: not run (needs a logged-in account).

kiro-cli 2.25.0 uses the old CodeWhisperer API and hits its monthly
usage limit. 3.5.0 does not, and #1609 added openab support for the
3.x v3 engine. The image default (acp --trust-all-tools) keeps 3.5.0 on
the v2 engine, so existing bots are unchanged.

SHA256 values are from the stable manifest and match the downloaded
zips.

Fixes #1615
@chaodu-agent

Copy link
Copy Markdown
Collaborator Author

Important

CHANGES REQUESTED ⚠️ - The pin bump itself is correct and CI is green; three small doc fixes are needed so the docs match how kiro-cli 3.5.0 actually picks its engine.

What This PR Does

The kiro images bundle kiro-cli 2.25.0, which talks to the old CodeWhisperer API and hits -32603: The monthly usage limit has been reached (#1615). This PR bumps the pin to 3.5.0 in Dockerfile, Dockerfile.package and Dockerfile.unified, updates the matching smoke-test assertions, and documents the engine selection change and a re-login step.

How It Works

  • KIRO_CLI_VERSION, KIRO_SHA256_AMD64 and KIRO_SHA256_ARM64 change in all three kiro targets; the install step is unchanged because the zip layout (kirocli/bin/kiro-cli) is the same.
  • validate-packaged-pins asserts the same three lines across the three Dockerfiles.
  • kiro-cli 3.x acp defaults to the v3 engine but stays on v2 when a v2-only flag (--trust-all-tools, --agent, --model, --effort, --trust-tools) is passed. Every repo default (Dockerfiles, Helm charts, config.toml.example) passes --trust-all-tools, so default deployments stay on v2.

Findings

# Severity Finding Location
1 🟡 Literal 3.5.0 in docs duplicates the Dockerfile ARG and will go stale on the next bump docs/kiro.md:13, docs/kiro-v3.md:7
2 🟡 docs/kiro-v3.md intro still says v3 is "selected with --agent-engine=v3" and fully opt-in, which no longer holds for bare acp on the bundled 3.x docs/kiro-v3.md:3-5
3 🟡 Engine rule in docs/kiro.md omits that a persisted acp.agentEngine setting overrides the v2-flag fallback; with acp.agentEngine = "v3" the default command fails at startup docs/kiro.md:13
4 🟢 Both SHA256 pins independently verified against the official downloads by three reviewers Dockerfile*
5 🟢 Minimal, consistent change: all three targets plus the parity gate, no new config surface; full CI green -
Finding Details

🟡 F1: Avoid hardcoding the version in prose

Both doc sentences already point readers to KIRO_CLI_VERSION in the Dockerfile and to kiro-cli --version. The literal 3.5.0 adds two unguarded copies that the parity check does not cover. Suggest "kiro-cli 3.x, pinned by KIRO_CLI_VERSION in the Dockerfile" instead.

🟡 F2: Align the kiro-v3.md intro with 3.x defaults

docs/kiro-v3.md:3-5 says the v3 engine is "selected with --agent-engine=v3" and that "with none of them set, a kiro-cli v2 bot behaves as before." With 3.x bundled, kiro-cli acp without a v2-only flag starts v3. Reword to say v3 is the 3.x default for acp unless a v2-only flag or --agent-engine=v2 is given, and link the rule in docs/kiro.md.

🟡 F3: Document acp.agentEngine precedence

Tested on the 3.5.0 binary: if acp.agentEngine = "v3" is persisted via kiro-cli settings, kiro-cli acp --trust-all-tools exits with error: the following arguments are not supported with --agent-engine=v3: --trust-all-tools. The setting takes precedence over the v2-only-flag fallback. Add one clause to docs/kiro.md:13 noting this, and that chat.agentEngine is not consulted by acp.

🟢 F4: Checksums verified

Direct downloads from prod.download.cli.kiro.dev/stable/3.5.0/ hash to:

  • kirocli-x86_64-linux.zip 7f9bb76921f477125629619450d5942e160942aba9dd8cdc4a66f7678a20c56d (139487134 bytes)
  • kirocli-aarch64-linux.zip ed45f387bca9356d1e767022a7cb504c3fbda20d3881c55c7d771877335ceec0 (135283908 bytes)

Both match the stable manifest and all three Dockerfiles. No 2.25.0 or old SHA256 remains in the repo.

🟢 F5: Scope and CI

Updating only some targets would leave package or unified images on 2.25.0 and fail the parity gate, so the 12-line pin change is the smallest safe implementation. The v2 default is kept on purpose; switching to v3 is correctly left to a separate PR. All smoke tests (default, -unified, smoke-test-unified (kiro, kiro-cli)) and validate-packaged-pins pass at this SHA.

Baseline Check
Validation Notes
  • Engine selection rule confirmed both from kiro-cli acp --help on 3.5.0 and from the upstream docs (kiro.dev/docs/cli/agent-harness/, ACP clients section).
  • PR description says initialize returned loadSession: true with an empty HOME; a reviewer saw loadSession: false with no credentials at all. initialize still succeeds either way; informational only.
  • The re-login note for bug(kiro): bundled kiro-cli 2.25.0 exhausts codewhisperer monthly quota; 3.5.0 is unaffected #1615 is hedged appropriately; whether a 2.x token must be recreated is not yet confirmed (tracked as a follow-up in the PR).
  • poll-and-review failing is the review-trigger job, not a build or test check.
Follow-ups (not blocking)
  • Pass --agent-engine=v2 explicitly in the image default (or adopt a deliberate v3 migration) so engine choice does not depend on a flag side effect.
  • Highlight in release notes that operators with args = ["acp"] move to v3 after this upgrade.
  • Have validate-packaged-pins derive the kiro pins from one Dockerfile instead of repeating literals, as it already does for Node.
  • Consider pinning the AgentCore kiro runtime (out of scope here).
What's Good (🟢)
  • Checksum-verified pin, no move to latest.
  • Clear Review Contract with honest residual risks and validation gaps.
  • Correct scope: binary bump without changing the default engine.

5. Three Reasons We Might Not Need This PR

  1. Same engine, bigger binary jump - default bots keep running v2, now from a 3.x binary that no longer gets v2 features. Rebuttal: the quota failure in bug(kiro): bundled kiro-cli 2.25.0 exhausts codewhisperer monthly quota; 3.5.0 is unaffected #1615 comes from the 2.25.0 API path, and the reporter confirmed 3.5.0 fixes it; re-login alone on 2.x would not.
  2. Wait for the next kiro release - another bump will be needed anyway. Rebuttal: waiting leaves the current outage in place, and tracking latest would drop SHA256 verification.
  3. Silent v3 move for custom args = ["acp"] - a real behavior change for some operators. Rebuttal: documented with a one-flag remedy (--agent-engine=v2), and v3 support already landed in feat(session): support kiro-cli v3 engine and Kiro workflows over ACP #1609.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(kiro): bundled kiro-cli 2.25.0 exhausts codewhisperer monthly quota; 3.5.0 is unaffected

1 participant