Skip to content

fix(kb): ground and independently review subscription module cards - #312

Merged
tzhouam merged 2 commits into
mainfrom
fix/kb-module-source-evidence-20261006
Oct 5, 2026
Merged

tzhouam merged 2 commits into
mainfrom
fix/kb-module-source-evidence-20261006

Conversation

@tzhouam

@tzhouam tzhouam commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Module map cards built from names and declarations could describe an optional runtime bridge as development tooling or treat conditional/manual script operations as executed defaults. Subscription module initialization now supplies pinned, numbered implementation excerpts and independently reviews each candidate card against its actual referenced sources.

The input remains bounded to 40,000 UTF-8 bytes. Each offered file records its hash and complete/partial/unknown status, shares the remaining excerpt budget, and includes the whole file when it fits. Unlimited cards retain four declaration signatures per file; the legacy declaration-only prompt and 40-signature limit remain unchanged. Unlimited input identity records module_prompt_version3 so redrafts use a genuine new batch.

The existing independent Codex prose gate must answer yes to faithful, does_not_weaken and non_contradictory before admitting a card. Its source input focuses on the filtered entry-point/key-file references. Rejected or unavailable reviews retain the actual verdict, model, reasons and text hash, drop only that card and leave its module coverage unknown. Other navigation continues; feature and core-file coverage targets remain separately enforced. No automatic repair or additional formal depth recognition is introduced.

Validation: all 149 relevant tests pass on the final patch, including subscription compatibility, source packing, individual no/unsure/native/subscription-recheck failures, other-card continuation, true partial coverage and legacy behavior. Document citations and SPEC freshness pass. The WhatsApp and NFS modules fit complete source evidence; the larger root scripts module remains explicitly partial and cannot claim unshown execution. No native model calls or generated knowledge/checkpoint edits were performed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T20:45:32.410361Z c7231cd 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.

@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: c7231cdd6d

ℹ️ 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 +129 to +132
allocation = (MAX_CARD_BYTES - before) // (len(readable) - offset)
limit = before + allocation
item.update(status="complete", ranges=ranges(lines, len(lines)))
if size() <= limit:

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 Backfill unused excerpt allocations before marking files partial

When an earlier file is larger than its equal share but later files are small, this loop permanently marks the earlier file partial against limit and never revisits it. Consequently, even when every complete numbered excerpt fits within the 40 KB cap, source lines are unnecessarily omitted—for example, a 1,500-line file followed by a one-line file produces a roughly 20 KB partial payload although the fully complete payload is only about 27 KB. Reallocate unused shares in a second pass, or determine completeness against the combined final size, so files are only partial when the complete payload genuinely exceeds the cap.

Useful? React with 👍 / 👎.

@tzhouam tzhouam changed the title fix(kb): ground subscription module cards in bounded source excerpts fix(kb): ground and independently review subscription module cards Oct 5, 2026
@tzhouam
tzhouam merged commit 80465f5 into main Oct 5, 2026
1 of 2 checks passed
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