Skip to content

feat(cli): observe retained deployments without applying changes - #4648

Merged
yannickmonney merged 1 commit into
mainfrom
feat/deployment-readonly-observation
Oct 9, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
feat/deployment-readonly-observation

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Adds tale deploy observe so existing deployments can report retained identity/configuration, image provenance, migration inventories and corpus/disk facts before a rollout. The command reuses existing identity authentication and native release verification, without provisioning, compiling retained packs, applying configuration, migrating, restarting or pruning. Incomplete evidence remains a structured report with exit 3; observation never grants Ready acceptance or cutover permission.

The transport binds the admitted host, local Docker daemon, exact containers, executable source/bytes and retained private custody, then rechecks them. Only bounded temporary tooling and existing authentication sessions may be created; both have independent cleanup budgets. Private input is explicit and bounded, failures redact underlying values, and proxy variables are cleared for loopback native verification. The command is excluded from automatic CLI version alignment.

Also pins source-hashed CI snapshots to LF on Windows-style checkouts, preserving strict production hashes. A regression materializes an autocrlf=true checkout and proves removing the attributes breaks byte custody. EN/DE/FR operator docs, automated coverage registration and v0.5.81 notes describe the new command.

Validation on main f87e5f67c845b603569027c6c7bc15072211a2b4:

  • 233 focused tests, 1,801 assertions: observer refusal/cleanup/partial results, real command output/exit behavior, proxy handling, fixture custody and both CI retirement suites.
  • 8 CLI documentation/source-scope tests and 10 documentation structure/locale checks.
  • Semantic diagnostics on all 19 changed TypeScript roots with their actual 1,210-file import closure: zero diagnostics; unchanged imports were not independently re-diagnosed.
  • Configured pinned SAST: 162 applicable rules over 19 TypeScript files, zero findings; scoped lint and the platform manual-register gate passed.
  • Normal formatting, conflict-marker, local SAST and commit-message hooks passed.

No claim of a full repository check, actual Windows host execution, rendered documentation preview or live deployment observation. Relevant borrowed dependency provenance was checked; complete lockfile equivalence is not claimed. The installed release artifact and observation-only Ops workflow still need their normal target execution and evidence collection.

@yannickmonney
yannickmonney merged commit d1373d8 into main Oct 9, 2026
@yannickmonney
yannickmonney deleted the feat/deployment-readonly-observation branch October 9, 2026 13:50
tale-code-bot added a commit that referenced this pull request Nov 1, 2026
v0.5.82 was published from 81ef78d under notes written for it. Its
tag then moved twice, to e6fb962 and to 0381bc4, 25 merges later,
and a Release run for each rebuilt its images under the same notes; the
CLI binaries attached to it come from the last. The only identity check
compared the tag with the run's commit, after the images were written,
and nothing compared a run's commit with the commit a published release
came from.

tools/cli/scripts/release-source.ts decides whether a Release run may
publish its commit as its version: only when each tag of the version
(vX.Y.Z and X.Y.Z) names that commit and no published release of the
version came from another. A release's commit is its target_commitish,
the full SHA Create release passes as --target; a release published
against a branch, as v0.5.84 and older were, names no commit and refuses
every source. Prepare decides before anything is built, and Manifest,
Create release and Trigger CLI build decide again just before they
write, since a failed-jobs re-run keeps Prepare's outputs and a tag can
move while the images build. A refused commit is released as the next
version.

The v0.5.82 notes now cover what 0381bc4 ships over 81ef78d, name
the commit and runs its tag, images and CLI binaries come from, and say
they were corrected after publication. They credit tale deploy observe
(#4648) to v0.5.81, which shipped it. release-notes.test.ts accepts them
against the release's contents and what v0.5.81 already ships. The
published release body is left to the release owner (#4741).

Refs #4741
tale-review-bot pushed a commit that referenced this pull request Nov 1, 2026
v0.5.82 was published from 81ef78d under notes written for it. Its
tag then moved twice, to e6fb962 and to 0381bc4, 25 merges later,
and a Release run for each rebuilt its images under the same notes; the
CLI binaries attached to it come from the last. The only identity check
compared the tag with the run's commit, after the images were written,
and nothing compared a run's commit with the commit a published release
came from.

tools/cli/scripts/release-source.ts decides whether a Release run may
publish its commit as its version: only when each tag of the version
(vX.Y.Z and X.Y.Z) names that commit and no published release of the
version came from another. A release's commit is its target_commitish,
the full SHA Create release passes as --target; a release published
against a branch, as v0.5.84 and older were, names no commit and refuses
every source. Prepare decides before anything is built, and Manifest,
Create release and Trigger CLI build decide again just before they
write, since a failed-jobs re-run keeps Prepare's outputs and a tag can
move while the images build. A refused commit is released as the next
version.

The v0.5.82 notes now cover what 0381bc4 ships over 81ef78d, name
the commit and runs its tag, images and CLI binaries come from, and say
they were corrected after publication. They credit tale deploy observe
(#4648) to v0.5.81, which shipped it. release-notes.test.ts accepts them
against the release's contents and what v0.5.81 already ships. The
published release body is left to the release owner (#4741).

Refs #4741
Task: TALE-142
tale-code-bot added a commit that referenced this pull request Nov 1, 2026
v0.5.82 was published from 81ef78d under notes written for it. Its
tag then moved twice, to e6fb962 and to 0381bc4, 25 merges later,
and a Release run for each rebuilt its images under the same notes; the
CLI binaries attached to it come from the last. The only identity check
compared the tag with the run's commit, after the images were written,
and nothing compared a run's commit with the commit a published release
came from.

tools/cli/scripts/release-source.ts decides whether a Release run may
publish its commit as its version: only when each tag of the version
(vX.Y.Z and X.Y.Z) names that commit and no published release of the
version came from another. A release's commit is its target_commitish,
the full SHA Create release passes as --target; a release published
against a branch, as v0.5.84 and older were, names no commit and refuses
every source. Prepare decides before anything is built, and Manifest,
Create release and Trigger CLI build decide again just before they
write, since a failed-jobs re-run keeps Prepare's outputs and a tag can
move while the images build. A refused commit is released as the next
version.

The v0.5.82 notes now cover what 0381bc4 ships over 81ef78d, name
the commit and runs its tag, images and CLI binaries come from, and say
they were corrected after publication. They credit tale deploy observe
(#4648) to v0.5.81, which shipped it. release-notes.test.ts accepts them
against the release's contents and what v0.5.81 already ships. The
published release body is left to the release owner (#4741).

Refs #4741
Task: TALE-142
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