mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 10:09:02 +01:00
**Keep unreadable saved SSO configuration out of management writes** Return unknown provider authority as a read failure, refuse writes before bound endpoint side effects, and recover intact saved settings through an authorized read without restarting or recreating providers. Keep missing-after-failure unknown and publish recovered authentication before clearing the failure flag. Contract-Neutral: Enforces existing saved-configuration and authorization failure semantics; no route, payload, provider authority, explicit replacement or grant contract changes. **Keep failed SSO startup recovery behind real authentication** Do not let the existing loopback no-auth fallback drive saved-provider reloads, and do not mint first-run bootstrap authority while saved authentication is unknown. Existing independent credentials and admitted sessions keep their recovery path. Contract-Neutral: Preserves existing authenticated saved-access recovery and first-run boundaries; no route, payload, grant or provider contract changes. **Keep SSO recovery on saved authority and original request admission** Read only modern persisted SSO state when recovering a failed startup, retaining initial legacy migration. Preserve a management request’s unknown-state origin and actual credential admission across concurrent recovery, before core or bound endpoints read or mutate recovered providers. Add registered-route, byte-preservation and initial-migration regressions. Contract-Neutral: Restores existing saved-provider recovery and authenticated administration boundaries; no route, schema, scope, grant, persistence format or frontend contract changes. **Exercise credential selection and header spoofing during SSO recovery** Check actual token, session, proxy and Basic admission, explicit-token precedence and failed reauthentication. Spoof response identity headers after the concurrent recovery pause to prove they cannot revive the anonymous request. Contract-Neutral: Adds regression coverage for existing request admission without changing runtime or public contracts. **Match the first-run recovery control to the existing deletion response** The handler returns 204 after a successful delete. Assert that exact response and the following 404 and empty configuration, rather than incorrectly expecting 200. No runtime or API response is changed. Contract-Neutral: Corrects a new test expectation to the unchanged SSO deletion contract. **Exercise populated restrictions in the legacy SSO recovery control** Use nonempty domain and email restrictions so strict round-trip equality verifies saved authority rather than comparing optional empty slices with their omitted JSON representation. The preceding API race suite passed; no runtime change is required. Contract-Neutral: Strengthens a test fixture for the existing persistence representation without changing runtime or authority. **Classify shared SSO recovery guards in the boundary audit** The saved-state recovery candidate was rejected because its two shared router adapters were absent from the exact-path paid-surface list. Declare only those paths and verify that neighboring files, private implementation imports and licensing imports outside the bridge remain rejected. Do not expand the historical implementation baseline or change runtime behavior. Contract-Neutral: Exact-path shared-adapter classification and executable audit regression controls only; no API, authentication, entitlement or persistence contract changes. **Recognize guarded SSO recovery in the Go boundary checks** Match the exact shared-adapter declarations already used by the shell audit, with ten Go rejection controls for neighboring paths and forbidden imports. Recognize the existing admin/users permission wrapper in route inventory instead of calling its routes bare; pin positive and negative classifier cases. The guards, tracked implementation ceiling, route allowlists and runtime source stay unchanged. Contract-Neutral: Test-only classification and rejection controls for existing recovery and permission boundaries; no runtime, route, payload, grant or persistence contract changes. --- Fleet candidate `20261106T152019Z-core-runtime` from the `core-runtime` lane. Reviewed tip `e92acbdb024e1ca39742602d392e3d1607d0b27b` on `main`. [How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)