Skip to content

feat(git-setup): convert ingested connector timestamps at write time#163

Merged
jordanrburger merged 2 commits into
mainfrom
upstream/patterns-git-setup
Jun 23, 2026
Merged

feat(git-setup): convert ingested connector timestamps at write time#163
jordanrburger merged 2 commits into
mainfrom
upstream/patterns-git-setup

Conversation

@jordanrburger

Copy link
Copy Markdown
Collaborator

Part of the de-personalized Patterns batch — upstreaming accumulated instance rules into the engine phases (Phase-1 work for the connector-based migration, #156). Follows the method from #157.

What

One rule added to phases/core/git-setup.md (Timezone Handling section; assembles into all three brainsmode: [briefing, consolidation, dreaming, research], which is correct for a connector-agnostic timestamp rule):

  • Convert ingested connector timestamps at write time (Pattern KnowledgeGraph._load_schema and validate raise uncaught exceptions on user-customizable YAML #46) — connector payloads frequently carry timestamps in UTC (trailing Z / +00:00). Never copy one verbatim into the KB, an action item, or a DM as if it were already in the display zone: rendered in {{TIMEZONE}} it can shift by hours and across a calendar-day boundary, and the drift changes with DST. Parse the source's zone and convert to {{TIMEZONE}} at write time, then label the result.

This is the ingestion counterpart to the existing "never use bare date — always TZ={{TIMEZONE}}" rule, which only covers timestamp generation. Stays within the engine's single-{{TIMEZONE}} model (the dual/current-timezone idea is deliberately not introduced here — it's a separate design change).

Verification

  • Assembly checked via _assemble(cfg, kind): lands in SKILL + DREAMING + RESEARCH (matches the file's four-mode frontmatter); correct for a connector-agnostic rule.
  • Diff grepped clean of names / employer / customers / Slack IDs / repo-PR-Linear IDs / user paths; the example is zone-agnostic (no hardcoded offset or America/...), so it holds for any configured {{TIMEZONE}}.

🤖 Generated with Claude Code

Jordan Burger and others added 2 commits June 23, 2026 14:08
Upstreamed from accumulated instance experience into the Timezone Handling
section (assembles into all three brains — mode: briefing/consolidation/
dreaming/research, connector-agnostic):

Connector payloads frequently carry UTC timestamps (trailing Z / +00:00).
Never copy one verbatim into the KB / an action item / a DM as if it were
already in the display zone — rendered in {{TIMEZONE}} it can shift hours
and cross a calendar-day boundary, and the drift changes with DST. Parse
the source zone and convert to {{TIMEZONE}} at write time. Complements the
existing "never use bare date" generation rule.

Generic, zone-agnostic; originating example dropped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jordanrburger jordanrburger merged commit 5e2c5f7 into main Jun 23, 2026
5 checks passed
@jordanrburger jordanrburger deleted the upstream/patterns-git-setup branch June 23, 2026 21:53
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