Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1600639
docs(kiro): plan scoped native install trust with three review rounds
777genius Nov 21, 2026
bb5e1b5
feat(kiro): qualify exact publisher-declared MCP auto-approval extension
777genius Nov 21, 2026
303aecd
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
58de867
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
fdb8e60
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
656e22a
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
84492c2
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
f877212
feat(kiro): scope native MCP tool approvals to selected owned servers
777genius Nov 21, 2026
1454ce7
test(kiro): exercise exact tool approvals across lifecycle and projec…
777genius Nov 21, 2026
f77b909
fix(kiro): require selected approval authority and clean test contracts
777genius Nov 21, 2026
748699d
fix(kiro): require selected approval authority and clean test contracts
777genius Nov 21, 2026
67861df
fix(kiro): require selected approval authority and clean test contracts
777genius Nov 21, 2026
a81984b
docs(kiro): document exact tool approval, trust boundary and acceptance
777genius Nov 21, 2026
5279246
test(kiro): prove approved tool projection through public CLI and per…
777genius Nov 21, 2026
7192bdb
fix(kiro): fail closed on noncanonical approval metadata keys
777genius Nov 21, 2026
08b21c8
test(kiro): reject case-insensitive and noncanonical tool trust decla…
777genius Nov 21, 2026
7684251
ci(kiro): require exact CLI and SDK trust lifecycle proofs on three OS
777genius Nov 21, 2026
cac9d59
fix(ci/kiro): keep YAML intact while admitting exact three-OS approva…
777genius Nov 21, 2026
66b0ed2
test(kiro): prevent removal overwriting user-edited native tool grants
777genius Nov 21, 2026
c528aa1
ci(kiro): admit exact modified-tool-grant ownership rejection on thre…
777genius Nov 21, 2026
7b50b52
style(kiro): align exact approval negative-case table for gofmt lint
777genius Nov 21, 2026
84137ff
test(kiro): gofmt ownership lifecycle test declaration
777genius Nov 21, 2026
d97e753
fix(kiro): admit scoped approval extension to automatic native verifi…
777genius Nov 21, 2026
d93287a
ci(kiro): admit fail-closed approval schema cases on three OS
777genius Nov 21, 2026
8998003
test(kiro): keep approved MCP packages eligible for native automatic …
777genius Nov 21, 2026
7e31590
fix(ci/kiro): restore intact E2E workflow and admit exact trust cases…
777genius Nov 21, 2026
ce59111
fix(kiro): reject invisible or spoofed MCP tool names before native t…
777genius Nov 21, 2026
b16a41c
test(kiro): refuse bidi, zero-width and markup MCP approval spoofing
777genius Nov 21, 2026
d8f2f1b
fix(kiro): reject stale exact approved-tool projection during active …
777genius Nov 21, 2026
fb6aeac
fix(kiro): verify exact approved-tool source on active reprojection
777genius Nov 21, 2026
6c501c4
test(kiro): prevent stale native approval repair/import from gaining …
777genius Nov 21, 2026
cc18891
ci(kiro): require active-trust reprojection regression in exact three…
777genius Nov 21, 2026
b1a3822
fix(kiro): resolve review trust nuance and sync compatibility snapshots
777genius Nov 21, 2026
0c9036f
chore(kiro): regenerate scoped client capability contract from Kiro a…
777genius Nov 21, 2026
b016a55
fix(kiro): inspect persisted client map by binding in CLI E2E
777genius Nov 21, 2026
996485c
fix(kiro): lowercase native approval errors for Go staticcheck
777genius Nov 21, 2026
05c3f77
fix(kiro): wrap native approval read error for errorlint
777genius Nov 21, 2026
1bc85b4
test(kiro): gofmt exact CLI approval E2E fixture
777genius Nov 21, 2026
2169774
fix(kiro): refuse extension-only Project catalog previews without MCP
777genius Nov 21, 2026
7ccaca0
test(kiro): cover MCP prerequisite for extension-only catalog previews
777genius Nov 21, 2026
7d9fedd
test(kiro): preserve partial skills catalog eligibility
777genius Nov 21, 2026
ec48116
fix(kiro): preserve partial skills eligibility in Project previews
777genius Nov 21, 2026
aef35ca
test(kiro): reject extension-only preview without blocking portable s…
777genius Nov 21, 2026
0b4e256
fix(ci): qualify Kiro with reviewed prerequisite and browser contracts
777genius Nov 21, 2026
d5947a6
fix(ci): use an eligible version for current-source live audit
777genius Nov 21, 2026
1f98ddc
test(kiro): prove CLI uninstall revokes approvals and native narrowing
777genius Nov 21, 2026
1ba8084
fix(test): honor retained plugin data after Kiro approval removal
777genius Nov 21, 2026
cf2e290
fix(kiro): preserve Skills when MCP approvals have no selected server
777genius Nov 21, 2026
2d754e8
fix(test): assert both owned Kiro Skills-only receipts
777genius Nov 21, 2026
3c2b67f
fix(ci): bind Hermes logo contract to the support table
777genius Nov 21, 2026
27d4aed
test: qualify pinned live installation audit evidence
777genius Nov 22, 2026
68e6c39
fix(installer): preserve observed CLI surfaces for raw Skills
777genius Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 41 additions & 2 deletions .github/workflows/kiro-no-auth-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ jobs:
shell: bash
working-directory: install/integrationctl/agentplugins
run: go test -json -count=1 -timeout=180s ./installer -run '^Test(ProjectKiroPublicSDKStdioDataRepairRestartAndRemove|FacadeHostedPreparation(PinsIntentAndSnapshot|PreservesAutomaticAndOtherFailures|RefusesAppearingRetainedInstallation|PreservesRecordedModesAndOwnership|EligibilityDoesNotBroadenScopeOrConsent|RejectsRetainedStateAtMutationLock))$' | tee "$RUNNER_TEMP/kiro-composed-sdk.log"
- name: Verify public Kiro CLI publisher approval install and repair
shell: bash
working-directory: cli
run: go test -json -count=1 -timeout=180s ./internal/agentpluginscli -run '^TestKiro(PublisherMCPApprovalsFullCLI|SkillsWithoutMCPApprovalFullCLI)$' | tee "$RUNNER_TEMP/kiro-composed-cli-trust.log"
- name: Verify Kiro exact MCP approval and ownership lifecycles
shell: bash
working-directory: install/integrationctl/agentplugins
run: go test -json -count=1 -timeout=180s ./clients/kiro -run '^TestKiro(NamedMCPApprovalSchemaFailClosed|ApprovalWithoutSelectedMCPKeepsSkills|ApprovalPreviewAndNoUnselectedPrivilege|ExactApprovalPreservesNativeVerifierAndAutomaticActivation|ExactMCPApprovalDisposableLifecycle|ProjectApprovalDoesNotForgeWorkspaceTrust|ActiveApprovedToolsRefuseStaleReprojection|UserEditedAutoApprovalBlocksRemoval)$' | tee "$RUNNER_TEMP/kiro-composed-sdk-trust.log"
- name: Admit actual named cases and unchanged source
if: ${{ always() }}
shell: bash
Expand Down Expand Up @@ -132,7 +140,38 @@ jobs:
'TestFacadeHostedPreparationEligibilityDoesNotBroadenScopeOrConsent/attested',
'TestFacadeHostedPreparationEligibilityDoesNotBroadenScopeOrConsent/update',
'TestFacadeHostedPreparationEligibilityDoesNotBroadenScopeOrConsent/recorded',
'TestFacadeHostedPreparationRejectsRetainedStateAtMutationLock']}
'TestFacadeHostedPreparationRejectsRetainedStateAtMutationLock'],
'cli-trust': ['TestKiroPublisherMCPApprovalsFullCLI',
'TestKiroSkillsWithoutMCPApprovalFullCLI'],
'sdk-trust': ['TestKiroNamedMCPApprovalSchemaFailClosed',
'TestKiroApprovalWithoutSelectedMCPKeepsSkills',
'TestKiroNamedMCPApprovalSchemaFailClosed/empty',
'TestKiroNamedMCPApprovalSchemaFailClosed/root',
'TestKiroNamedMCPApprovalSchemaFailClosed/unsupported-version',
'TestKiroNamedMCPApprovalSchemaFailClosed/empty-list',
'TestKiroNamedMCPApprovalSchemaFailClosed/wildcard',
'TestKiroNamedMCPApprovalSchemaFailClosed/embedded-wildcard',
'TestKiroNamedMCPApprovalSchemaFailClosed/path',
'TestKiroNamedMCPApprovalSchemaFailClosed/duplicate-tool',
'TestKiroNamedMCPApprovalSchemaFailClosed/duplicate-server',
'TestKiroNamedMCPApprovalSchemaFailClosed/unknown-field',
'TestKiroNamedMCPApprovalSchemaFailClosed/field-alias',
'TestKiroNamedMCPApprovalSchemaFailClosed/field-alias-server',
'TestKiroNamedMCPApprovalSchemaFailClosed/noncanonical-number',
'TestKiroNamedMCPApprovalSchemaFailClosed/wrong-shape',
'TestKiroNamedMCPApprovalSchemaFailClosed/null',
'TestKiroNamedMCPApprovalSchemaFailClosed/trailing-content',
'TestKiroApprovalPreviewAndNoUnselectedPrivilege',
'TestKiroExactApprovalPreservesNativeVerifierAndAutomaticActivation',
'TestKiroExactMCPApprovalDisposableLifecycle',
'TestKiroExactMCPApprovalDisposableLifecycle/install',
'TestKiroExactMCPApprovalDisposableLifecycle/repeat',
'TestKiroExactMCPApprovalDisposableLifecycle/update',
'TestKiroExactMCPApprovalDisposableLifecycle/repair',
'TestKiroExactMCPApprovalDisposableLifecycle/narrow',
'TestKiroProjectApprovalDoesNotForgeWorkspaceTrust',
'TestKiroActiveApprovedToolsRefuseStaleReprojection',
'TestKiroUserEditedAutoApprovalBlocksRemoval']}
receipts = []
for label, tests in required.items():
path = root / ('kiro-composed-' + label + '.log')
Expand All @@ -153,7 +192,7 @@ jobs:
receipt = {'source_before': before, 'source_after': after, 'logs': receipts,
'qualification': 'UAP composed installation only; inert discovery/security/helper seams; no native Kiro loading'}
(root / 'kiro-composed-admission.json').write_text(json.dumps(receipt, sort_keys=True, indent=2) + '\n')
print('PASS: exact CLI Git/ZIP and SDK lifecycle RUN/PASS cases; clean source preserved')
print('PASS: exact Kiro CLI+SDK approval cases and Git/ZIP lifecycle RUN/PASS on unchanged source')
PYTHON
- name: Preserve actual lifecycle logs and source admission
if: ${{ always() }}
Expand Down
69 changes: 59 additions & 10 deletions .github/workflows/live-install-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ on:
paths:
- 'scripts/prepare-codex-linux-sandbox.sh'
- 'scripts/live-install-audit.py'
- 'scripts/pi_project_skill_audit.py'
- 'scripts/test_pi_project_skill_audit.py'
- 'scripts/qoder_prepared_skill_audit.py'
- 'scripts/test_qoder_prepared_skill_audit.py'
- 'scripts/native_client_research.py'
- 'scripts/test_native_client_research.py'
- 'scripts/published_codex_baseline.py'
- 'scripts/test_published_codex_baseline.py'
- 'scripts/test_live_install_audit_env.py'
- 'scripts/test_live_install_audit_opencode_negative.py'
- 'scripts/test_kimi_repeat_log_audit.py'
- 'scripts/codex_runtime_audit.py'
- 'scripts/claude_cache_retirement_audit.py'
Expand Down Expand Up @@ -70,18 +77,22 @@ jobs:
codex --version
# The Go source defaults to 0.1.0-development; signed directory policies
# require an ordinary release-semver CLI. This is still the PR source
# binary, NOT the published agentplugins-v0.1.95 release.
# binary, NOT the published agentplugins-v0.1.115 release.
- name: Refuse ambient native-profile and Git configuration leakage
run: |
python3 -m unittest discover -s scripts -p 'test_live_install_audit_env.py'
python3 -m unittest discover -s scripts -p 'test_qoder_prepared_skill_audit.py'
python3 -m unittest discover -s scripts -p 'test_native_client_research.py'
python3 -m unittest discover -s scripts -p 'test_pi_project_skill_audit.py'
python3 -m unittest discover -s scripts -p 'test_live_install_audit_opencode_negative.py'
python3 -m unittest discover -s scripts -p 'test_kimi_repeat_log_audit.py'
python3 -m unittest discover -s scripts -p 'test_gemini_windows_runtime_audit.py'
python3 -m unittest discover -s scripts -p 'test_codex_runtime_audit.py'
python3 -m unittest discover -s scripts -p 'test_opencode_bootstrap_audit.py'
- name: Verify exact empty-stderr LintAI exit diagnostic
run: go test ./install/integrationctl/agentplugins/adapters/securityscan -run '^TestCommandScannerIncludesNonzeroExitWhenStderrIsEmpty$' -count=1
- name: Build actual PR CLI with current eligible directory version policy
run: go build -trimpath -ldflags='-X main.version=0.1.95' -o "$RUNNER_TEMP/agentplugins-audit" ./cli/cmd/agentplugins
run: go build -trimpath -ldflags='-X main.version=0.1.115' -o "$RUNNER_TEMP/agentplugins-audit" ./cli/cmd/agentplugins
- name: Run isolated real source install and remove; preserve per-case proof
env:
AUDIT_VENDOR_OUTCOME: ${{ steps.native-install-pilot.outcome }}
Expand All @@ -104,7 +115,7 @@ jobs:


published-cli-smoke:
name: Published npm 0.1.95 / Codex CLI parity
name: Historical npm 0.1.95 / Codex lifecycle and default refusal
needs: native-pilot
runs-on: ubuntu-24.04
timeout-minutes: 25
Expand Down Expand Up @@ -137,7 +148,9 @@ jobs:
result=0
for kind in plugin skill; do
# Keep this immutable release's lifecycle distinct from current Ready.
acceptance=native
# Observe the default feed refusal separately; only the plugin
# lifecycle uses the unexpired, original-key official sequence 48.
acceptance=published-0.1.95-codex-plugins-archived-feed
if [ "$kind" = skill ]; then acceptance=published-0.1.95-codex-skills; fi
python3 scripts/live-install-audit.py --cli "$(command -v agentplugins)" \
--target codex --kind "$kind" --limit 2 --acceptance "$acceptance" \
Expand All @@ -154,7 +167,7 @@ jobs:
retention-days: 14

real-native-cli-matrix:
name: All 30 ${{ matrix.kind }} / native ${{ matrix.target }}
name: All 30 ${{ matrix.kind }} / ${{ matrix.target == 'pi' && matrix.kind == 'skill' && 'foreign Prepared + clean native' || matrix.target == 'qoder' && matrix.kind == 'skill' && 'Prepared installation' || 'native' }} ${{ matrix.target }}
needs: native-pilot
runs-on: ubuntu-24.04
timeout-minutes: 65
Expand Down Expand Up @@ -187,6 +200,7 @@ jobs:
env:
TARGET: ${{ matrix.target }}
KIND: ${{ matrix.kind }}
CLINE_NO_AUTO_UPDATE: '1'
shell: bash
run: |
set -euo pipefail
Expand All @@ -212,20 +226,55 @@ jobs:
binary="$TARGET"
if [[ "$TARGET" == qoder ]]; then binary=qodercli; fi
command -v "$binary"
timeout 25s "$binary" --version
native_version=$(timeout 25s "$binary" --version)
printf '%s\n' "$native_version"
if [[ "$TARGET" == cline ]]; then [[ "$native_version" == 3.0.74 ]]; fi
- name: Build PR source CLI with current signed Registry eligibility version
if: ${{ !cancelled() }} # BUG-010: retain negative evidence after native bootstrap failure
run: go build -trimpath -ldflags='-X main.version=0.1.95' -o "$RUNNER_TEMP/agentplugins-audit" ./cli/cmd/agentplugins
run: go build -trimpath -ldflags='-X main.version=0.1.115' -o "$RUNNER_TEMP/agentplugins-audit" ./cli/cmd/agentplugins
- name: Attempt all 30 independent pinned sources in isolated profiles
if: ${{ !cancelled() }} # Missing client produces explicit non-PASS source rows
env:
TARGET: ${{ matrix.target }}
KIND: ${{ matrix.kind }}
AUDIT_VENDOR_OUTCOME: ${{ steps.native-install.outcome }}
run: |
python3 scripts/live-install-audit.py --cli "$RUNNER_TEMP/agentplugins-audit" \
--target "$TARGET" --kind "$KIND" --limit 30 \
--report-dir "$RUNNER_TEMP/full-proof"
if [[ "$TARGET" == pi && "$KIND" == skill ]]; then
# Two independent fresh invocations: never move or remove a foreign
# Skill to turn an existing Prepared project into a trusted one.
foreign_status=0
python3 scripts/live-install-audit.py --cli "$RUNNER_TEMP/agentplugins-audit" \
--target pi --kind skill --limit 30 --acceptance pi-foreign-prepared-skills-installation \
--report-dir "$RUNNER_TEMP/full-proof/pi-foreign-prepared" || foreign_status=$?
native_status=0
python3 scripts/live-install-audit.py --cli "$RUNNER_TEMP/agentplugins-audit" \
--target pi --kind skill --limit 30 --acceptance pi-clean-native-skills \
--report-dir "$RUNNER_TEMP/full-proof/pi-clean-native" || native_status=$?
[[ "$foreign_status" -eq 0 && "$native_status" -eq 0 ]]
else
acceptance=native
if [[ "$TARGET" == qoder && "$KIND" == skill ]]; then
acceptance=qoder-prepared-skills-installation
fi
python3 scripts/live-install-audit.py --cli "$RUNNER_TEMP/agentplugins-audit" \
--target "$TARGET" --kind "$KIND" --limit 30 --acceptance "$acceptance" \
--report-dir "$RUNNER_TEMP/full-proof"
fi
- name: Verify the audited Cline version matches this workflow pin
if: ${{ !cancelled() && matrix.target == 'cline' }}
env:
KIND: ${{ matrix.kind }}
run: |
python3 - <<'CLINE_PIN'
import json, os
from pathlib import Path
report = json.loads((Path(os.environ["RUNNER_TEMP"]) / "full-proof" /
("cline-" + os.environ["KIND"] + ".json")).read_text())
version = report.get("client_version", {})
if not (version.get("status") == "reported" and version.get("value") == "3.0.74"
and type(version.get("exit_code")) is int and version["exit_code"] == 0):
raise SystemExit("Cline audit did not observe this workflow's pinned 3.0.74: " + repr(version))
CLINE_PIN
- name: Upload all per-source installation outcomes (even on failures)
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.0
Expand Down
2 changes: 2 additions & 0 deletions cli/internal/agentpluginscli/deps_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"os"
"reflect"
"slices"

"github.com/spf13/cobra"

Expand Down Expand Up @@ -236,6 +237,7 @@ func detectDependencyClients(ctx context.Context, app App) (map[domain.ClientID]
}
detected := map[domain.ClientID]domain.DetectedClient{}
for _, client := range clients {
client.Surfaces = slices.Clone(client.Surfaces)
detected[client.ClientID] = client
}
return detected, nil
Expand Down
2 changes: 1 addition & 1 deletion cli/internal/agentpluginscli/deps_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (adapter *dependencyInstaller) Prepare(ctx context.Context, action environm
}
}
adapter.currentAction = action
request := installer.Request{Scope: adapter.app.scope(), ProjectRoot: adapter.app.ProjectRoot, OperationID: operationID, Operation: installer.Operation(action.Action), ClientID: action.ClientID, ClientConfigRoot: client.ConfigRoot,
request := installer.Request{Scope: adapter.app.scope(), ProjectRoot: adapter.app.ProjectRoot, OperationID: operationID, Operation: installer.Operation(action.Action), ClientID: action.ClientID, ClientConfigRoot: client.ConfigRoot, ClientSurfaces: slices.Clone(client.Surfaces),
ConfirmPluginEnable: adapter.opts.confirmPluginEnable && action.Action == "repair",
ClientNativeConfigRoot: dependencyNativeConfigRoot(adapter.app, client),
ClientExecutable: backendExecutable(client, adapter.detected, adapter.app.scope()), ClientVersion: client.Version, InstallationID: action.InstallationID,
Expand Down
3 changes: 2 additions & 1 deletion cli/internal/agentpluginscli/installer_facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"path/filepath"
"slices"

"github.com/spf13/cobra"

Expand Down Expand Up @@ -64,7 +65,7 @@ func runInstallerFacadeLocalAdd(ctx context.Context, cmd *cobra.Command, app App
OnlinePreview: !opts.dryRun,
SourceRoot: loaded.envelope.Source.CanonicalSource,
ExecutableFiles: append([]string{}, loaded.envelope.ExecutableFiles...),
ClientID: string(selected.ClientID), ClientConfigRoot: selected.ConfigRoot,
ClientID: string(selected.ClientID), ClientConfigRoot: selected.ConfigRoot, ClientSurfaces: slices.Clone(selected.Surfaces),
ClientExecutable: backendExecutable(selected, detected, app.scope()), ClientVersion: selected.Version, OperationID: operationID,
RequiredComponents: requiredFacadeComponents(loaded.envelope), Assessment: &assessment,
}
Expand Down
Loading
Loading