Skip to content

fix(runtime): accept integer ai_access (Turso) in AI-seat synthesis#2336

Merged
os-zhuang merged 1 commit into
mainfrom
fix/ai-access-int-vs-bool
Jun 26, 2026
Merged

fix(runtime): accept integer ai_access (Turso) in AI-seat synthesis#2336
os-zhuang merged 1 commit into
mainfrom
fix/ai-access-int-vs-bool

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Third issue caught by real staging: sys_user.ai_access reads back as integer 1 on Turso, but the synthesis checked === true1 !== true → seated users denied. Memory driver returns boolean, masking it locally. Accept true | 1 | '1' in resolveExecutionContext (gate) + hono-plugin (data-route). 🤖 Generated with Claude Code

sys_user.ai_access reads back as integer 1 on Turso/libSQL (sqlite booleans),
but the seat synthesis checked `=== true` (boolean) — so `1 !== true` and a
SEATED user got no `ai_seat` -> /ai/agents=[] under enforce. The memory driver
returns a JS boolean, which masked it in local testing. Caught on a real
Turso-backed staging env (the env creator was seated yet denied).

Accept `true | 1 | '1'` in both synthesis points: resolveExecutionContext (the
gate) and plugin-hono-server data-route resolveCtx.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jun 26, 2026 3:19am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/plugin-hono-server, @objectstack/runtime.

18 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/concepts/cloud-artifact-api.mdx (via packages/runtime)
  • content/docs/concepts/implementation-status.mdx (via @objectstack/plugin-hono-server, @objectstack/runtime)
  • content/docs/concepts/north-star.mdx (via packages/runtime)
  • content/docs/concepts/packages.mdx (via @objectstack/plugin-hono-server, @objectstack/runtime)
  • content/docs/guides/api-reference.mdx (via @objectstack/runtime)
  • content/docs/guides/authentication.mdx (via @objectstack/plugin-hono-server, @objectstack/runtime)
  • content/docs/guides/cloud-deployment.mdx (via @objectstack/runtime)
  • content/docs/guides/deployment-vercel.mdx (via @objectstack/runtime)
  • content/docs/guides/driver-configuration.mdx (via @objectstack/runtime)
  • content/docs/guides/hook-bodies.mdx (via @objectstack/runtime)
  • content/docs/guides/packages.mdx (via @objectstack/plugin-hono-server, @objectstack/runtime)
  • content/docs/guides/plugin-chatbot-integration.mdx (via @objectstack/runtime)
  • content/docs/guides/plugins.mdx (via @objectstack/plugin-hono-server)
  • content/docs/guides/production-readiness.mdx (via @objectstack/runtime)
  • content/docs/guides/single-project-mode.mdx (via @objectstack/runtime)
  • content/docs/protocol/objectos/http-protocol.mdx (via @objectstack/runtime)
  • content/docs/protocol/objectos/index.mdx (via @objectstack/runtime)
  • content/docs/protocol/objectos/lifecycle.mdx (via @objectstack/runtime)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

@os-zhuang
os-zhuang merged commit 6ad6bf6 into main Jun 26, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the fix/ai-access-int-vs-bool branch June 26, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant