Skip to content

[codex] improve bounded native cognition extraction#9

Merged
AIPMAndy merged 2 commits into
mainfrom
codex/public-auto-cognition-quality
Jul 15, 2026
Merged

[codex] improve bounded native cognition extraction#9
AIPMAndy merged 2 commits into
mainfrom
codex/public-auto-cognition-quality

Conversation

@AIPMAndy

Copy link
Copy Markdown
Owner

What changed\n\n- harden bounded Hermes/native-history parsing so malformed nested records cannot abort a batch\n- extract high-signal later sentences and Markdown bullets into eight reviewable memory types\n- add aggregate-only error/type metrics, idempotent bounded re-extraction, and isolated temporary-database backtesting\n- document the manual quality gate before production re-extraction and daily crystallization\n\n## Why\n\nThe previous extractor could stop on nested non-string role values and inspected only the first sentence of each bounded message. That missed verified decisions, root causes, project states, and open loops commonly written in later bullets.\n\n## Safety boundaries\n\n- native reads remain capped at 64 KB and 12 messages\n- automatic extraction remains capped at three proposals per session and 800 characters per summary\n- proposals still pass daily sensitivity, type, capacity, and deduplication gates\n- the public diff contains no local paths, real memory/session IDs, databases, transcripts, or deployment records\n\n## Validation\n\n- 155 tests passed\n- \n- public safety check passed\n- \n- added-line scan found no personal paths or real memory/session IDs

@AIPMAndy
AIPMAndy marked this pull request as ready for review July 15, 2026 16:51
@AIPMAndy
AIPMAndy merged commit 320b751 into main Jul 15, 2026
2 checks passed

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

Copy link
Copy Markdown

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: 08ee8a022d

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

Comment on lines +141 to +142
if force or not checkpoint or checkpoint[0] != stat.st_ino or checkpoint[1] != stat.st_size:
pending.append((path, force))

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 Allow re-extraction to advance past max-files

When --reextract-days covers more than --max-files recent files, this force condition keeps already-checkpointed recent files in pending forever, so pending[:max_files] selects the same newest batch on every run. With the default budget of 40, older files inside the re-extraction window are never revisited unless the operator sets --max-files above the entire window size, unlike normal incremental imports that progress after checkpointing.

Useful? React with 👍 / 👎.

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