Skip to content

feat: provenance, nonblocking local ingestion and stable entities - #3

Merged
reshuibuduo merged 1 commit into
mainfrom
codex/reliability-foundations
Oct 15, 2026
Merged

reshuibuduo merged 1 commit into
mainfrom
codex/reliability-foundations

Conversation

@reshuibuduo

Copy link
Copy Markdown
Owner

Summary

  • Separate content origin from message role; preserve original attribution during replay.
  • Add optional durable local ingestion jobs, read/write separation, and explicit off/read-only/enrich modes.
  • Add scope-local stable entity IDs, explicit aliases, and auditable correction history.
  • Document existing API, Skill, and MCP entry points without adding a parallel workflow.

Validation

  • Local runtime: 238 tests passed.
  • Local hooks: 29 tests passed.
  • Local benchmarks: 14 tests passed.
  • Source baseline/modified/rollback regressions executed on independent copies.
  • Source and changed-file release checks completed.

Deployment

No cloud deployment. Local plugin and model remain disabled; installation will be updated from verified merged main without starting services.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 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-15T19:13:15.055821Z aae34c5 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.

@reshuibuduo
reshuibuduo merged commit 72e5501 into main Oct 15, 2026
6 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: aae34c5d9c

ℹ️ 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 +109 to +110
correction = next((c for c in data["corrections"] if c["entity_id"] == eid
and ".".join(re.findall(r"[a-z0-9]+", c["attribute_key"].lower())) == attribute), None)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Normalize both sides of correction attribute matching

When a correction uses the exact underscore-form attribute emitted by the writer, such as room_location, only the declaration is normalized to room.location; the assertion remains room_location, so the correction is silently ignored. The constrained schema permits underscores and the prompt even demonstrates stable_attribute, making this a normal input that causes correction history to fall back to the source timestamp and omit the declared reason. Normalize the assertion attribute with the same wire-key function before comparing.

Useful? React with 👍 / 👎.

raise
status = self.store.scope_status(message["message_id"], scope_id)
statuses.append(dict(status or {}))
self.jobs.finish(message['message_id'], 'indexed')

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 job retry limits on synchronous replay

When an async job is retryable_failed or permanent_failed, reposting the same immutable message to the synchronous /v1/messages endpoint bypasses retry_job's confirmation and three-attempt limit: ingest_message deletes the failed scope state, issues another model call, and this unconditional update marks the existing job indexed without incrementing its attempt ledger. This can occur after switching an integration from async to sync or when mixed clients submit the same identity, defeating the bounded explicit-retry contract; synchronous replay should reject failed queued identities or route them through the same confirmed retry accounting.

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