Repository navigation
Validate serial and UOID independently - #14
Merged
phryneas merged 3 commits intoSep 7, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The regression does not verify identity preservation through generated recovery output.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Removes the unsupported serial/UOID prefix relationship while retaining independent identity and firmware validation.
Changes:
- Removes prefix matching from validation, reports, and manifests.
- Adds regression coverage for independently valid identities.
- Updates recovery documentation to reflect the revised contract.
File summaries
| File | Description |
|---|---|
cc2flash/image.py |
Removes prefix validation and result fields. |
tests/test_implementation.py |
Adds independent identity validation test. |
hardware-recovery/TECHNICAL_DETAILS.md |
Documents independent validation. |
hardware-recovery/CC2_RECOVERY_VERIFICATION.md |
Updates safety and verification guidance. |
hardware-recovery/TEST_RESULTS.md |
Records the new acceptance case. |
hardware-recovery/REFERENCE_FINGERPRINTS.json |
Updates config validation metadata. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 1
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
The regression does not verify removal of the obsolete analysis, report, and manifest outputs.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 1
- Review effort level: Balanced
phryneas
force-pushed
the
remove-serial-uoid-prefix-check
branch
from
September 7, 2026 14:40
e567d7a to
1efed60
Compare
phryneas
force-pushed
the
remove-serial-uoid-prefix-check
branch
from
September 7, 2026 15:06
1efed60 to
f17ef12
Compare
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
serial.cfgand the HWCONFIG UOIDSafety rationale
The removed check compared two fields inside the same image. It did not bind the image to the physical camera or an earlier trusted backup, and an intact image from another camera would also pass it. The proprietary serial/UOID relationship is unknown, while the builder already preserves the complete HWCONFIG partition and the recovered serial independently and proves that no unintended region changed.
This is stacked on #13 because that PR edits the same validator and documentation. The diff here contains only this identity-validation change.
Decision provenance
This safety/product decision originated from explicit developer input after a user reported a physically successful repair with different serial and UOID prefixes. It was not an autonomous agent decision.
Tests
python -m unittest tests.test_implementation -vpython -m unittest discover -s tests -v(136 tests)python -m compileall -q cc2flash testspython -m json.tool hardware-recovery/REFERENCE_FINGERPRINTS.jsonpreserve-filesrecovery image successfully from the supplied realcc2flash-backup-v2archive