docs(cloud): document governance rollout
Tests / Test passed: 665

This commit is contained in:
2026-07-13 23:22:53 +08:00
parent 5b64efab53
commit b613a315ff
4 changed files with 87 additions and 7 deletions
@@ -12,16 +12,16 @@
## 2. Governance domain, persistence, and migration
- [ ] 2.1 Define target-selector, user-submission-policy, Host-governance-
- [x] 2.1 Define target-selector, user-submission-policy, Host-governance-
policy, token-usage-event, and token-reservation domain models with
non-secret representations and revision semantics.
- [ ] 2.2 Extend the Cloud repository port with transactional CRUD/query
- [x] 2.2 Extend the Cloud repository port with transactional CRUD/query
operations for policies, active Host capacity, budget reservations,
settlement, expiry cleanup, and bounded usage summaries/events.
- [ ] 2.3 Add SQLAlchemy rows, indexes, conversion helpers, and concurrency-
- [x] 2.3 Add SQLAlchemy rows, indexes, conversion helpers, and concurrency-
safe PostgreSQL/SQLite implementations for governance policies, usage
events, reservations, and safe policy audits.
- [ ] 2.4 Add an Alembic forward/downgrade revision that preserves existing
- [x] 2.4 Add an Alembic forward/downgrade revision that preserves existing
users, Hosts, devices, tasks, and attempts; advance schema readiness
checks to the new head.
- [ ] 2.5 Add repository and migration tests for policy revisions, null versus
@@ -59,7 +59,7 @@
credentials and validate any named local Device ownership.
- [x] 4.4 Enforce the Host policy's self-submission and active-task limits in
the Cloud service/scheduler, not only in Host-local code.
- [ ] 4.5 Add Cloud API and Host Agent tests for revision convergence,
- [x] 4.5 Add Cloud API and Host Agent tests for revision convergence,
unchanged-policy replies, self-targeted task creation, foreign target
rejection, disabled self-submission, and outbound-only compatibility.
@@ -98,7 +98,7 @@
## 7. Documentation, verification, and rollout
- [ ] 7.1 Update deployment and Console documentation with the dependency
- [x] 7.1 Update deployment and Console documentation with the dependency
order, migration/rollback sequence, policy semantics, Cloud transport
prerequisite, budget reservation behavior, direct-host limitation, and
safe administrator operations.