Commit Graph

550 Commits

Author SHA1 Message Date
joshsiv-mulga abf734ef18 docs: qualify the migrate split and record admin and Viperblock findings
The migrate row is a split, not an exact ADR-0001 map row, and needs a map
clarification. Correct the stale admin consumers, record the operator-only
admin files as movable, the vbwire prerequisite for the Viperblock adapter
and the capability decision encryption.go needs.
2026-10-09 13:08:16 +10:00
joshsiv-mulga 8bf162fb73 refactor: move the default-VPC subject into contracts/ec2/v1
utils.SubjectEnsureDefaultVpc becomes ec2v1.EnsureDefaultVpcSubject, the
request/reply route between gateway account creation and the daemon.
Only the subject moves; the request and reply bodies are still anonymous
structs on each side and are recorded as such in the contract README.
The layering freeze now allows two utils files.
2026-10-09 13:07:40 +10:00
joshsiv-mulga 382699c563 refactor: move the layering test to module-root architecture/
The ADR-0001 layering ratchet is repository governance tooling, not
Spinifex product code, so it sits beside tests/ rather than under the
spinifex/ product tree. make test, test-cover and test-race now include
./architecture/..., and the graph walk excludes architecture/.
2026-10-09 12:36:47 +10:00
joshsiv-mulga 66b37e7b5d docs: record test-package-check and nilaway as unverified gates 2026-10-09 12:29:56 +10:00
joshsiv-mulga c3c8e28f86 refactor: drop the legacy handlers_ecr import alias
Import domains/ecr under its package name, or as ecrdomain where the
file also imports the AWS SDK ecr package, matching acmdomain. Also fix
a stale daemon file reference in the integration ECR daemon comment.
2026-10-09 12:17:01 +10:00
joshsiv-mulga 5292bd22c9 test: enforce ADR-0001 layering with a blocking ratchet
Add spinifex/architecture/layering, a test-only package that parses the
module's import graph, maps every production package to an ADR-0001
layer and checks each dependency rule as its own subtest. Existing
violations are allow-listed against their recorded debt; a new forbidden
edge, an unmapped package, a stale allowlist entry or a new package
under a frozen legacy root fails local preflight and CI.

Record the nine edges the test found missing from the migration record
(quota -> EC2 instance types, STS/Ochre/ELBv2 -> IAM, ELBv2
cross-domain, installer UI -> admin), name the importers of the utils
residuals and gateway/ec2_idempotency.go, and correct the handlers/iam
consumer list.
2026-10-09 12:01:28 +10:00
joshsiv-mulga 903c92e260 docs: record migrate move to operator/upgrade 2026-10-09 11:22:50 +10:00
joshsiv-mulga 8dacfc157c docs: reconcile package-boundary record for ADR-0001 close-out
Add the missing slice rows (the commits that dissolved spinifex/types, the
ECR repository projection, the stale-path fix and the quota move), correct
stale entries, record the dependency-rule breaks found in the import graph
with removal conditions, add the close-out table of remaining legacy paths
with their decided target owners, recount the mulga-side follow-ups, and
fix stale old-path references in docs and comments.
2026-10-09 11:15:08 +10:00
joshsiv-mulga 0fc4d449bf docs: record EKS add-on activation review decisions 2026-10-09 10:54:26 +10:00
joshsiv-mulga 2da6ea452e docs: add EKS add-on release membership and activation case study 2026-10-09 10:44:17 +10:00
joshsiv-mulga 25b3efdec4 docs: record EKS internal-route and role-ARN security corrections 2026-10-09 10:27:04 +10:00
joshsiv-mulga 7eedc555d7 docs: apply review decisions and ADR-0006 to EKS add-on v2 design 2026-10-09 09:30:43 +10:00
joshsiv-mulga 84c8c754dd docs: qualify historical architecture references 2026-10-09 08:59:41 +10:00
joshsiv-mulga 5582054bc5 docs: draft EKS add-on v2 guest contract design for review 2026-10-09 08:45:07 +10:00
joshsiv-mulga ce359fcefb docs: add EKS add-on executor, bundle, v1 compatibility and release inventories 2026-10-09 08:37:42 +10:00
joshsiv-mulga 3a55e2ee19 docs: apply review decisions to EKS add-on lifecycle design 2026-10-09 07:48:54 +10:00
joshsiv-mulga 6cfb01b47d docs: draft EKS add-on lifecycle correction design for review 2026-10-08 23:12:30 +10:00
joshsiv-mulga e274814b46 docs: update EKS add-on inventory and remaining edges 2026-10-08 23:12:30 +10:00
joshsiv-mulga 18794e0173 docs: record EKS add-on wire contract extraction 2026-10-08 23:02:20 +10:00
joshsiv-mulga 692d929b4a refactor: extract EKS add-on guest wire contract
Move the add-on status subject, delivery phase, status report, staged
manifest and internal add-ons response into contracts/eks/v1 and use it
from the handler, gateway and gatewayfetch, replacing the agent's
duplicate. Wire bytes are unchanged, including the internal add-ons body
that the SDK renderer emits with Go field names; compatibility tests pin
the JSON, the guest printf form and the TSV.
2026-10-08 23:02:20 +10:00
joshsiv-mulga 3e1abc027e docs: record EKS add-on owner extraction 2026-10-08 22:54:39 +10:00
joshsiv-mulga d899630542 refactor: extract EKS add-on owner
Move the add-on catalogue, record and manifest keys, CAS, status
transitions and staging into domains/eks/addon behind an Owner that is
the sole writer. The handler keeps AWS validation, error mapping and
projection; the cluster reconciler delegates reports through the narrow
addonReports interface; node groups call EnsureGPUDevicePlugin. Stored
keys, JSON shape, wire types and lifecycle behaviour are unchanged.
2026-10-08 22:54:27 +10:00
joshsiv-mulga 15a05d6c2c docs: record EKS add-on PassRole check 2026-10-08 22:40:30 +10:00
joshsiv-mulga 675341b561 docs: record EKS add-on lifecycle contract 2026-10-08 22:33:28 +10:00
joshsiv-mulga d804f5ac30 docs: record RDS DB parameter group owner extraction 2026-10-08 21:51:43 +10:00
joshsiv-mulga d9c3f3ca6f refactor: extract RDS DB parameter group owner
Move the parameter group and override records, keys and listing into
domains/rds/parametergroup behind an Owner. Delete asks an owner-declared
Dependants interface; instance-side resolution reads through its own
parameterGroupValues interface. SetOverrides refuses an unknown group so
no override key is written without its group. Stored shape, keys, public
errors and propagation are unchanged.
2026-10-08 21:51:08 +10:00
joshsiv-mulga 5548a7039f docs: record RDS DB parameter group lifecycle contract 2026-10-08 20:43:59 +10:00
joshsiv-mulga 15d11aff08 docs: record RDS engine catalogue owner move 2026-10-08 17:33:30 +10:00
joshsiv-mulga 4b55247819 refactor: extract RDS engine catalogue into domains/rds/engine
Move engine identity and validation, the per-engine parameter catalogues,
effective-parameter resolution, db.* instance classes and engine/orderable
selection into an engine package. Behaviour, error codes and ordering are
unchanged.

The package imports no EC2 package: instance-class memory comes from an
immutable Sizing value built from an engine-declared InstanceTypes
interface, backed by the fixed instance-type table in handlers/rds.
Effective parameters leave as an engine-owned Setting, converted to
Parameter in handlers/rds. AWS output building, paging, apply-method
mapping, storage limits and the gateway runnable check stay in the
adapter path.

The RDS agent declares its own EngineCatalog interface and types and
receives an engine-backed implementation from cmd/rds-agent, so agent
code does not import the catalogue. Cross-engine tests use the two real
engines instead of a registered fake.
2026-10-08 17:33:11 +10:00
joshsiv-mulga 292803bb1c docs: record RDS engine catalogue boundary and evidence 2026-10-08 14:43:46 +10:00
joshsiv-mulga 2b877b01a0 docs: record EKS access entry owner extraction 2026-10-08 12:34:24 +10:00
joshsiv-mulga 68ee6f620c refactor: extract EKS access entry owner into domains/eks/access
Move the access entry record, associated policy and scope types, keys,
PrincipalARNHash, the policy catalogue and group mapping into a resource
owner package. Stored JSON field names and KV keys are unchanged.

Owner is the only writer: Create, SeedCreatorAdmin, Update, Associate,
Disassociate and Delete carry the existing logic verbatim, and the put,
compare-and-set and delete primitives are private. The handler keeps AWS
validation, the cluster existence check, error mapping and projection.
Token review still reads records through the exported Get, and the cluster
prefix purge still sweeps entry keys.

List handlers/eks and the new package under spinifex_daemon so EKS-only
changes select the EKS suites.
2026-10-08 12:33:46 +10:00
joshsiv-mulga 2dec7b0de7 docs: record EKS access entry lifecycle contract 2026-10-08 11:53:52 +10:00
joshsiv-mulga 37bb781c4c docs: record ECS task definition owner extraction 2026-10-08 11:08:48 +10:00
joshsiv-mulga 544b0c6a01 refactor: extract ECS task definition owner into domains/ecs/taskdefinition
Move the task definition record, container types, keys, reference parsing,
ARN helpers and the register/deregister/resolve/list logic into a resource
owner package. Stored JSON field names and KV keys are unchanged, and
revision allocation keeps its existing non-atomic read-then-write.

The owner declares its own PortMapping and SystemControl persisted types so
it no longer depends on handlers/ecs/bus; the handler translates them onto
the assign payload. Task and service launches reach task definitions only
through a launch-side taskDefinitionResolver. AWS conversion, the guest
projection and tags stay in handlers/ecs, and gateway authz only switches to
the moved reference/ARN helpers.

List handlers/ecs and the new package under spinifex_daemon so ECS-only
changes select e2e-ecs.
2026-10-08 11:07:54 +10:00
joshsiv-mulga 194deebf7b docs: record ECS task definition lifecycle contract 2026-10-08 10:36:28 +10:00
joshsiv-mulga c3b1aec23c docs: correct RDS subnet group tagging debt and conformance scope 2026-10-08 10:27:47 +10:00
joshsiv-mulga 11fab67247 docs: record RDS DB subnet group owner extraction 2026-10-08 10:03:17 +10:00
joshsiv-mulga 17dc29251d refactor: extract the RDS DB subnet group lifecycle owner
domains/rds/subnetgroup owns the db-subnet-groups/{name} record, member
subnet validation and the delete in-use guard. handlers/rds keeps AWS
validation, projection and paging and binds two consumer-owned
capabilities: the owner's Dependants (instances naming the group) and the
instance side's subnetGroupPlacement. Stored shape and behaviour are
unchanged.
2026-10-08 10:03:01 +10:00
joshsiv-mulga 56384f9046 docs: record RDS DB subnet group lifecycle contract 2026-10-08 09:46:12 +10:00
joshsiv-mulga 9e77181f21 Merge origin/dev into refactor/spinifex-package-boundaries 2026-10-08 09:28:43 +10:00
joshsiv-mulga 8b6840adb0 docs: record EKS control-plane secrets persisted in the cluster record 2026-10-08 08:51:51 +10:00
joshsiv-mulga bc1d3fea51 docs: record ECS, EKS and RDS source inventory and first-resource ranking 2026-10-08 08:44:51 +10:00
joshsiv-mulga 6c50349bd8 docs: record ACM registration 2026-10-08 00:42:00 +10:00
joshsiv-mulga 229b0dc9c3 docs: record ingress service selection move 2026-10-07 23:43:43 +10:00
joshsiv-mulga d70a5a43f7 docs: record error envelope extraction 2026-10-07 23:27:21 +10:00
joshsiv-mulga 88c7397f45 docs: record ingress pipeline deferral 2026-10-07 23:02:45 +10:00
joshsiv-mulga e6622c51d2 docs: record ECR control-plane registration 2026-10-07 22:55:20 +10:00
joshsiv-mulga 6c48ab6b78 refactor: register the ECR control plane from its domain
domains/ecr/awsapi now registers the "ecr" AWS JSON 1.1 surface with the
ingress dispatch registry: action resolution, resource scope, authorisation
through the invocation, the composed capabilities and the success writer all
live with the domain. The awsgw role is the only serving composition point;
the gateway no longer imports the ECR API package and ECR leaves the legacy
service table, JSON error table and dispatch switch. The OCI /v2 route is
unchanged.

Operation coverage reads ECR's declared inventory, which the registration
uses verbatim; coverage.json is byte-identical.
2026-10-07 22:55:00 +10:00
joshsiv-mulga f1cd7c5fe8 docs: record ingress dispatch registry consumption 2026-10-07 22:35:33 +10:00