Repository navigation
feat(cli): verify current managed deployment acceptance - #4492
Conversation
|
REQUEST CHANGES — independent API-only post-merge review (C10 / TALE-1133). I did not implement this change. Reviewed head
Repair decision: follow-up PR required; no immediate revert recommended because this is an additive, opt-in command and no rollout/tag is changed. Do not use its current success as exact-origin serving/adoption proof until finding 1 is independently resolved. CI at merge: YES, all seven head aggregators were SUCCESS before 16:01:52Z, bound to the exact head. No red/missing head aggregator; no failure triage, rerun or cancellation required.
Merge-commit snapshot: 49 checks, with queued/running work; Commitlint aggregator skipped on the main event and the remaining terminal aggregators not yet materialized in this snapshot. No observed red check. These later jobs do not alter the head-at-merge result. Fleet owns subsequent ordinary-main CI reconciliation; this review did not poll or claim pending work passed. Part B, source of truth and positive coverage: preparation reads committed migration filenames at the runtime revision, using the backend's shared SQL/numbered-TS predicate. Acceptance verifies the frozen bundle's file hashes and exact CLI/orchestrator pins; requires the matching private Ready receipt and no pending deployment; reuses runtime custody, mount/environment/file identity, architecture, network, complete topology/health and immutable repository-digest checks; checks Tale OCI source/version and running image IDs; reads all three complete migration ledgers through fixed read-only transactions; then rereads runtime identities/restarts, ledgers and Ready bytes. Missing, extra, duplicate, malformed, oversized or mismatched evidence refuses; legacy bundles stay deployable but cannot be accepted without inventory. Ready age alone is not a current PASS: current observations are required, and receipts remain point-in-time evidence, not a future freshness guarantee. No version-only release/source tag is treated as served version. The public-origin binding limitation is finding 1. Each external process is limited to 15 seconds / 1 MiB, aggregate capture to 16 MiB; health uses an abort signal up to 10 seconds / 64 KiB, refuses redirects and wrong/malformed responses, and omits credentials. Subprocess failures are silenced and reduced to fixed messages; the typed receipt excludes raw Docker output, environment and tokens. SQL is fixed, uses local sockets and existing container credentials, bounded read-only statements, and emits ledger identities only. Unexpected errors pass through the existing operational redaction path. The total-time qualification is finding 2. Regression / hosted evidence: inspected acceptance drift/legacy/pending/lock/OCI/image/race tests, malformed ledger readers, source inventory tests (including dirty-source exclusion and SQL/TS parity), CLI inherited-option/help tests and actual subprocess timeout/byte/descendant-cleanup fixtures. These protect new behavior and would fail if it were absent or refusals removed; they do not prove finding 1 or preparation cancellation. Backend integration job Part A / release consistency: help names a read command, requires expected stable version and exact source pins, uses standard JSON/exit handling and rejects inherited deployment effects; self-version alignment exemption follows other managed commands. README and EN/DE/FR docs describe matching inputs, legacy refusal and repeat-for-freshness. Their exact acceptance and 120-second claims need the fixes above. CI scope and candidate descriptor include the mandatory real ledger-reader step; Per-topic dispositions (source review unless stated otherwise):
Native task |
A completed Ready receipt records a deployment, but does not prove what is serving now or whether its migration ledgers still match the released source. Add
tale --json deploy acceptfor an exact managed bundle, CLI/orchestrator commits and expected stable version. It verifies current runtime custody, immutable images and OCI version/source, canonical-origin health, and all three complete migration ledgers under the existing deployment lock, then rereads identities and Ready before returning one typed receipt.Preparation records the exact source-derived SQL and TypeScript migration inventory in the verified bundle. Existing bundles remain deployable; acceptance refuses bundles without that inventory. Reads have explicit process, byte and whole-operation bounds, with owned process-group cleanup. The command does not apply configuration, migrate data or resolve deployment secrets.
Validation:
bun run check: 49/49 tasks; CLI 2,491 passed, 29 existing skips, no failures. SAST, Knip, manual and type checks passed.The source-contract descriptor includes the added mandatory integration step. Ops must review its new canonical digest before a future release can auto-adopt it. The separate Ops receipt wrapper/cohort consumes this maintained CLI capability; this PR does not activate a rollout or change any release tag.