Skip to content

docs(forest-runtime): embedded setup prerequisites & schema isolation - #19

Merged
Scra3 merged 4 commits into
mainfrom
docs/forest-runtime-setup-fixes
Jul 29, 2026
Merged

docs(forest-runtime): embedded setup prerequisites & schema isolation#19
Scra3 merged 4 commits into
mainfrom
docs/forest-runtime-setup-fixes

Conversation

@Scra3

@Scra3 Scra3 commented Jul 29, 2026

Copy link
Copy Markdown
Member

Follow-up to the Forest Runtime page (already on main), from real customer install feedback (Roundtable / internal).

Fixes

  • Embedded prerequisites, documented — installing @forestadmin/workflow-executor (optional peer dep the agent loads dynamically at the exact pinned version; tsc stays silent when missing but agent.start() throws) and TypeScript 5.5+ (the bundled zod 4 can't be parsed by TS 4.x; skipLibCheck doesn't help).
  • Schema-isolation warning — without a dedicated schema, the executor's workflow_step_executions table lands in public and shows up as a collection in the panel; the embedded example now passes schema: 'forest_workflows'.
  • Framing — a one-time addition, not a migration (a CTO couldn't tell whether it was a migration, a config tweak, or a new setup).

Scope: only forest-runtime.mdx.

🤖 Generated with Claude Code

Note

Update Forest Runtime embedded setup docs with prerequisites and schema isolation notes

  • Adds a clarification that Forest Runtime setup is a one-time addition, not a migration, at the top of forest-runtime.mdx
  • Expands embedded executor requirements to specify @forestadmin/agent >1.84.0, Node.js >=22.12.0, @forestadmin/workflow-executor at the exact agent-pinned version, and TypeScript 5.5+ (required by zod 4 typings)
  • Adds a note explaining the executor uses a dedicated forest Postgres schema by default, configurable via the schema option, and that its tables do not appear in collections
  • Updates the database and DATABASE_SCHEMA option descriptions to reflect the forest schema default and its isolation from public

Macroscope summarized 6b41d50.

… + framing

From customer install feedback: document the workflow-executor peer dep
(exact-pinned) and TypeScript 5.5+ prerequisites for the embedded mode,
warn that a schema-less table surfaces as a collection, and frame the page
as a one-time addition rather than a migration.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
forest 🟢 Ready View Preview Jul 29, 2026, 8:17 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Comment thread product/process/workflows/forest-runtime.mdx Outdated
Comment thread product/process/workflows/forest-runtime.mdx Outdated
…ance

Macroscope review: the executor requires Node >= 22.12.0 (was missing), and
the schema/ai/encryptionKey/tuning options need an agent newer than 1.84.0
(1.84.0 pins executor 1.12.0; schema landed in executor 1.19.0) — recommend a
recent agent instead of the misleading exact floor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Comment thread product/process/workflows/forest-runtime.mdx
alban bertolini and others added 2 commits July 29, 2026 10:37
… in 'forest'

Double-check against the code: resolveSchema() falls back to DEFAULT_SCHEMA
('forest'), so an unset schema does NOT land the table in public and it never
surfaces as a collection. The previous warning was wrong and contradicted the
Tuning table's documented 'forest' default. Also soften the zod/TS wording to
match zod's own statement (tested against TS 5.5+).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…viour

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Scra3
Scra3 merged commit 69c189d into main Jul 29, 2026
2 checks passed
@mintlify

mintlify Bot commented Jul 29, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
forest 🟡 Building Jul 29, 2026, 8:16 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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