Skip to content

fix(evidence): normalize unknown revisions and preserve mutation intent - #1733

Merged
N0zoM1z0 merged 1 commit into
mainfrom
fix/residual-unknown-intent
Oct 11, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
fix/residual-unknown-intent

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Provider-contract-accepted residual questions with edge whitespace could fail workflow retention with a revision-digest error. Different successful update_unknown requests could also generate identical mutation Evidence because most requested fields were omitted.

Normalize generated revision fields before hashing, share their semantic validation with the authenticated import schema, and compute each generated revision digest once. Consolidate creation/update mutation Evidence at its typed owner and retain the full command, preserving first-occurrence Evidence-link ordering. The revision digest algorithm and canonical constructor outputs for the same mutation Evidence IDs remain unchanged; historical bundles remain valid. New mutation Evidence IDs bind the complete request and therefore also affect new revision digests.

Closes #1723
Closes #1724

Validation:

  • npm run check and npm run docs:check passed.
  • 55 relevant tests passed, including public MCP snapshot replay, CLI/file import and tamper rejection, optimistic-update rollback, and the unchanged >125,000-dependent capacity fixture at its normal deadline.
  • Three fresh real stdio sessions verified complete update parameters, distinct high/low mutation IDs, unchanged pre-fix bundle imports, ping and awaited cleanup.
  • Flameox inspected the actual Vitest fork and real constructor profiles. Three alternating 10,000-pair constructor runs reduced median process CPU from 856 ms to 591 ms (~31%) with identical aggregate identity/revision checksums and sampled records. This is a constructor microbenchmark, not an end-to-end latency claim.

Native boundaries are synthetic fixtures; no GUI, real native provider, live model or Windows runtime is claimed by local probes.

Normalize generated revision fields before hashing and retain complete typed
creation/update requests in a shared mutation Evidence producer. Keep imported
revision authentication and canonical persisted identity/digests unchanged.

Fixes #1723
Fixes #1724

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 added area: evidence Evidence, artifacts, and reconstruction bug Something isn't working labels Oct 11, 2026

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Maintainer self-review of 2b5721d: no blockers found; independent local Luna review of the complete commit also found none. Verified full mutation requests, distinct high/low update IDs, unchanged legacy bundle imports, digest/tamper/rollback coverage, 55 relevant tests and check/docs gates. GitHub Codex review did not run because its quota was exhausted. Merge after current CI is green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction bug Something isn't working

Projects

None yet

1 participant