Repository navigation
docs(firmware): qualify component comparison workflows - #9143
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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryDocuments the existing FIT and legacy uImage comparison workflow and adds public CLI/MCP regression coverage.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
FIT[FIT file] --> Inspect[Shared inspection]
Inspect --> Parent[Complete Evidence]
Parent --> Summary[Summary with parent ID]
Parent --> Retained[MCP retained record]
Parent --> Bundle[CLI exported bundle]
Retained --> Compare[Shared comparator]
Bundle --> Compare
Compare --> Result[Component changes and separate root row]
Reviews (1) · Last reviewed commit: "docs(firmware): qualify component compar..." · Reviewed by Greptile |
Summary
Refs #7461. FIT component comparison already works through the shared artifact inventory/comparison owners, but the firmware guide only advertised inspection/extraction and provided no reproducible comparison recipe. Document and qualify that existing workflow rather than introduce a second comparator.
.row. No rename matching or decoded filesystem claims.Evidence
Executed on Linux x64 with the official OpenWrt ABT ASR3000 initramfs-recovery FIT pair, with SHA-256 matching the published indexes:
083b174e81ed373f2d2f2ea5366f9291767d95375383528fd6b9955ad815b85a.41129cce68ad6269e5c8c48ef110f97682d6c4202ff2198bfd0d300c3dac132a.Independent FDT range/hash parsing agrees with selected REA inventory fields for all three stored components. Kernel/initrd changed; DTB unchanged. Comparison reports
changed:3, unchanged:1including the separately changed outer.. A controlled timestamp-only copy reportschanged:1, unchanged:3, with only.changed. Comparing the exact exported source Evidence through CLI yields the same complete Evidence as MCP (deep equality, including IDs and provenance). All input hashes remain unchanged.One completed offline workflow (three inventories, selected/batched views, two comparisons, export and CLI parity): 24.863 s elapsed, 22.471 s user + 1.370 s system CPU, sampled process-family peak RSS 1,251,237,888 bytes (200 ms sampling), two CPU affinity and 4 GiB family guard; no guard triggered. Filesystem caches were warm; tokens, cold cache and universal speedups were not measured. The verification SDK client alone used Node
--no-maglevwith full schema validation because of the previously observed SDK/Node Maglev issue; server and CLI used normal JIT. Small public tests use the normal client. Summary delivery reduces payload, not inventory hashing. No analysis algorithm changed.Validation performed
npm run test:focused -- tests/acceptance/applications/firmwareComparison.test.ts— 1 public workflow passed; normal SDK client.npm run test:focused -- tests/acceptance/artifactComparisonFit.test.ts— existing FIT layout/unknown-declaration workflow passed.npm run test:local -- src/domain/artifactComparison.test.ts src/application/artifacts/ArtifactComparisonEvidence.test.ts tests/conformance/artifactComparisonDocs.test.ts src/contracts/toolEffects.test.ts— 76 passed.node scripts/run-typescript.mjs --noEmit --checkers 1 --maxMemory 1536M), targeted lint/typed lint (4 files), formatting (6 files) and architecture guards — passed.npm run docs:buildandnpm run docs:check— passed, including 9 README consistency tests.Compatibility and scope
Documentation/help and regression coverage only; existing shared
FitArtifactReader, inventory Evidence owner and artifact comparator remain the implementation. No package/dependency/install changes or target interaction added. No firmware binaries committed. No decompression, inner filesystem comparison, rename matching, device execution, Ghidra, other hosts or arbitrary firmware-format verification. The broader issue remains open. Maintainer execution/mutation scope decision: not applicable.Author readiness
Human owner: @gensokyo-dev (repository declaration exemption applies).