Skip to content

feat(coda): add permission-aware knowledge connector - #7915

Merged
waleedlatif1 merged 3 commits into
stagingfrom
codex/coda-knowledge-connector
Sep 17, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
codex/coda-knowledge-connector

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Add Coda page and table syncing with bounded, resumable indexing and source permissions.
  • Add organization setup, Enterprise directory mapping, and setup and implementation docs.

Type of Change

  • New feature

Testing

238 focused tests pass. Live tests cover page and table edits, workspace and organization ingestion, search authorization, and unchanged-content embedding reuse. Application integration tests use real Coda, Postgres, and Redis with deterministic embeddings.

Lint, all 46 repository audits, generated-artifact checks, and all workspace type checks pass. Live Enterprise directory and cross-domain grant/revoke tests remain unverified because the available account has no Enterprise organization and blocks cross-domain sharing; those limitations and reproducible test commands are documented.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 17, 2026 5:27am UTC

Request Review

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 24 files

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Fix all with cubic | Re-trigger cubic

Comment thread packages/deployment-config/src/integration-availability.ts
Comment thread apps/sim/lib/knowledge/__integration__/coda-live.integration.ts Outdated
@greptile-apps

greptile-apps Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no new actionable issue or outstanding previous finding remains.

Summary

Adds a permission-aware Coda knowledge connector with bounded, resumable page and table indexing, source ACL synchronization, Enterprise directory expansion, credential integration, tests, and setup documentation.

  • Supports ordinary and Enterprise Coda ingestion paths.
  • Preserves provider permissions for organization Search while documenting workspace-wide access separately.
  • Adds bounded pagination, deferred hydration, response validation, and reconciliation safeguards.
  • Registers Coda across connector, credential, deployment, search, and documentation surfaces.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Sim source configuration] --> B[Selected Coda service-account credential]
    B --> C[Framework resolves stored API token]
    C --> D{Enterprise organization ID?}
    D -->|No| E[Coda Public API]
    D -->|Yes| F[Coda Admin API]
    E --> G[Discover documents]
    E --> H[Read pages and base-table rows]
    E --> I[Resolve owner and direct-email ACLs]
    F --> J[Discover organization documents]
    F --> K[Read plaintext page exports]
    F --> L[Read ACLs and organization directory]
    G --> M[Bounded resumable listing]
    H --> N[Deferred content hydration]
    J --> M
    K --> N
    I --> O[Permission-aware knowledge index]
    L --> O
    M --> O
    N --> O
    O --> P[Authorized Sim Search results]
Loading

Reviews (4) · Last reviewed commit: "fix(coda): clarify workspace access in s..."

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 27 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread apps/docs/content/docs/search/coda.mdx
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

The summary-only "Incorrect Credential Visibility" finding points to codaAuthParams in apps/sim/tools/coda/utils.ts. This is a system-injected accessToken resolved from the selected stored credential, not a raw API-key input supplied to the tool. visibility: 'hidden' is the required boundary here: .agents/skills/add-tools/SKILL.md defines hidden parameters as system-injected, and apps/sim/tools/coda/coda.test.ts explicitly asserts that every Coda tool keeps this token hidden. The stored credential itself remains selectable through coda-service-account; this PR adds its catalog availability and tests. The auth parameter predates this PR and is unchanged. Making it user-visible would incorrectly expose an internal credential parameter. No code change is needed for that finding.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 27 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile Please re-evaluate the remaining summary-only token visibility finding against the actual credential path and the scoped repository rule:

  • apps/sim/tools/AGENTS.md says hidden is for system-injected parameters, while user-only is for values the user must provide to the tool. It does not classify visibility by the provider's token issuance protocol.
  • apps/sim/blocks/blocks/coda.ts:381 exposes the selected service-account credential as oauthCredential, rather than exposing a raw token field.
  • apps/sim/lib/oauth/credential-service.ts:755 resolves a stored token-service-account secret and returns accessToken: secret.apiToken; apps/sim/lib/oauth/token-resolution.ts:260 uses that authorized service-account resolution path.
  • apps/sim/tools/coda/utils.ts:211 therefore correctly describes the hidden token as resolved from the selected credential. This auth declaration is unchanged from staging. The existing all-tools test at apps/sim/tools/coda/coda.test.ts:421 enforces hidden visibility.

The distinction is stored credential selection versus an injected tool parameter. Changing this parameter to user-only would incorrectly add it to tool parameter surfaces (apps/sim/tools/params.ts:288). Please assess this as a false positive under the system-injected parameter rule. The workspace-access documentation finding is fixed in the latest commit; no credential visibility change is appropriate.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 27 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 431355a into staging Sep 17, 2026
34 checks passed
@waleedlatif1
waleedlatif1 deleted the codex/coda-knowledge-connector branch September 17, 2026 05:48
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