Skip to content

Qualify native Calendar capsule recovery - #209

Merged
Yoshiofthewire merged 1 commit into
masterfrom
test/calendar-capsule-acceptance
Nov 17, 2026
Merged

Yoshiofthewire merged 1 commit into
masterfrom
test/calendar-capsule-acceptance

Conversation

@Yoshiofthewire

@Yoshiofthewire Yoshiofthewire commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

In one line: Add real native-capsule recovery coverage for Calendar after the previous-image upgrade and everyday event checkpoint.

What changed

  • Export a candidate capsule through native admin authority; refuse one custodian share and restore with two nonconsecutive shares offline.
  • Verify retained data/recovery/OIDC/directory keys, private credential paths, old-session revocation, fresh native sign-in and restored event editing. Preserve original data and remove the offline helper before startup.
  • Document the opt-in test and actual evidence with explicit remaining lifecycle limits. Application runtime, dependencies and frozen image pins stay unchanged.

Review this: offline restore/publication and credential boundaries; restored event and If-Match assertions. The remaining changes wire the fixture and record its scope.

Checked: Fresh publication make ci (including uncached race tests) passed172.329 s. Real seven-app/Calendar/native-recovery integration passed1242.651 s (controller1418.664 s), after its own fresh fullCI163.822 s. Exact tested-component equivalence is recorded below.

Not checked: Calendar offboarding, restoring the installer's pre-upgrade claim copy, installer resume after native restore, recurrence and meeting delivery. Broader suite and Mac distribution gates remain open.

You need to: Review this PR after current-head CI and authenticated security review clear. #208 has been merged.

Detail

The existing previous-image case creates a real everyday calendar/event on the historical image, upgrades seven applications and proves candidate event preservation/edit access. KYQ_TEST_CALENDAR_RESTORE=1 adds a recovery rehearsal after the unrelated apply/DNS fixture graphs finish. Fresh native sign-in satisfies Calendar's normal step-up requirement; normal CA/hostname checks stay enabled.

Only the test operator retains the throwaway ceremony shares. Live products get the same public key. A restricted offline pod uses the candidate image and the stopped app's private claim. Capsule bytes move through bounded stdin chunks with a digest check; shares reach only native restore stdin. The native reset revokes old credentials. The runbook's sealed installer credentials return to their recorded private paths before startup; the old tree is moved aside. Fresh owner/everyday access and the original ordinary event's content/IDs/editability are checked again, followed by a fresh If-Match edit.

Run with the independently attested historical manifest directory:

CGO_ENABLED=0 \
KYQ_TEST_RELEASE_UPGRADE_MANIFESTS=/path/to/attested-v0.6.0.8-manifests \
KYQ_TEST_CALENDAR_RESTORE=1 \
go test -json -tags e2e,goolm -count=1 -timeout 60m \
  -run '^TestKubernetesNPMEdgeJoins$' ./test/e2e/

Major evidence: 20261117-major-calendar-native-restore-v1 (all stages exit0), frozen tested patch 01eac85d9c8e59b6d3cd931550ef5432ade1986925fceb83d004acba1bce54bb. Publication evidence: 20261117-major-calendar-capsule-publication-223555Z, including fresh fullCI and publish-tree-equivalence.result.json.342 non-doc files, including the native case, runtime, dependencies and pins, match the completed native run. The two inherited Message test files match the passed #208 tree. No new combined integration execution is claimed for the publication ancestry. After #208 was squash-merged, only the Calendar commit was replayed onto 6995aa1. The old parent and merged parent trees are identical; the entire feature tree remains 0b96400d5a14bd40659544d7cbb99080b7ab039e. The named full-check results therefore apply to unchanged code, dependencies and configuration. No fresh local test execution is claimed for this ancestry-only update; hosted CI and authenticated review must clear its new head.

The ledger also records a separate strict-browser TLS prerequisite pass (private CA trust, successful named HTTPS, wrong-host refusal) as transport evidence only. Notes application enrollment/encrypted-content migration remains unqualified. The root Verification contract is updated for the new opt-in; docs ownership and child indexes are unchanged.

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪

🧪 PR contains tests

🔒 No security concerns identified

⚡ No major issues detected


Advisory only: this comment never gates the pull request.
claude-sonnet-5-5 using pr-agent on behalf of Yoshi

@Yoshiofthewire

Yoshiofthewire commented Nov 17, 2026 •

Copy link
Copy Markdown
Member Author

Security review - cleared

Detail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kyquickstart-209, where it is readable by the operator and expires seven days after the last post.


gpt-6.1-sol using security-audit on behalf of Yoshi

@Yoshiofthewire

Copy link
Copy Markdown
Member Author

Autonomous review - 1/1 personas cleared

  • security: cleared

Merging remains a human decision; this bot never approves.


gpt-6.1-sol using security-audit on behalf of Yoshi

Base automatically changed from test/message-history-acceptance to master November 17, 2026 22:54
Restore a real candidate capsule using two throwaway custodian shares after the previous-image upgrades and everyday event checkpoint. Refuse one share, retain data and installer keys, revoke old sessions, then prove fresh native access and restored event editing.

Keep the live products free of recovery private material, preserve original data, and record the passing evidence with explicit offboarding and installer-resume limits.
@Yoshiofthewire
Yoshiofthewire force-pushed the test/calendar-capsule-acceptance branch from 8f36d20 to 3569992 Compare November 17, 2026 23:24
@Yoshiofthewire
Yoshiofthewire merged commit 9be7440 into master Nov 17, 2026
19 checks passed
@Yoshiofthewire
Yoshiofthewire deleted the test/calendar-capsule-acceptance branch November 17, 2026 23:44
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