Skip to content

Bound code swap to ten-task services and remove admission - #228

Merged
matuscongrady merged 20 commits into
mainfrom
code-swap/phase3-capacity
Oct 20, 2026
Merged

matuscongrady merged 20 commits into
mainfrom
code-swap/phase3-capacity

Conversation

@matuscongrady

@matuscongrady matuscongrady commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Code swap now uses normal images when a service can exceed ten tasks, including its autoscaling maximum and deployment surge. The CLI checks before opt-in and on each deploy, accounts for service/scaling overrides, and prints one reason when it chooses images. A static 500-poller stack budget includes one draining generation. The regional model estimates $7.44/month for ten tasks under the documented envelope.

This removes the capacity Lambda, stream, admission grants, slots, reclamation and 500/501 fixtures after the owner narrowed the feature to small dev/staging fleets. Readiness, task-stop budgets, ECS registration, narrowed ptrace and the #214 waiter remain. Fresh identity and fleet checks still run; independent reads overlap with metadata/image work.

Live verification passed: ten-task scale-out and replacement loaded committed code before readiness, with zero errors across 2,050 requests. Raising the maximum selected an ordinary image, printed the cap reason and served the new code. The 20-edit regression passed at p50 4.768 s, p95 11.905 s and max 15.737 s, with zero failures across 7,811 timed and 2,252 continuous requests, no fallback/replacement and qualified AWS clock fits. Earlier misses and fixture failures remain in the evidence ledger.

Validation: 19 focused tests, pinned Go race/vet/build, built runtime smoke and integrated checks passed. The actual template has zero cfn-lint errors and nine existing warnings. All seven current runs are cleaned up, with independent checks confirming stacks, tables, buckets, ECR, log groups, Lambdas and every exact ECS revision are absent. This is source-only qualification; protected customer activation remains in later phases.

Stack order: #226 → #227 → #228. The Console launch-note companion console-app#90 must land before #228. Its CI job could not start because GitHub reports an account billing/spending-limit block; local integrated and documentation checks passed.

🤖 Generated with Claude Code

matuscongrady and others added 10 commits October 19, 2026 17:18
The integrated gate observed a backward WSL wall-clock adjustment during the elapsed-time assertion. Keep the same backoff threshold using performance.now().

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Remove the allocator function, stream, slots, grants, reclamation and 500/501 pressure fixtures. Preserve checked startup, task-stop budgets, ECS registration and candidate-only tracing. Qualify the cap with ten-task lifecycle and ordinary image fallback fixtures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@matuscongrady matuscongrady changed the title Add benchmark capacity admission and phase 3 live qualification Bound code swap to ten-task services and remove admission Oct 19, 2026
matuscongrady and others added 6 commits October 19, 2026 21:50
Check live surge during the existing fleet preflights, and overlap RoleId, release-head and local bundle reads. All prerequisites still succeed before prepare, and activation still waits for the pushed image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Give the benchmark app its own default port, support a focused over-cap image transition, and include CLI status reads in the regional cost envelope.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep the fresh IAM lookup and identity checks, but overlap them with independent metadata reads instead of delaying image construction.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refuse unknown scheduled/controller bounds and count overridden autoscaling maxima before installing or preparing a supervisor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
matuscongrady and others added 2 commits October 19, 2026 22:33
Co-Authored-By: Claude Opus 5.5 <[email protected]>

# Conflicts:
#	scripts/workspace/test-registry.ts
@matuscongrady
matuscongrady marked this pull request as ready for review October 19, 2026 20:59
@matuscongrady
matuscongrady changed the base branch from code-swap/phase3-runtime to main October 19, 2026 21:12
@matuscongrady
matuscongrady merged commit 20f28fe into main Oct 20, 2026
2 checks passed
@matuscongrady
matuscongrady deleted the code-swap/phase3-capacity branch October 20, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant