Skip to content

fix(kin): one owner-timezone reader; handle NUL in chat bodies - #31

Merged
GLDRoger merged 2 commits into
kinfrom
kin-owner-timezone
Nov 7, 2026
Merged

GLDRoger merged 2 commits into
kinfrom
kin-owner-timezone

Conversation

@GLDRoger

@GLDRoger GLDRoger commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Why

  • Owner-timezone readers disagreed on validation and database failures could prevent prompt building.
  • node:sqlite returns only text before a NUL although SQLite stores the full parameter-bound value.

How

  • Share one org-scoped, contract-validated reader in MemoryCache; retain UTC warnings for memory and fallback notes below the prompt divider.
  • Reject NUL through the chat body schema and validate before repository writes with typed decode errors.

Tests

  • Regression before fix: 4 failures covering offset, whitespace, unavailable settings and NUL truncation.
  • cd apps/server && TMPDIR=/private/tmp vp test run src/kin: 156 passed.
  • cd packages/contracts && TMPDIR=/private/tmp vp test run src/kinChat.test.ts: 52 passed.
  • vp run typecheck: all 40 packages passed.
  • TMPDIR=/private/tmp vp run check:changed upstream/main: passed all gates, including 1,004 tests in 29 files. The known macOS worktree-folder test passed too.
  • Direct node:sqlite probe: parameter-bound a\u0000b reads as a, while hex(body) is 610062.

Implemented by GPT-6.1 Sol using the Codex harness in T3 Code.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T21:51:49.289257Z 10b5294 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the size:M label Nov 7, 2026
@GLDRoger
GLDRoger merged commit d671b0a into kin Nov 7, 2026
23 checks passed
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