Skip to content

feat(kin): build memory INDEX.md and freshness defaults (TRIG-12) - #26

Merged
GLDRoger merged 4 commits into
kinfrom
kin-trig-12-index
Nov 7, 2026
Merged

GLDRoger merged 4 commits into
kinfrom
kin-trig-12-index

Conversation

@GLDRoger

@GLDRoger GLDRoger commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Why

  • TRIG-12 needs deterministic, bounded memory orientation and kind-specific freshness defaults without model-built indexes.
  • Review follow-ups clarified objective freshness and when an ask item is waiting on the owner; settings failures must not prevent a wake-up.

How

  • Keep one pure defaultReviewBy for LEAD-3: preserve explicit dates/null; objectives use milestone, then due, then recorded-at +30 days. Update the freshness table and both specs.
  • Build the bounded index from committed heads with explicit ordering, owner-calendar/DST boundaries, unread fading and warning flags. Only due open ask items enter Waiting on owner; future/undated asks keep their normal section. Parse dates once per item and use the specified memory_search truncation line in the golden fixture. Overdue section priority is unchanged.
  • Validate stored owner zones with the contract's TimeZone schema via KinTrigger.fields.timeZone; warn and use UTC on invalid zones or SQL failures, and preserve warning/empty-history recovery. Keep the small zone query in MemoryCache rather than introduce KinTriggerStore's thread-service dependencies. Merge latest kin (fb8de14).

Tests

  • Regression run before fixes: 6 failures across freshness, index golden and invalid stored-zone wake-up behavior; the same focused files passed after fixes.
  • cd apps/server && TMPDIR=/private/tmp vp test run src/kin — 20 files / 126 tests passed after merging latest kin.
  • cd apps/server && TZ=Pacific/Kiritimati vp test run src/kin/memory — 4 files / 59 tests passed.
  • cd apps/server && vp run typecheck — passed; root vp run typecheck also passed, 40/40 packages.
  • TMPDIR=/private/tmp vp run check:changed upstream/main — passed: format, lint, both knip passes, GraphQL, 40-package typecheck, and 28 test files / 973 tests. The known macOS GitVcsDriverCore failure did not occur.
  • Extended the existing integration case with invented invalid-zone and dropped-table fixtures: prepareWakeup continues, UTC output matches, and both settings/history failures warn. No live server or provider was started.

Implemented by GPT-6.1 Sol in the Codex harness, through T3 Code. Follow-up changes have not received a fresh independent review; hosted checks run separately.

@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-07T19:51:31.135819Z bcc7794 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:L label Nov 7, 2026
@GLDRoger
GLDRoger merged commit 1a32f25 into kin Nov 7, 2026
22 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