Skip to content

fix(dashboard): repair missing private App authorization - #4839

Merged
reachjalil merged 1 commit into
devfrom
fix/dashboard-app-readiness
Sep 10, 2026
Merged

reachjalil merged 1 commit into
devfrom
fix/dashboard-app-readiness

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Summary

Dashboard Apps can fail to resolve even when ordinary Connect health is ready: the globally configured Cloud connection does not prove that the current workspace has its separate private App-host authorization. The healthy short circuit previously skipped the repair that supplies it.

  • Report workspace- and origin-bound private authorization readiness independently of ordinary Cloud usability. Unknown or ineligible endpoints do not trigger App-only repair.
  • Repair explicitly missing private authorization despite healthy Cloud or a fresh sync marker. Keep ordinary access usable when an optional repair fails, without claiming that synchronization succeeded.
  • Bound unsuccessful App-only repairs with a scoped one-hour cooldown. Explicit Repair and core Cloud failures bypass it; successful provisioning clears it.
  • Inspect existing SQLite state read-only without initializing a database, table, or shared write cache. Preserve origin trust, connector permissions, and private-token isolation.

Builds on the merged catalog transport and diagnostics changes in #4773, #4774, and #4776. Dashboard UI retries remain outside this change; #4294 owns that separate work.

Verification

Exact signed head: 6cfcb1ae9de9eff46422b28d61b061a474fcbd87.
Rebased onto dev at 4462762b4f47eb4dd9752b3f6d682eb9773279a4; merge-base matches that revision.

All commands below exited 0 on this head:

  • pnpm --config.verify-deps-before-run=false --filter @openwork/app exec bun test --isolate tests/cloud-mcp-health.test.ts tests/cloud-mcp-maintenance-gate.test.ts — 23 passed, 0 failed.
  • pnpm --config.verify-deps-before-run=false --filter openwork-server test ./src/workspace-kv-store.test.ts ./src/connect-mcp-server-catalog.test.ts — 24 passed, 0 failed.
  • pnpm --config.verify-deps-before-run=false evals:pr specs/mcp-catalog-diagnostics.test.ts — 1 passed, 0 failed, 0 skipped; cold isolated local server and synthetic HTTP witnesses. Four passing assertion records, no pending judgments. This direct PR command emitted no placement line.
  • pnpm --config.verify-deps-before-run=false --filter @openwork/app typecheck
  • pnpm --config.verify-deps-before-run=false --filter openwork-server typecheck
  • git diff --check 4462762b4f47eb4dd9752b3f6d682eb9773279a4...HEAD

The pnpm flag prevents automatic dependency installation before execution; it does not disable test checks. Exact-head assertion evidence will be attached below.

Verdict and remaining coverage

Incomplete overall. Focused unit checks and the server-boundary journey passed. The complete desktop provisioning-to-dashboard journey, Node-specific storage test execution, and enterprise deployment retest remain unrun. Hosted CI and review are pending; no clearance is claimed here.

The readiness field establishes local credential provisioning, not token validity, expiry, revocation, provider availability, or connector access. These checks do not establish incident resolution or authorize merge/deployment.

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 8:10pm UTC
openwork-den Ready Ready Preview Sep 10, 2026 8:10pm UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 8:10pm UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 8:10pm UTC

@reachjalil

reachjalil commented Sep 10, 2026 •

Copy link
Copy Markdown
Member Author

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit 6cfcb1ae9de9eff46422b28d61b061a474fcbd87 · selected evidence

Open review report

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (132596 ms), confidentiality-review (157342 ms), spec-provenance-review (99729 ms), desktop-den-sync-review (212940 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (6cfcb1ae9de9eff46422b28d61b061a474fcbd87). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil merged commit 544b881 into dev Sep 10, 2026
27 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — 6cfcb1ae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — 6cfcb1ae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — 6cfcb1ae Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — 6cfcb1ae Deployed Sep 10, 2026 by vercel[bot]
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