Skip to content

Codex/timespec authority#65

Open
MaxLinCode wants to merge 2 commits intomainfrom
codex/timespec-authority
Open

Codex/timespec authority#65
MaxLinCode wants to merge 2 commits intomainfrom
codex/timespec-authority

Conversation

@MaxLinCode
Copy link
Copy Markdown
Owner

Changes on codex/timespec-authority:

  1. packages/core/src/time-spec.ts — Added buildScheduleConstraintFromSlots that converts committed day/time slots into a
    valid ScheduleConstraint | null, using existing timeSpecToConstraintFields. Day-only defaults to preferredWindow:
    "morning".
  2. apps/web/src/lib/server/process-inbox-item.ts — Added optional scheduleConstraint to ProcessInboxItemRequest. Added
    injectScheduleConstraint that patches schedule/move actions after the planner returns.
  3. apps/web/src/lib/server/telegram-webhook.ts — Both execute_mutation and recover_and_execute paths now build the
    constraint from committedSlots and pass it to processInboxItem.
  4. packages/core/src/index.ts — Removed scheduleConstraint from all three response format schemas (create, move, flat
    action).
  5. packages/integrations/src/openai.ts — normalizePlanningOutput now hardcodes scheduleConstraint: null on schedule/move
    actions.
  6. packages/integrations/src/prompts/planner.ts — Removed "Temporal Encoding Rules" section and all temporal examples.
  7. packages/core/src/time-spec.test.ts — 8 tests covering all TimeSpec variants, each validated against
    scheduleConstraintSchema.

Checks passed: pnpm typecheck (all 5 packages) + pnpm test (304 tests, 2 skipped postgres integration).

MaxLinCode and others added 2 commits March 25, 2026 09:50
Remove vestigial temporal encoding from planner LLM. The discourse layer's
committed TimeSpec now provides the ScheduleConstraint via injection in
processInboxItem, replacing the planner's redundant temporal parsing that
was producing invalid constraints.

- Add buildScheduleConstraintFromSlots in core/time-spec.ts
- Add scheduleConstraint to ProcessInboxItemRequest with injection logic
- Build constraint from committed slots at both webhook mutation paths
- Remove scheduleConstraint from planner response format schemas
- Strip Temporal Encoding Rules section from planner prompt
- Add unit tests validating all TimeSpec variants against schema

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

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

Project Deployment Actions Updated (UTC)
atlas-web Ready Ready Preview, Comment Mar 25, 2026 6:06pm

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