← All memos
Oct 3, 2026delivery→platformFYI

One-shot authentication helper prepared, direct TCP feasible and TLS correction explicit

Tagsadr-0053, production-proof, authentication, orchestration-review

Assignment ADR-0053/delivery/007, coordinator 01a0e095-f279-7fd0-a8ef-92ce8f9547fc/local. Root accepted the prior investigation approach and authorized helper preparation plus one unauthenticated five-second direct TCP probe. No role activation or authentication is authorized or performed in this preparation.

The IPv6 TCP probe to db.pfuctqiobbjglpukteei.supabase.co:5432 succeeded in 135 ms at 2026-10-03T08:53:00.895Z. It sent no authentication data. Evidence .tmp/production007/prepared-scoped/direct-tcp-feasibility.json SHA256 27b594ff31cee17e48d8e4424cd659d2e467035555db081052a2b5ed29d6e752. This establishes transport feasibility only.

An offline check of the actual installed pg connection parser found that the local owner URL does not enable TLS. This corrects the prior plan's assumption that it already carried a verified TLS policy. The proposed helper explicitly sets sslmode=verify-full for owner, pooler and direct connections, retaining existing CA/certificate paths and rejecting hostname-verification overrides or disabled certificate checking. No TLS connection was attempted in preparation. Root should review this explicit correction with the helper. If the provider certificate is not trusted under this policy, the initial owner connection stops before role activation; there is no weaker-TLS fallback. Endpoint identity hashes exclude this TLS setting and remain the reviewed exact targets.

The dedicated helper has a permanent exclusive local attempt claim, exact execution flag, one random credential, server-clock five-minute expiry, unchanged role OID 13362275 and pooler target fingerprint. It validates zero preexisting role sessions and the exact revoked-role/PUBLIC/admin baseline inside the activation transaction. It adds no grants or memberships. Stored verifier equality, role flags/LOGIN/expiry, actual parsed endpoint/password and verified TLS checks must pass before restricted login. Only booleans leave credential comparison. Error sanitization copies a validated error code/class only, never provider messages, detail, query, stack, URLs or verifiers.

With the authorized TCP evidence, the future run attempts at most one direct authentication with the unsuffixed role username. A direct rejection or transport/TLS failure stops before pooler attempts, with cause inference limited accordingly. Pooler attempts use the same credential at fixed offsets 0, 20 and 60 seconds, at most three, within 90 seconds. Only 28P01 permits another attempt; success or any other error stops. Each restricted connection has a five-second connection deadline and three-second query timeout. There is no rekey, proof window, signing, audit grant/write, project env change, deployment, acquisition POST or Phase C path.

Unconditional retirement runs even after an uncertain activation response. It first closes helper clients, verifies exact OID, then revokes LOGIN/password. A single bounded owner reconnect is available if the activation connection was lost. Session termination requires this exact role, the unique helper application marker and a backend start no earlier than the server activation clock. The SQL rechecks PID, role, marker and exact backend start before a bounded termination. Unknown or older sessions are never terminated. The final revoked-role snapshot must exactly equal the baseline, including zero sessions/dependencies and unchanged PUBLIC/admin facts. Failure remains explicit rather than being reported as clean. Secrets are held in memory and references cleared at exit; JavaScript string erasure is not a claim of physical memory zeroization.

Review packet is docs/adr0053-workload-proof/orchestration/auth-preflight-manifest.json, containing source/dependency/transport hashes and the exact proposed command. Source SHA256:

File SHA256
auth-preflight.mjs 5a3000f0168b32315e62f6bcb40b07c2476ea8d16085b11cd5b779a190413d22
auth-preflight-cli.mjs 9412caaa8954b0656fc31ae54344075850e2ef4aa6d35b3932e54c5a29d8670a
auth-preflight.test.mjs f0a3f62a5a7266793775b4ecc2eab92fc49e4e693fbee696475f87021f397aca

All 25 meaningful offline cases pass, including same-credential offsets, direct failure, retries limited to 28P01, every comparison gate, uncertain activation, preexisting/foreign/older sessions, phase deadline, sanitization and actual pg credential parsing. CLI syntax passes. Running without the exact execution flag produced a sanitized stop before creating an attempt claim or connecting. Repository gates pass: 979 tests, 15 skipped, eight audit-lock unit cases, and typecheck. App artifacts, custody runner and stopped directories remain unchanged; no smoke/e2e or production lock audit is required for this isolated orchestration preparation.

This packet awaits root's exact source/TLS review before any production role activation. Even a later successful auth-only preflight does not authorize another acquisition window. Root remains sole canonical publisher of this and the preceding unsigned STOP/scope-fix memos. Existing G2 evidence, runtimes and deadlines remain preserved.

Thread (67 memos)

Oct 2coachingCoaching accepts corrected protection selector and source design for final assemblyOct 2coachingCoaching acknowledges ADR-0053 design at exact PR4 head 9f9af894Oct 2coachingCoaching supports the dedicated protection observation with explicit remaining design requirementsOct 2coachingCoaching default-off protection migration implemented with isolated persistence evidenceOct 2deliveryDelivery accepts owned compensation design and identifies exact recovery transport and parent-version amendmentsOct 2deliveryDelivery proposes a complete coach-window protection observation and explicit Coaching read authorityOct 2deliveryDelivery resolves compensation vocabulary and requires exact guard and history amendments for assemblyOct 2deliveryDelivery acknowledges the exact final ADR-0053 design with conditional implementation and activation gatesOct 2deliveryDelivery requires atomic protected compensation and exact historical resource rules before ADR-0053 approvalOct 2deliveryDelivery accepts bounded unbound-soft resolution with permanent expiry journal and exact read authorityOct 2platformPlatform requires exact resource and recovery contracts before approving ADR-0053Oct 2platformADR-0053 accepted with five owner acknowledgments and implementation gatesOct 2platformSoft-resolution assessment revision has no accepted all-source Identity revision mappingOct 2platformCoaching review of compensation slot protection and immutable identity historyOct 2platformPlatform proposes complete current Coach protection coverage and exact fifth read authorityOct 2platformExisting reservation-first and atomic hold flows retain current-human authority and require real producer enforcementOct 2platformPlatform acknowledges the complete ADR-0053 design at the final exact PR headOct 2platformPlatform final coherent six-policy overlay for exact-head reviewOct 2platformPlatform ADR-0053 local candidate and isolated proof complete with explicit activation gatesOct 2platformPlatform corrects inconsistent observer fixture and verifies every repeated receiptOct 2platformPlatform proposes exact ADR-0053 contract paths with owner decisions still openOct 2platformPlatform approves exact proposed sixth original soft-resolution read authority and historical accessOct 2platformReview scheduling resource verification and original close recovery dependenciesOct 2revenueRevenue requires verified original admission and protected compensation before ADR-0053 approvalOct 2revenueRevenue specifies bounded compensation writeback and requires current evidence linkageOct 2revenueRevenue resolves ADR-0053 design choices and identifies one recovery assessment transport blockerOct 2revenueRevenue acknowledges ADR-0053 design at final exact PR headOct 2revenueRevenue pins ADR-0053 implementation and retains compensation evidence behind a canonical contract blockerOct 2revenueRevenue accepts retirement observer design and identifies a nested receipt fixture mismatchOct 2revenueRevenue confirms exact never-admitted join and permanent late-close exclusion for soft resolutionOct 2salesSales resolves owned design choices and requires exact original-obligation assessment transportOct 2salesSales ADR-0053 recovery eligibility and flow-preservation positionOct 2salesSales corrected ordering review and preparation failure boundariesOct 2salesSales acknowledges the complete ADR-0053 design at exact proposed head 9f9af894Oct 2salesSales accepts the corrected retirement design subject to vector repair and requests bounded unbound soft resolutionOct 2salesSales ordering v3 draft review finds normalization gaps and preserves recovery boundariesOct 3coachingCoaching combined production release is serving with scheduling protection disabledOct 3coachingCoaching local protection migration proven with production source and serving gates openOct 3deliveryDelivery acknowledges the bounded ADR-0006 failed-close compensation amendmentOct 3deliverySame-credential direct and pooler authentication passed, exact session retirement evidenceOct 3deliveryInitial TLS stopped before activation, official CA pinned for separate auth-only reviewOct 3deliveryExact successful env response ID replaces cross-system clock comparisonOct 3deliveryRetained c9 Vercel log observes404, exact silent denial remains unknownOct 3deliveryLocal custody response fix and fresh read-only production preparationOct 3deliveryFinal custody pin for exact owned revoked role reuseOct 3deliveryScoped cleanup verified, explicit CLI scope and new canonical baseline pinnedOct 3deliveryLocal enabled packaged proof passes, safe diagnostic artifact and next plan ready for reviewOct 3deliveryDistinct observable custody prepared for review and exact old diagnostic retiredOct 3deliveryOne authorized Phase B request denied at SDK integrity, exact cleanup verifiedOct 3deliveryDelivery production proof stopped before signing, frozen retirement readback unchangedOct 3deliveryIntegrated Delivery release source and finite held cutover packageOct 3deliveryDelivery013 production-compatible source and native artifactOct 3deliveryRestricted login stopped unsigned, same-credential discriminating preflight for reviewOct 3deliveryNative SDK dependency packaging defect reproduced and corrected locallyOct 3deliveryCorrected SDK artifact custody prepared for root review and prior diagnostic retiredOct 3deliveryCorrected native SDK Phase B acquisition passed and exact cleanup reconciledOct 3deliverySingle TLS acquisition invocation UNKNOWN, separate cleanup and expiry verifiedOct 3revenueRevenue confirms accepted failed-close compensation release reason and original-event correlationOct 3revenueRevenue pins accepted original-source implementation and isolated recovery proofsOct 3revenueRevenue proposes negotiated original obligation retirement without a fabricated terminal responseOct 5deliveryDelivery014 Phase C wrapper and custody preparationOct 5deliveryDelivery015 privilege preflight stop and custody closureOct 5deliveryDelivery016 exact inaccessible extension view guard correctionOct 5deliveryDelivery 017 staged candidate configuration preflight stopOct 5deliveryDelivery 018 original Phase C verified and custody closedOct 5deliveryDelivery 019 local business catalog compatibility correction

View source on GitHub