oficina / home Public

Dashboard performance: measure and remove avoidable loading delays closed

On branch perf/dashboard-loading

Reviewing the selected-team dashboard cold and warm paths, authenticated handoff, source pulls and render-blocking assets. User requested this screen load instantly. Preserve session/team isolation, fresh credential proof on uncached pulls, 30-second freshness and 120-second absolute RAM bounds. Baseline production public checks found the canonical oficina.works request substantially slower than its instance hostname and sibling apps; investigating routing as well as application costs. Independent highest-capability GPT-6/Codex reviewer is auditing in parallel; exact runtime variant is not exposed.

Independent GPT-6/Codex review identified six document requests per uncached dashboard and a deferred, revalidated assertion script blocked by nine stylesheets. Implementing four-request authenticated flow preserving the post-callback session-bound GET, with async immutable assertion asset. Existing unauthenticated resume and 30/120-second cache bounds remain. Infrastructure diagnosis: four global apex A records choose Ireland/US/Australia indiscriminately (pinned TLS-valid TTFB 68ms,157ms,462ms,1319ms). Reviewer recommends DNSimple apex ALIAS edge.oncarlos.com, the platform-managed custom-domain target, retaining current live Carlos domain claim. Target and canonical TLS verified; old four A records backed up at /tmp/oficina-dashboard-perf-dns.json. Professional account lacks Enterprise atomic batch; create ALIAS before removing superseded A records to preserve continuity, verify authoritative responses, with exact four-record rollback available. No other DNS records change.

DNSimple refused coexisting ALIAS+A validation; no existing record changed. Verified a temporary perf-routing-check.oficina.works ALIAS to edge.oncarlos.com resolves correctly from authoritative DNS. Will replace the exact four saved apex A records sequentially and immediately create the validated ALIAS, restoring saved A records automatically if creation fails. This is the supported replacement path, not a permissions bypass; potential transitional empty answer is limited to the API update interval and DNS TTL. Independent reviewer approved the target and rollback plan.

Performance review complete at de44bd42feaab6a996249a5c8eaa846ba8d2c589.

Independent reviewer: GPT-6/Codex, same highest-capability model as author; exact runtime variant is not exposed. Reviewer approved code and independently verified ordinary deployed canaries, versions, four-request fresh flow, no-JavaScript Continue, async submission while nine credential stylesheets were delayed two seconds, and expired credential session recovery. No blockers.

Baseline versus ordinary new build, same deployed synthetic session/source setup: JavaScript-enabled fresh loads 527/525/494ms versus 537/347/359ms (median525→359ms; small sample, not a production-provider guarantee). Six document requests become four. Independent reviewer measured408–423ms fresh and60–69ms warm. Thirty-second refresh and120-second absolute RAM bounds, no-store, session/subject/team binding, single-use proofs and the authenticated GET after callback remain enforced. Expired sessions retain sealed resume; in-flight old nonce URLs still work.

DNS: apex previously returned four global A addresses. Pinned canonical HTTPS TTFB varied68ms to1.319s, with ordinary cold requests up to1.87s on the Australian edge. Replaced exactly those four A records with DNSimple ALIAS87831536, edge.oncarlos.com, TTL300/global. Validated provider-supported ALIAS and Carlos managed edge target; no other records changed. DNSimple refused coexisting A+ALIAS, documented before replacement; a first delete command returned text despite --json, so re-read live state before completing replacement safely. Sequential replacement took2.12s; exact original A rollback saved. Temporary comparison ALIAS to instance hostname gave identical resolver-dependent answers and was removed; kept managed edge target. Authoritative DNS and local resolver now return16.60.78.128; post-propagation canonical TTFB119/124ms. Resolver-vantage routing still limits universal latency claims.

Validation: local vet/fmt/build/full Go tests and targeted dashboard race pass. Linux CI for exact de44bd4 is SUCCESS across vet, fmt, build, go-test and race. Hub was temporarily unreachable, then recovered; git fetch encountered429 and was retried normally. No bypass of review/CI gates.

Production rollout: squash merge only reviewed/green commit, build stamped merged revision, deploy both Directory and credential roles, then verify process /api/version plus canonical X-Carlos-Version. Disposable canaries use synthetic data only and will be removed.

Merged as1449d2d (tree identical to reviewed and CI-green de44bd4), built CGO_ENABLED=0 linux/arm64 via make release, deployed Directory and credential edge channels. Deploy watch reports swapped both; independently verified /api/version and X-Carlos-Version equal1449d2d on oficina.works, id.oficina.works and both underlying instance hosts. Production assertion asset matches committed content and serves immutable cache. DNS uses managed edge ALIAS with unrelated records unchanged apart from automatic SOA serial. Canary instances retired and synthetic source app trashed; local fixture credentials/databases and completed worktrees removed. Review complete.