Repository navigation
docs(adr): record one tagged target identity as the Evidence subject - #11328
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This documentation-only proposal appears safe to merge. SummaryAdds a proposed ADR for one tagged
Reviews (2) · Last reviewed commit: "docs(adr): record one tagged target iden..." · Reviewed by Greptile |
19 tasks
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.
Summary
This PR adds an architectural decision record,
docs/adr/evidence/target-identity.md, before any implementation. It proposes one taggedTargetIdentity(file,url,process,session,unknown) as the Evidence subject, one canonical key for comparing targets, and Evidence format revision 2. Revision 2 carries the new subject and the per-record format marker that Phase 5 deferred. Documentation only. Refs #10510.Problem and expected behavior
"The target" is defined three ways (Evidence subject identity, snapshot target, a
JSON.stringifycompare in the snapshot cache). 50 of 120 non-testcreateEvidencecalls record no subject (re-measured on main at c56fffc: application 29, contracts 7, gdb 6, server 3, domain 3, rizin 1, cutter 1), including all gdb, rizin, live-browser and process-capture Evidence. The reason is that a subject can only be a hashed file. Changing the subject changes every Evidence ID, so the decision and its migration need to be recorded before the breaking slice.Change and scope
selectionfor entry point, slice and flash offsets; URL without userinfo; process with start time; session bound to its opened target;unknownwith a closed reason set);targetIdentityKeyas the only comparison;createEvidencerequiring an identity;evidence_formatmarker that is not committed in the ID;Contract and boundary impact
src/domain/targetIdentity.ts; no code changes here.Expected effects:
Evidence and regression coverage
createEvidence(undefined|null, …)calls in non-test, non-fixturesrc/files on main. Field lists are read fromevidence.ts,analysisSnapshot.tsandAnalysisSnapshotCache.ts.For evidence-bearing changes:
Validation performed
npx oxfmt docs/adr/evidence/target-identity.md: formattednpm run docs:check: passedCompatibility, safety, and release
!with recreate-observations migration notes.Author readiness
Human owner:
Before merge
type(scope): outcome.