Skip to content

docs(research): restore Catch 27 and add Riven review note#1976

Merged
AceHack merged 8 commits into
mainfrom
research/catch-27-fix
May 8, 2026
Merged

docs(research): restore Catch 27 and add Riven review note#1976
AceHack merged 8 commits into
mainfrom
research/catch-27-fix

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 8, 2026

Summary

Restores Catch 27 (which was accidentally overwritten) and appends Riven review note correcting the overclaim in Catch 26.

Also carries the B-0140 Phase 2 shard-schema checker migration from shell to TypeScript/Bun.

Integrity

  • Tables and z-set counts remain accurate (20-5).
  • bun tools/hygiene/check-tick-history-shard-schema.ts --files docs/hygiene-history/ticks/2026/05/01/1458Z.md passes.
  • Import smoke test confirms main exports without top-level exit.
  • git diff --check passes.

AceHack and others added 3 commits May 7, 2026 20:18
…of 8)

262-line bash → 153-line TS. Same behavior: scans 461 shards,
finds 21 known violations. Supports --files mode for per-PR checks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 8, 2026 00:23
@AceHack AceHack enabled auto-merge (squash) May 8, 2026 00:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores and extends the 2026-05-07 shadow-session research log by re-adding the missing Catch 27 and adding a review note that retracts/qualifies an overclaim, while also migrating the tick-history shard schema validator from Bash to a Bun/TypeScript implementation.

Changes:

  • Update docs/research/2026-05-07-shadow-lesson-log-full-session.md to add Catch 26/27 material and adjust Z-set tallies and summaries.
  • Add tools/hygiene/check-tick-history-shard-schema.ts (Bun/TS) to validate tick-history shard schema.
  • Remove the legacy tools/hygiene/check-tick-history-shard-schema.sh.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
tools/hygiene/check-tick-history-shard-schema.ts New Bun/TypeScript tick-shard schema validator (replacing the removed Bash script).
tools/hygiene/check-tick-history-shard-schema.sh Deleted legacy Bash tick-shard schema validator.
docs/research/2026-05-07-shadow-lesson-log-full-session.md Restores Catch 27 and adds a review note; updates Z-set accounting and summaries.

Comment thread tools/hygiene/check-tick-history-shard-schema.ts Outdated
Comment thread tools/hygiene/check-tick-history-shard-schema.ts Outdated
Comment thread docs/research/2026-05-07-shadow-lesson-log-full-session.md Outdated
Comment thread tools/hygiene/check-tick-history-shard-schema.ts
Expose main for import-safe reuse, only exit under import.meta.main, and align the filename-schema violation text with the accepted HHMMZ and HHMMSSZ forms.

Co-Authored-By: Codex <noreply@openai.com>
Add Catch 27 to the Z-set table and update the derived shadow totals, narration-over-action recurrence count, and phase-check ratio.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 8, 2026 00:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread tools/hygiene/check-tick-history-shard-schema.ts
Comment thread tools/hygiene/check-tick-history-shard-schema.ts
AceHack and others added 2 commits May 7, 2026 21:26
# Conflicts:
#	docs/research/2026-05-07-shadow-lesson-log-full-session.md
Add the standard hygiene-tool header and compute shard paths with
path.relative plus POSIX normalization so absolute --files input and Windows
path separators do not trigger false date mismatches.

Co-Authored-By: Codex <noreply@openai.com>
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 8, 2026

Vera/Codex follow-up after direct GitHub-state inspection:

  • The shadow-log Z-set thread is now obsolete in the PR diff: current origin/main already contains Catch 27/28/29 and the docs(research): restore Catch 27 and add Riven review note #1976 branch was merged forward taking the main version for that file.
  • The Windows path/thread on check-tick-history-shard-schema.ts is addressed by path.relative(...) plus POSIX normalization and by filtering --files after resolving to absolute paths.
  • The hygiene-tool header thread is addressed with purpose, usage, and exit-code comments at the top of the TS file.

Focused checks run locally:

  • bun tools/hygiene/check-tick-history-shard-schema.ts --files <relative> <absolute>
  • bun build tools/hygiene/check-tick-history-shard-schema.ts --target=bun
  • git diff --check origin/main..HEAD

Coordination note: this was pushed directly from GitHub PR state, not through Aaron as courier.

Handle regex capture groups with noUncheckedIndexedAccess enabled so the
new shard schema checker passes the CI TypeScript strict profile.

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 8, 2026 01:28
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@AceHack AceHack merged commit 792eb17 into main May 8, 2026
27 checks passed
@AceHack AceHack deleted the research/catch-27-fix branch May 8, 2026 01:31
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1a186ddcf

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


const BARE_RE = /^(\d{4})Z(-[0-9a-f]+)?$/;
const HASH_RE = /^(\d{4})(\d{2})Z-[0-9a-f]+$/;
const COL1_RE = /^\|\s(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?Z)\s\|\s/;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enforce literal spaces in col1 delimiter matching

Tighten the col1 regex to require literal spaces, not generic whitespace. The new pattern uses \s around the timestamp, so rows like |\t2026-...\t|\t... are accepted even though the schema and prior shell validator require the canonical | <ISO timestamp> | shape with spaces. This weakens the guardrail that prevents format drift in shard rows and can let non-canonical entries pass validation, which then breaks assumptions in downstream tooling that expects a stable table format.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment on lines +5 to +6
// TypeScript+Bun port of check-tick-history-shard-schema.sh for the
// Rule 0 bash-to-TS migration.
Comment on lines +1 to +6
#!/usr/bin/env bun
// check-tick-history-shard-schema.ts — validate loop tick shard file
// paths, names, and first-row timestamps.
//
// TypeScript+Bun port of check-tick-history-shard-schema.sh for the
// Rule 0 bash-to-TS migration.
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.

2 participants