Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f1d24a5
feat: add workspace with ap-core and ap-broker libraries (FEAT-001)
chaodu-agent Nov 16, 2026
f57d06d
feat: add auth-proxy binary, ap-client, ported matrix and integration…
chaodu-agent Nov 16, 2026
4b68058
feat: add ap-egress CONNECT-only allowlist proxy and dependency check…
chaodu-agent Nov 16, 2026
d69fcbb
feat: add k8s deploy assets, docs, CI workflow and sync script (FEAT-…
chaodu-agent Nov 16, 2026
553f7b6
docs: verify kiro-cli sends one X-Amz-Target per call
chaodu-agent Nov 16, 2026
0b4eafd
test: verify HTTP/2 upstream relay and upstream_reset audit line
chaodu-agent Nov 16, 2026
62ccccd
fix: aarch64 verification fixes and report
chaodu-agent Nov 16, 2026
93cdbb0
test: verify Phase 1 K8s combined iptables rule set in one pod (Q3-E2)
chaodu-agent Nov 16, 2026
2e7321a
merge verify results: k8s-iptables
chaodu-agent Nov 16, 2026
1702639
merge verify results: h2-reset
chaodu-agent Nov 16, 2026
6757ce3
merge verify results: aarch64
chaodu-agent Nov 16, 2026
c339bd1
merge verify results: xamz-target
chaodu-agent Nov 16, 2026
fb2bf57
fix: remove egress.allow_route_hosts; build route.connect_to only in …
chaodu-agent Nov 16, 2026
f33f441
test: forbid aws_targets in shipped policies; mark the matcher dormant
chaodu-agent Nov 16, 2026
51b200d
feat: record bytes_sent on the upstream_reset audit line; enable its …
chaodu-agent Nov 16, 2026
379baa7
feat: INTERIM Q1-A static session for the first Kubernetes deployment
chaodu-agent Nov 16, 2026
d10fd79
docs: record the over-design council result and the owner's Q1 decision
chaodu-agent Nov 16, 2026
437ca13
docs: record the full-suite results for the council changes
chaodu-agent Nov 16, 2026
4bf8ae3
fix: session socket reachable by agent UID via shared GID 2000, no wo…
chaodu-agent Nov 16, 2026
4ca9bf8
docs: verify the interim Q1-A pod and the hello race on a real k3s no…
chaodu-agent Nov 16, 2026
e6c9155
docs: item 6 gates on macmini at 4ca9bf8
chaodu-agent Nov 16, 2026
553ca90
docs: set kiro-cps host to management.us-east-1.kiro.dev (measured vi…
chaodu-agent Nov 16, 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
40 changes: 40 additions & 0 deletions .agents/tasks/phase1-design/decision.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,43 @@ Rationale: same reasoning on single-file cross-checks, Q3-B drift, Q3-C operator
```

Merged rationale: one TOML policy file per identity, validated as a whole, swapped atomically, failing closed with `policy_unavailable`, stored in a proxy-only ConfigMap (Kubernetes) or Secrets Manager with S2 rules (ECS). Non-credential egress uses Q3-E2: a separate CONNECT-only `ap-egress` in its own container and UID, no Secret mount, no ap-broker dependency (CI-checked with cargo tree), resolving DNS itself and connecting to the exact validated address, refusing IP literals and private/loopback/link-local targets; agent UID keeps DNS blocked. GitHub goes through octobroker as an auth-proxy route behind TLS; git push via ap-egress to github.com:443; openab-pty#47's allowlist becomes the `[egress]` section. Follow-ups from both members: set `NO_PROXY=127.0.0.1,localhost`, confirm kiro-cli sends `X-Amz-Target` before any grant uses `aws_targets`, and measure the combined iptables rule set in one pod before release.

## Over-design council (2026-11-16) and the owner's decision on Q1

After the Phase 1 verification (`.agents/tasks/phase1-verify/`), two council members (sol and
opus5) reviewed the built system for over-design. Both set escalate on one question: whether the
first end-to-end Kubernetes deployment may run on the Q1-A fallback (one session registered for
the pod's lifetime, no per-session revocation) while Q1-B stays built, and whether `ap-egress` may
ever be folded into the credential-holding proxy.

### Owner decision (pahud, binding)

Option 1 of the escalation:

- **Q1-B stays the formal accepted design. New work on it is frozen.**
- Build **only** the minimal Q1-A static configuration (one session registered for the pod's
lifetime) as a **clearly labelled interim path** for the first end-to-end Kubernetes deployment.
- **The owner accepts that the interim deployment has no per-session revocation.** The
documentation says so in plain words (`docs/interim-static-session.md`, `docs/design/phase1.md`).
- The real-pod `hello` race test remains a **release gate** (`docs/pre-release-checklist.md`, item 3).
- **`ap-egress` stays a separate container and UID. It is never folded into the credential-holding
proxy.**

### Council verdicts applied (council-level, low risk, reversible)

| Item | Verdict | What was done |
|---|---|---|
| `aws_targets` | Freeze: keep parser, validation and tests dormant; forbid it in shipped policies | Test `shipped_policies_parse_and_use_no_aws_targets` fails if any policy under `deploy/` uses it. kiro-cli 3.3.0 was measured to send exactly one `X-Amz-Target` per call (model call `AmazonCodeWhispererStreamingService.GenerateAssistantResponse`, `docs/verification/phase1-xamz-target.md`), so the assumption holds, but no grant uses it yet. |
| `egress.allow_route_hosts` | Remove (security fix; only sol flagged it) | The field existed in `ap-core` `EgressCfg` and switched off the rule "an egress host is never a credential route host". Removed with no replacement; a policy that sets it is an unknown-field error. Tests: such a policy is rejected, and an egress entry that is a credential route host is rejected. |
| `route.connect_to` | Remove from production syntax or restrict to test builds | Restricted to the `test-resolve` cargo feature. No shipped build has it, and a policy that sets it is rejected (unit test plus `scripts/check-no-test-resolve.sh` on the release binary). Tests and the matrix use a `test-resolve` build. |
| Admin socket, revoke-all, status | Councils split (sol: remove; opus5: keep); lean was simplify | **Kept**, because tests depend on it: `crates/ap-proxy/tests/session_plane.rs` reads the session count from `GET /admin/status` in many tests and has `admin_socket_status_and_revoke_all`; `policy.rs` and the shared fixture start the proxy with `--admin-socket`; the matrix harness waits for the admin socket. The pre-release checklist does not depend on it. It is never merged into the agent-mounted session socket. Revisit when those tests get another way to count sessions. |
| Broker trait, `ap-client` | Freeze at the UDS client only | No code change. No networked-broker work in Phase 1. |
| `upstream_reset` audit gap (verification item 2) | Owner chose option A | `AuditRec` has a `bytes_sent` field (response-body bytes already relayed; `null` on other lines), counted in `agent.rs`. `#[ignore]` removed from `the_upstream_reset_audit_line_records_the_bytes_sent`. The audit stays free of secrets and of the `/ap/<caller-key>` prefix; matrix X5 passes. |
| Combined iptables rule set | Measured in one pod (verification item 1, PASS) | Design doc tag changed from [I] to [M]; evidence `docs/verification/phase1-k8s-iptables.md`. |
| `kiro-cps` route host placeholder | Not resolvable from the item 4 capture | Listed as an open item with what is needed (`docs/pre-release-checklist.md`). |

### Q1 summary row, as amended

| Question | Final status |
|---|---|
| Q1 session/caller identity | Q1-B accepted and frozen. Q1-A static session built as an **interim** path, with no per-session revocation, accepted by the owner. |
32 changes: 32 additions & 0 deletions .agents/tasks/phase1-verify/item6-cleanup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
RESULT: PASS (mini left as found)

# Item 6d: cleanup check on `mini`

Start state recorded BEFORE any change in `item6-evidence/before.txt` (`snap.sh`: namespaces, pods, `ctr -n k8s.io`
images, listening sockets, tailscale status, `~` and `/tmp` listings, `~/.cargo/bin`, `~/.local/bin`, crictl container
count, host `iptables -S OUTPUT` md5, `iptables-save | grep ap-item6`, disk). After: `item6-evidence/after.txt`.

Created and removed (one prefix, `ap-item6`):
- namespace `ap-item6` (pods, Services, Secrets, ConfigMaps): `kubectl delete ns ap-item6 --wait=true` -> deleted;
- images `docker.io/ap-item6/{proxy,egress,agent,hr,netinit}:dev` and the 5 index `sha256:` names the import added
(`ctr -n k8s.io images rm --sync`);
- `/tmp/ap-item6-build` (sources, build target, throwaway cargo home, keys, PKI, tar), `/tmp/ap-item6-snap.sh`;
- macmini: docker images `ap-item6/*` (6), `/tmp/ap-item6-ctx`; laptop: `/tmp/ap-item6-ctx`, `/tmp/ap-item6-tool`.
No cargo or rustc ran on the laptop or macmini. kiro-cli binaries were only copied (read) from `mini`'s install.

Comparison after cleanup ([M]):
```
namespaces : default kube-node-lease kube-public kube-system openab (same as before)
ctr images (sorted) md5 : 1b52afe0a10081120714dbf0a88a6778 before and after (identical)
ctr images matching ap-item6: 0
ls /tmp | grep -c ap-item6: 0
ps auth-proxy|ap-egress|hr-authority: 0
host iptables OUTPUT md5 : 6aa9113fa8015deb4c7a93b5c2f03524 before and after
crictl containers : 13 before, 13 after
ls -A ~ md5 : 573255538318e555fbedd46e38caa2ce (same as the item 1 / item 5 baseline; ~ untouched)
df free on / : 31G before, 31G after
tailscale : state never touched; status header identical
```
`diff before.txt after.txt` has only two lines, both artefacts of the snapshot itself: `ap-item6-after.txt` (the output
file existing in /tmp while the snapshot ran) and the `ps` counter 1 -> 2 (the snapshot's own shell command line
contains "ap-item6"). Both were re-checked without the artefact (counts above are 0). p1 was not touched.
27 changes: 27 additions & 0 deletions .agents/tasks/phase1-verify/item6-cps-host.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
RESULT: SUPERSEDED by item7-cps-host.md (host measured)

# Item 6c: `kiro-cps` route host

`item4-xamz-target.md` pointed every endpoint at a local listener (`api.cps.service` included), so it records the
`X-Amz-Target` values but never the real control-plane host. It cannot fill `deploy/k8s/policy.example.toml`.
The placeholder `control-plane.placeholder.example` stays, and the pod stays "cannot be deployed until replaced".

Also tried here: `kiro-cli settings api.cps.service` on kiro-cli 2.37.0 -> "No value associated" (there is no readable
default), and a string search of the binary found no unambiguous cps host (the search for host-looking strings ended in
a timeout and noise). Nothing guessed.

## Exactly what is needed
The host (and port, and the `Host` header, if not 443) that kiro-cli 3.3.0 (the verified version) uses for
`GetProfile` and `ListAvailableModels` by default, observed with NO real credential and with the request not completing.
Literal command for the owner, on a machine with kiro-cli 3.3.0 and no network egress to the service:

```
# dummy key, DNS observed only; the connection is expected to fail
sudo tcpdump -ni any -l 'udp port 53' > /tmp/dns.txt & TP=$!
KIRO_API_KEY=aps_$(openssl rand -hex 32) HOME=$(mktemp -d) kiro-cli chat --no-interactive --trust-tools= hi
sudo kill $TP; grep -Eo '[a-z0-9.-]*(kiro\.dev|amazonaws\.com)' /tmp/dns.txt | sort -u
```
Run it without outbound access to the service (for example with the network cable/Wi-Fi to the internet down but
resolver reachable, or `unshare -n` plus a local DNS logger) if the owner does not want even a dummy-key request to
leave. Then set `host` in the `kiro-cps` route, and check `pass_headers` (`tokentype`) and `error_shape = "aws"`
against that host's first response.
89 changes: 89 additions & 0 deletions .agents/tasks/phase1-verify/item6-evidence/after.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
## namespaces
default Active
kube-node-lease Active
kube-public Active
kube-system Active
openab Active
## pods all
kube-system coredns-5f5694d56b-rtsfq Running
kube-system helm-install-traefik-crd-jjbhl Completed
kube-system local-path-provisioner-58d557dc48-b5pxn Running
kube-system metrics-server-786d997795-5c85v Running
kube-system svclb-traefik-17fe3e0c-4wkdf Running
kube-system traefik-78db6cfbb5-tj8ln Running
## images (ctr k8s.io)
docker.io/rancher/klipper-helm:v0.11.1-build20260615
docker.io/rancher/klipper-helm:v0.9.14-build20260210
docker.io/rancher/klipper-helm@sha256:2d6c98a07cae39f1bd3bc8405b1b26aff3291b934569cd8dc0c974ba0f356dba
docker.io/rancher/klipper-helm@sha256:939b8f2fbb793483a8716464f8c7de9726dfb50393ad02b99b652004b5503ee6
docker.io/rancher/klipper-lb:v0.4.17
docker.io/rancher/klipper-lb@sha256:910944bb0bd94f060a82a56ca1ea1c577d3e49b3473a093a47a985f32e92d94a
docker.io/rancher/local-path-provisioner:v0.0.34
docker.io/rancher/local-path-provisioner:v0.0.36
docker.io/rancher/local-path-provisioner@sha256:1eba82e9c386038b4af6d69cca7519fac738c28c42735ed48ce70c882ad0d80f
docker.io/rancher/local-path-provisioner@sha256:6ff68ebe98bc623b45ad22c28be84f8a08214982710f3247d5862e9bccce73ef
docker.io/rancher/mirrored-coredns-coredns:1.14.1
docker.io/rancher/mirrored-coredns-coredns:1.14.4
docker.io/rancher/mirrored-coredns-coredns@sha256:3e98f280fd601b37411c5fb7075fd9f337833c480f1644970b727ae0af067782
docker.io/rancher/mirrored-coredns-coredns@sha256:82b57287b29beb757c740dbbe68f2d4723da94715b563fffad5c13438b71b14a
docker.io/rancher/mirrored-library-busybox:1.37.0
docker.io/rancher/mirrored-library-busybox@sha256:101b4afd76732482eff9b95cae5f94bcf295e521fbec4e01b69c5421f3f3f3e5
docker.io/rancher/mirrored-library-traefik:3.6.7
docker.io/rancher/mirrored-library-traefik@sha256:2c5e029ee3638d3788b4ca7c8ef454baa8f924b91b190b3fd2742bee721ebeea
docker.io/rancher/mirrored-metrics-server:v0.8.1
docker.io/rancher/mirrored-metrics-server@sha256:b2d2efaf5ac3b366ed0f839d2412a2c4279d4fc2a2a733f12c52133faed36c41
docker.io/rancher/mirrored-pause:3.6
docker.io/rancher/mirrored-pause@sha256:74c4244427b7312c5b901fe0f67cbc53683d06f4f24c6faee65d4182bf0fa893
ghcr.io/actions/actions-runner:latest
ghcr.io/actions/actions-runner@sha256:b6614fce332517f74d0a76e7c762fb08e4f2ff13dcf333183397c8a5725b6e8e
ghcr.io/actions/gha-runner-scale-set-controller:0.14.1
ghcr.io/actions/gha-runner-scale-set-controller@sha256:4f589b93e55a0e20c12ff51c35249877c15429bbfe6a2c531072af18dfce7d00
ghcr.io/openabdev/openab:0.9.0-beta.9-kiro
ghcr.io/openabdev/openab@sha256:73d540a413b8c88912b8f02c60db6b06cef8477cb65ba4ff272e8bf6859f732d
sha256:04e981eac7497e8fa8a528b1aaf3692624c823d343c95a388f3d7ba5adb46fc5
sha256:171247bbf2d7096d7f4ef2d64b3d65275886540d8fbf919b27f559d202c1960d
sha256:2d7e26c3f9329b4c215a021319dd53cb58addd2302295b4efa5f6e10b163d090
sha256:2e2c8cbfb79b88dca88ac4c0ac2b30f1c359d878739a2e5767622ac18bd78e88
sha256:2ec68f0e51bbf583fbb40ef80cd9e38cb86b2d02266ed12763bdbdc8091cd908
sha256:6270bb605e12e581514ada5fd5b3216f727db55dc87d5889c790e4c760683fee
sha256:63e7900ff35e22dd52d9061c75090689639287e4db230ad9900898b8e9e7774b
sha256:68650012ac8cba32ae61415d95424dbae1a4f6f069fb67ea08dec09fc2cd8777
sha256:7a5975104f24bbd7e5adfa3c99561994bcad1cfe4c3a69dd76e732930cb51a3f
sha256:7c8de0ae9a92bf9ed1a8ca21bf40fc4e45a206bf74f5654f903a142119589534
sha256:9254fb81aa65831cce153dfdf883805d40157b78ccec0c10fd82c499113fd1de
sha256:acccaf97bcb578daff51c6246e47babbca6e998e4225aa230544684cf147d6c1
sha256:e0e34c2c9f8ab01e31b463de1d40cdd12d9dd1691900213adedf776deac7bce5
sha256:e76b3f3568b7f440dfd477c1d6de638d7769ba34c93eef999dee418eb72bc0e3
sha256:eaa1212a2b4569c811bfa0ad5708428703ad3120a6dbae3b4353ec3cb36f36d2
sha256:ff7a7936e9306ce4a789cf5523922da5e585dc1216e400efb3b6872a5137ee6b
## cargo bin
cargo
cargo-clippy
cargo-fmt
cargo-miri
clippy-driver
rls
rust-analyzer
rust-gdb
rust-gdbgui
rust-lldb
rustc
rustdoc
rustfmt
rustup
## local bin
kcli
kiro-cli
kiro-cli-chat
kiro-cli-term
## crictl containers
13
## host iptables OUTPUT md5
6aa9113fa8015deb4c7a93b5c2f03524 -
## iptables ap-item6 refs
0
## ps ap procs
2
## df
98G 63G 31G
(sections listening, tailscale, home and /tmp listings omitted from this committed copy: tailnet and host details; compared locally, identical apart from the two artefacts in item6-cleanup.md)
89 changes: 89 additions & 0 deletions .agents/tasks/phase1-verify/item6-evidence/before.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
## namespaces
default Active
kube-node-lease Active
kube-public Active
kube-system Active
openab Active
## pods all
kube-system coredns-5f5694d56b-rtsfq Running
kube-system helm-install-traefik-crd-jjbhl Completed
kube-system local-path-provisioner-58d557dc48-b5pxn Running
kube-system metrics-server-786d997795-5c85v Running
kube-system svclb-traefik-17fe3e0c-4wkdf Running
kube-system traefik-78db6cfbb5-tj8ln Running
## images (ctr k8s.io)
docker.io/rancher/klipper-helm:v0.11.1-build20260615
docker.io/rancher/klipper-helm:v0.9.14-build20260210
docker.io/rancher/klipper-helm@sha256:2d6c98a07cae39f1bd3bc8405b1b26aff3291b934569cd8dc0c974ba0f356dba
docker.io/rancher/klipper-helm@sha256:939b8f2fbb793483a8716464f8c7de9726dfb50393ad02b99b652004b5503ee6
docker.io/rancher/klipper-lb:v0.4.17
docker.io/rancher/klipper-lb@sha256:910944bb0bd94f060a82a56ca1ea1c577d3e49b3473a093a47a985f32e92d94a
docker.io/rancher/local-path-provisioner:v0.0.34
docker.io/rancher/local-path-provisioner:v0.0.36
docker.io/rancher/local-path-provisioner@sha256:1eba82e9c386038b4af6d69cca7519fac738c28c42735ed48ce70c882ad0d80f
docker.io/rancher/local-path-provisioner@sha256:6ff68ebe98bc623b45ad22c28be84f8a08214982710f3247d5862e9bccce73ef
docker.io/rancher/mirrored-coredns-coredns:1.14.1
docker.io/rancher/mirrored-coredns-coredns:1.14.4
docker.io/rancher/mirrored-coredns-coredns@sha256:3e98f280fd601b37411c5fb7075fd9f337833c480f1644970b727ae0af067782
docker.io/rancher/mirrored-coredns-coredns@sha256:82b57287b29beb757c740dbbe68f2d4723da94715b563fffad5c13438b71b14a
docker.io/rancher/mirrored-library-busybox:1.37.0
docker.io/rancher/mirrored-library-busybox@sha256:101b4afd76732482eff9b95cae5f94bcf295e521fbec4e01b69c5421f3f3f3e5
docker.io/rancher/mirrored-library-traefik:3.6.7
docker.io/rancher/mirrored-library-traefik@sha256:2c5e029ee3638d3788b4ca7c8ef454baa8f924b91b190b3fd2742bee721ebeea
docker.io/rancher/mirrored-metrics-server:v0.8.1
docker.io/rancher/mirrored-metrics-server@sha256:b2d2efaf5ac3b366ed0f839d2412a2c4279d4fc2a2a733f12c52133faed36c41
docker.io/rancher/mirrored-pause:3.6
docker.io/rancher/mirrored-pause@sha256:74c4244427b7312c5b901fe0f67cbc53683d06f4f24c6faee65d4182bf0fa893
ghcr.io/actions/actions-runner:latest
ghcr.io/actions/actions-runner@sha256:b6614fce332517f74d0a76e7c762fb08e4f2ff13dcf333183397c8a5725b6e8e
ghcr.io/actions/gha-runner-scale-set-controller:0.14.1
ghcr.io/actions/gha-runner-scale-set-controller@sha256:4f589b93e55a0e20c12ff51c35249877c15429bbfe6a2c531072af18dfce7d00
ghcr.io/openabdev/openab:0.9.0-beta.9-kiro
ghcr.io/openabdev/openab@sha256:73d540a413b8c88912b8f02c60db6b06cef8477cb65ba4ff272e8bf6859f732d
sha256:04e981eac7497e8fa8a528b1aaf3692624c823d343c95a388f3d7ba5adb46fc5
sha256:171247bbf2d7096d7f4ef2d64b3d65275886540d8fbf919b27f559d202c1960d
sha256:2d7e26c3f9329b4c215a021319dd53cb58addd2302295b4efa5f6e10b163d090
sha256:2e2c8cbfb79b88dca88ac4c0ac2b30f1c359d878739a2e5767622ac18bd78e88
sha256:2ec68f0e51bbf583fbb40ef80cd9e38cb86b2d02266ed12763bdbdc8091cd908
sha256:6270bb605e12e581514ada5fd5b3216f727db55dc87d5889c790e4c760683fee
sha256:63e7900ff35e22dd52d9061c75090689639287e4db230ad9900898b8e9e7774b
sha256:68650012ac8cba32ae61415d95424dbae1a4f6f069fb67ea08dec09fc2cd8777
sha256:7a5975104f24bbd7e5adfa3c99561994bcad1cfe4c3a69dd76e732930cb51a3f
sha256:7c8de0ae9a92bf9ed1a8ca21bf40fc4e45a206bf74f5654f903a142119589534
sha256:9254fb81aa65831cce153dfdf883805d40157b78ccec0c10fd82c499113fd1de
sha256:acccaf97bcb578daff51c6246e47babbca6e998e4225aa230544684cf147d6c1
sha256:e0e34c2c9f8ab01e31b463de1d40cdd12d9dd1691900213adedf776deac7bce5
sha256:e76b3f3568b7f440dfd477c1d6de638d7769ba34c93eef999dee418eb72bc0e3
sha256:eaa1212a2b4569c811bfa0ad5708428703ad3120a6dbae3b4353ec3cb36f36d2
sha256:ff7a7936e9306ce4a789cf5523922da5e585dc1216e400efb3b6872a5137ee6b
## cargo bin
cargo
cargo-clippy
cargo-fmt
cargo-miri
clippy-driver
rls
rust-analyzer
rust-gdb
rust-gdbgui
rust-lldb
rustc
rustdoc
rustfmt
rustup
## local bin
kcli
kiro-cli
kiro-cli-chat
kiro-cli-term
## crictl containers
13
## host iptables OUTPUT md5
6aa9113fa8015deb4c7a93b5c2f03524 -
## iptables ap-item6 refs
0
## ps ap procs
1
## df
98G 63G 31G
(sections listening, tailscale, home and /tmp listings omitted from this committed copy: tailnet and host details; compared locally, identical apart from the two artefacts in item6-cleanup.md)
27 changes: 27 additions & 0 deletions .agents/tasks/phase1-verify/item6-evidence/hello-post.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### timeline from the proxy's own audit (ms, proxy clock)
request audit: {'route': '-', 'decision': 'deny', 'code': 'host_rejected', 'session': '-', 'status': 400}
request audit: {'route': 'kiro-krs', 'decision': 'deny', 'code': 'surrogate_revoked', 'session': '-', 'status': 403}
request audit: {'route': 'kiro-krs', 'decision': 'deny', 'code': 'upstream_unavailable', 'session': 'sess-1794856959', 'status': 502}
hello 201 times: [1794856771671, 1794856959918]
renew times: [1794856801673, 1794856831675, 1794856861678]
last renew before the new winner: 1794856861678
lease 90s lapses at: 1794856951678
409s after last renew: 54, last 409 at 1794856985980 (= last+124.3s)
first 409 after last renew... early hellos won before lapse: []
winner 201 at 1794856959918 = last renew + 98.2s
other plane event: register ok 201 1794856771671
other plane event: register ok 201 1794856959919
### old surrogate through the proxy after the lapse (as UID 1000 in agent)
HTTP/1.1 403 Forbidden
x-auth-proxy-error: surrogate_revoked
content-type: application/x-amz-json-1.0
x-amzn-errortype: AccessDeniedException
content-length: 96
date: Mon, 16 Nov 2026 19:23:06 GMT

{"__type":"AccessDeniedException","message":"auth-proxy: surrogate revoked (surrogate_revoked)"}### new session's surrogate works? (live, goes to the stub: a 400 from the stub means admitted)
new surrogate status=502
hello 409 between last renew and the winner: 27 ; first at +0.2s, last at +83.2s after last renew
hello 201 in that window: 0
max gap between consecutive 409s (ms): 15002
agent=1 ap-egress=0 proxy=0
Loading
Loading