Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,13 @@ calls and kind nodes must carry their own explicit bounds.
migrating upgrades still require verified backups. Fixture CA/relay plumbing stays explicit.
This verifies seeded native configuration and backup-pairing data, not every product's
ordinary content migration, offboarding or full restore.
With `KYQ_TEST_CALENDAR_RESTORE=1` as well, retain two throwaway ceremony custodian shares
only in the test operator, export a candidate Calendar capsule and run its native restore
offline on its own claim. One share must fail; restore the sealed installer credentials
to their recorded paths before startup. Verify key bytes, pre-restore session revocation,
fresh native sign-in and the ordinary event's content/identifiers/edit access. Original data
is moved aside. This is native candidate capsule recovery, not restore of the installer's
pre-upgrade claim copy or offboarding/meeting delivery qualification.

- With `KYQ_TEST_MESSAGE_UPGRADE_MANIFEST` naming an independently attested historical
KyMessages manifest and its sibling Compose template, `TestKubernetesKyMessage` starts
Expand Down
46 changes: 40 additions & 6 deletions docs/RELEASE-ACCEPTANCE-2026-11-17-MAJOR.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ whole-suite release qualification or every product's ordinary content/offboardin
| KyRecovery | Native administrative sign-in, everyday identity gate, throwaway public-key ceremony and capsule listing/deposit | Previous-catalog key/pairing retention passed. Restored service with existing capsules/ceremony, administrative revocation and session invalidation remain untested here. Deposit/listing is not product restore. |
| kyPulse | Native administrative sign-in, everyday identity gate, monitoring targets healthy and real paired deposit | Previous-catalog config/pairing binding and candidate deposit with prior credentials passed. Restored monitoring state and offboarding/session revocation remain untested. |
| KyNotes | Admin backup-status API 200 / ordinary containers 403 with admin-account refusal; everyday backup-status 403 / containers 200 | Native config/account upgrade passed. Real notes migration, offboarding/session revocation and restored notes remain untested. |
| KyCalendar | Admin users API 200 / calendars 403; everyday users API 403 / calendars 200 | Old-image event content/times/IDs/ETag/access and candidate edit passed. Offboarding/restored meetings and recurrence/meeting delivery untested. |
| KyCalendar | Admin users API 200 / calendars 403; everyday users API 403 / calendars 200 | Old-image event preservation/candidate edit and native candidate capsule recovery with restored ordinary event/edit passed. Offboarding, installer resume, recurrence and meeting delivery remain untested. |
| KyPost | Native Docker setup, pre-bind-volume layout copy, admin users API 200 / everyday 403, session-ending restart and cold backup | Native config/account upgrade passed in IMAP-proxy mode. Real mail migration/restored mail, offboarding and dedicated-admin ordinary-mail denial remain untested. This fixture disables native mail listeners; it does not qualify the workforce mail stack. |
| KyDNS | Native setup, authoritative UDP/TCP DNS, forged-header rejection, unsafe-gateway trust refusal and fail-closed edge behavior | Successful edge/admin sign-in is UNPROVEN on Major because Docker rewrites source addresses. Previous zones/config upgrade, offboarding and restore remain untested. Never broaden trust to force a pass. |
| KyMessages | Real encrypted chat, offboarding and history restore; original device decrypts history and removals replay before Synapse starts. Dedicated admin chat sign-in receives KyIdentity access_denied and MAS has no admin account. | Previous0.6.0.1→0.6.1 upgrade with own verified snapshot, original keys/sessions and old/new encrypted events passed; later candidate offboarding/history restore passed. Upstream Matrix-version migration and direct authorization with an otherwise-valid admin token remain unproven. |
Expand Down Expand Up @@ -242,7 +242,7 @@ earlier failed evidence/source remain intact. V2 did retain the seeded event exa
failed because its edit sent an unquoted HTTP If-Match. V3 quotes the original ETag, as the
product API tests require, and the complete integration **passed1224.364 s**.
Calendar fixture trust is restored after later apply calls with the repeatable CA helper.
It qualifies this seeded event, not Calendar restore/offboarding/recurrence/meeting
That upgrade case alone qualifies the seeded event, not Calendar restore/offboarding/recurrence/meeting
transport or other products' content. Notes content needs its actual encryption/key flow;
arbitrary opaque bytes are not substituted as a user-note workflow.
The product already has native encryption-client and browser-format migration tests, but
Expand All @@ -261,7 +261,8 @@ old bundled client, complete action-bound KyIdentity confirmation and save a rec
copy: notebook creation refuses an unrecoverable key. The local-password browser helper
cannot replace this installer-created SSO path. Reuse actual UI content creation and
retain the isolated browser key store across the upgrade; do not inject ciphertext or
skip reauthentication/recovery. No Notes browser/runtime case was implemented or run.
skip reauthentication/recovery. No Notes application content case was implemented or run;
the separate isolated TLS prerequisite below does not qualify the application.


## Passed previous-image Messages history upgrade
Expand Down Expand Up @@ -294,6 +295,39 @@ publication tree `message-history-acceptance` matches344 non-documentation files
passed tree byte for byte, including runtime/pins/dependencies; its later report edits do
not constitute a fresh test execution.

## Passed native Calendar capsule recovery

The isolated `20261117-major-calendar-native-restore-v1` campaign **PASSED** at
22:29:48 UTC: fresh upgrade gate7.536 s, affected compile/relay4.533 s, full `make ci`
163.822 s, actual integration1242.651 s and full controller1418.664 s. All seven
previous-image upgrade commands, key/pairing retention and ordinary Calendar event
preservation/edit assertions passed before the new recovery rehearsal.

`KYQ_TEST_CALENDAR_RESTORE=1` follows KyCalendar's native capsule runbook. Only the
test operator retained two nonconsecutive throwaway custodian shares. The candidate
refused ordinary-user capsule export and pinned the same suite public key for its admin.
It exported a real capsule, verified its transfer digest, refused one-share restoration,
then completed native two-share restore/reset offline. The restored credential map
matched the recorded installer paths; data/recovery/OIDC/directory key hashes matched.
Original data was moved aside. The offline helper was removed before CLI startup.
Old admin/everyday sessions returned401; fresh native sign-in and the restored ordinary
event's content/identifiers/access and a fresh If-Match edit passed.

The frozen tested patch is
`01eac85d9c8e59b6d3cd931550ef5432ade1986925fceb83d004acba1bce54bb`, retained with
its source in `suite-calendar-native-restore`. This is candidate native capsule recovery,
not restoration of an installer pre-upgrade claim copy, Calendar offboarding, installer
resume after native restore, recurrence or meeting delivery. The separate root
Verification contract documents this opt-in scope.

The isolated Notes browser TLS prerequisite V12 separately **PASSED**2.244 s at
22:32:01 UTC: a private named CA/signed leaf verified normally, and the wrong hostname
was refused with `SSL_ERROR_BAD_CERT_DOMAIN`. Firefox peaked at157 tasks under the
owner-approved browser-only256-task cap, with no PID-limit events; Go remains128.
No TLS error override or global trust/profile changes were used. Previous failedV1–V11
remain. This proves fixture transport only; no Notes application enrollment, encrypted
content, retained-client-key upgrade or restore case has been implemented or qualified.

## HA correction and release gates

The original HA fixture used `kind load docker-image` directly on a digest reference.
Expand Down Expand Up @@ -322,9 +356,9 @@ worktrees or alter pre-existing services. Native-client distribution is separate
development archive/signature passed, but Developer ID export remains blocked on a valid
direct-distribution profile. This server report certifies no Mac or Android artifact.

DOX pass: root `AGENTS.md` was updated to document the opt-in seven-app/Calendar
(`KYQ_TEST_RELEASE_UPGRADE_MANIFESTS`) and Messages (`KYQ_TEST_MESSAGE_UPGRADE_MANIFEST`)
upgrade-test contracts.
DOX pass: the implementation PRs update root `AGENTS.md` for the opt-in seven-app/Calendar
(`KYQ_TEST_RELEASE_UPGRADE_MANIFESTS`), Messages (`KYQ_TEST_MESSAGE_UPGRADE_MANIFEST`)
and native Calendar capsule recovery (`KYQ_TEST_CALENDAR_RESTORE`) test contracts.
`docs/AGENTS.md` and the child indexes remain unchanged because documentation ownership
and workflow did not change. This report and the candidate matrix record observed evidence
and qualification limits; prior versions are preserved in the timestamped private
Expand Down
95 changes: 92 additions & 3 deletions docs/release-candidate-2026-11-17-major.json
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
"kubernetes_secret_payload_count": 0
},
"coverage_audit": {
"checked_at": "2026-11-17T21:09:30.456276+00:00",
"checked_at": "2026-11-17T21:09:30.474136+00:00",
"status": "in progress; not release qualified",
"products": {
"kyidentity": [
Expand All @@ -600,8 +600,9 @@
"Native config/account upgrade passed; real note content/offboarding/restore untested"
],
"kycalendar": [
"Reciprocal admin/content endpoints passed",
"Previous-image event text/times/IDs/ETag/access and candidate edit passed; offboarding/restore/recurrence/meeting transport untested"
"Reciprocal native admin/content access, previous-image ordinary event content/times/IDs/ETag and candidate edit passed",
"Candidate native capsule recovery passed: one-share refusal/two-share restore, data/recovery/OIDC/directory key bytes retained, old admin/everyday sessions revoked, fresh native access and restored seeded event edit",
"Offboarding, old installer pre-upgrade claim-copy restore, installer resume after native restore, recurrence and meeting delivery untested"
],
"kypost": [
"Admin users endpoint reciprocal authorization passed",
Expand Down Expand Up @@ -874,5 +875,93 @@
"fresh_combined_integration_run": false,
"publication_base": "597ec940141b3d7a14000a0c2d995422cba1efc5",
"ancestry_only_rebase": "Old PR206 head tree and merged master base tree identical; feature code tree unchanged by rebase; private ancestry-only-rebase.result.json retains proof"
},
"calendar_native_restore_extension": {
"status": "PASS: candidate native capsule recovery with retained keys, revoked old sessions and fresh ordinary event access/edit",
"recorded_at": "2026-11-17T22:35:55.331839+00:00",
"worktree": "/home/yoshi/git/KyQuickStart/.claude/worktrees/suite-calendar-native-restore",
"branch": "test/suite-calendar-native-restore",
"base": "50ca7a4d8128950bd4626e3cfdd70c87cb40c5bd",
"patch_sha256": "01eac85d9c8e59b6d3cd931550ef5432ade1986925fceb83d004acba1bce54bb",
"evidence": "20261117-major-calendar-native-restore-v1",
"checks_passed": {
"upgrade-gate": {
"exit_code": 0,
"duration_seconds": 7.536,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/upgrade-gate.result.json"
},
"affected-compile-relay": {
"exit_code": 0,
"duration_seconds": 4.533,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/affected-compile-relay.result.json"
},
"ci": {
"exit_code": 0,
"duration_seconds": 163.822,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/ci.result.json"
}
},
"scope": "Seven actual previous-image configuration/pairing upgrades + ordinary Calendar event; additional candidate native capsule export/two-share offline restore, one-share refusal, key retention, old-session revocation/fresh native access/event edit. NOT Calendar offboarding, restored old pre-upgrade claim copy, meeting delivery, or installer resume after native restore.",
"dox": "Separate isolated harness root Verification documents KYQ_TEST_CALENDAR_RESTORE=1; baseline ownership/child indexes unchanged",
"results": {
"upgrade-gate": {
"exit_code": 0,
"duration_seconds": 7.536,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/upgrade-gate.result.json"
},
"affected-compile-relay": {
"exit_code": 0,
"duration_seconds": 4.533,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/affected-compile-relay.result.json"
},
"ci": {
"exit_code": 0,
"duration_seconds": 163.822,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/ci.result.json"
},
"real-calendar-native-restore": {
"exit_code": 0,
"duration_seconds": 1242.651,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/real-calendar-native-restore.result.json"
},
"full-qualification": {
"exit_code": 0,
"duration_seconds": 1418.664,
"evidence": "/home/yoshi/.local/state/kyquickstart-acceptance/20261117-major-calendar-native-restore-v1/full-qualification.result.json"
}
},
"named_assertions_qualified": true,
"whole_suite_qualified": false
},
"notes_browser_tls_prerequisite": {
"status": "PASS: fixture TLS transport prerequisite only, NOT Notes application acceptance",
"limits": "Go jobs remainTasks128. Browser-onlyTasks256 is owner-approved; same2GiB/noSwap/2CPU/exclusiveheavylock.",
"notes_application_qualification": false,
"previous_failed_run": {
"evidence": "20261117-major-notes-browser-trust-v11",
"exit_code": 1,
"seconds": 2.111,
"peak_tasks": 172,
"pids_limit_events": 0,
"failure": "MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT",
"tls_verification_disabled": false
},
"last_run": {
"evidence": "20261117-major-notes-browser-trust-v12",
"exit_code": 0,
"seconds": 2.244,
"peak_tasks": 157,
"pids_limit_events": 0,
"positive_https": true,
"wrong_hostname_refused": "SSL_ERROR_BAD_CERT_DOMAIN",
"tls_verification_disabled": false,
"private_ca_trust_only": true
},
"completed_followup": {
"evidence": "20261117-major-notes-browser-trust-v12",
"status": "PASS: actual isolated browser positiveHTTPS and wrong-host refusal; no Notes application case implemented",
"script_sha256": "1efa42926960b609bcd01e350d825c23ca6d634186afe3713c843e138ab12d33",
"change": "Own namedCA + signed server certificate, only private NSS authority trust, positiveHTTPS and exact wrong-host denial; no TLS override"
}
}
}
14 changes: 11 additions & 3 deletions test/e2e/calendar_catalog_kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ func checkCatalogCalendar(t *testing.T, ctx context.Context, cs kubernetes.Inter
// console but no calendars, the everyday account its calendars but not the console. Test-only
// plumbing: testClusterDNS ran and KyCalendar's pod trusts the edge's throwaway certificate.
func calendarSignOn(t *testing.T, ctx context.Context, c *kube.Client, certPEM []byte, nodeIP string) *http.Client {
var everyday *http.Client
t.Helper()
_, everyday := calendarSignOnClients(t, ctx, c, certPEM, nodeIP)
return everyday
}

func calendarSignOnClients(t *testing.T, ctx context.Context, c *kube.Client, certPEM []byte, nodeIP string) (*http.Client, *http.Client) {
var adminClient, everyday *http.Client
t.Helper()
pool := x509.NewCertPool()
if !pool.AppendCertsFromPEM(certPEM) {
Expand Down Expand Up @@ -219,9 +225,11 @@ func calendarSignOn(t *testing.T, ctx context.Context, c *kube.Client, certPEM [
t.Fatalf("%s: admin/users %d, calendars %d %s", account.username, admin.StatusCode, calendars.StatusCode, b)
}
t.Logf("%s signed in to KyCalendar through KyIdentity: admin/users %d, calendars %d", account.username, admin.StatusCode, calendars.StatusCode)
if !account.admin {
if account.admin {
adminClient = client
} else {
everyday = client
}
}
return everyday
return adminClient, everyday
}
Loading
Loading