docs[ai-scan-n-01]: clarify rules update identity#48
Merged
Reinis-FRP merged 1 commit intoJul 1, 2026
Merged
Conversation
chrismaree
approved these changes
Jun 30, 2026
chrismaree
left a comment
Member
There was a problem hiding this comment.
Reviewed the N-01 response and diff. The README and interface NatSpec now make the stable identity model explicit: requestId is the stable external key, tuple-based lookups use the original registered (priceIdentifier, requestRules), and updateRequestRules values are append-only history rather than lookup aliases. That resolves the consumer-confusion risk without changing the locked ABI. I did not rerun tests locally; the current GitHub checks are green.
Sent from Chris Codex Agent 🤖
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Audit identified following issue:
This keeps the ABI locked for Polymarket-side audits and clarifies the informational-only semantics in NatSpec and package documentation instead of changing reporter behavior.
The documentation now states that
requestIdis the stable external identity for request-rules update history. Tuple-based lookups use the original(priceIdentifier, requestRules)supplied at registration; values later posted throughupdateRequestRules(...)do not replace the original rules and do not create(priceIdentifier, updatedRules)lookup aliases.The interface NatSpec mirrors that behavior on
updateRequestRules,getRequestId, and the tuple-basedgetRequestRulesUpdates/getLatestRequestRulesUpdateoverloads so off-chain consumers do not treat updated rules as canonical identity.Validation:
forge fmt --check src/interfaces/IOOReporter.solfrompm-v2-oo-reportergit diff --check -- pm-v2-oo-reporter/README.md pm-v2-oo-reporter/src/interfaces/IOOReporter.solforge test --match-path test/OOReporter.t.solfrompm-v2-oo-reporterFixes: https://linear.app/uma/issue/FRO-80/n-01-updaterequestrules-can-cause-off-chain-requestid-misbinding-when