feat(authority): add delegated control-plane grants
CI / test (push) Failing after 37s

This commit is contained in:
m
2026-08-31 11:33:48 +03:00
parent cb50b7357b
commit 1c05619899
21 changed files with 865 additions and 10 deletions
@@ -0,0 +1,40 @@
# GEN2-AUTHORITY-001 — protected service credential prerequisite
Date: 2026-08-31
The existing `assistant_core_secrets` volume was inspected by filename only.
It contains the established Creator, Epistemics, Interaction, Local gateway,
SELF and Work artifacts, but no `control_plane_service_token` artifact.
No secret value was read, copied, printed or inferred. The implementation is
fail-closed: Core and `commit-runtime` remain healthy while the delegated path
returns unavailable/denied until the external secret control plane materializes
the credential reference `credential://domovoy/control-plane/service-token/v1`
at `/run/secrets/control_plane_service_token` for those two trusted runtimes.
This is a `BLOCKED_BY_MISSING_CAPABILITY` for live non-interactive acceptance,
not a reason to use a Creator session, password, browser cookie, SQL update, or
broader service authority.
## Implemented and verified locally
The bounded implementation is present on branch
`gen2/authority-001-delegated-control-plane`. It keeps Identity as the service
identity owner, Authority as the durable grant/revocation/audit owner, and
Capability as the cognitive lifecycle owner. Core is an Authority-runtime
client; the Authority endpoint is served by the existing Commit runtime that
already owns the Authority repository in the V2 runtime topology.
On 2026-08-31 the following checks completed successfully without secret
values:
- targeted `go test` for Authority contracts/domain, secret resolver, Core,
Commit runtime, and the Authority PostgreSQL adapter;
- targeted `go vet` for the same packages;
- production and candidate Compose static validation;
- task preflight, diff scope, independent governance, and architecture checks;
- `git diff --check`.
The only missing external capability is protected materialization of
`control_plane_service_token` for Core and Commit runtime. No deployment or
privileged lifecycle request was attempted while it is absent.