Skip to content

docs(firmware): qualify component comparison workflows - #9143

Merged
gensokyo-dev merged 1 commit into
mainfrom
feat/7461-firmware-component-comparison
Nov 6, 2026
Merged

gensokyo-dev merged 1 commit into
mainfrom
feat/7461-firmware-component-comparison

Conversation

@gensokyo-dev

@gensokyo-dev gensokyo-dev commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • Advertise FIT/legacy uImage component inventories in existing inspection/comparison help. No new tools, schema fields, provider behavior or authority.
  • Explain exact complete-parent references, CLI Evidence bundles, MCP retained references, batch field selection, coverage/unknowns, and the separate outer . row. No rename matching or decoded filesystem claims.
  • Add a public FIT regression covering unchanged/added/removed/changed components, summary retention, source hashes, exported-bundle CLI/MCP Evidence equality, CLI summary export and unchanged inputs. Existing FIT tests retain layout and unavailable-declaration coverage.

Evidence

Executed on Linux x64 with the official OpenWrt ABT ASR3000 initramfs-recovery FIT pair, with SHA-256 matching the published indexes:

  • 24.10.0: 8,519,680 bytes, 083b174e81ed373f2d2f2ea5366f9291767d95375383528fd6b9955ad815b85a.
  • 24.10.1: 8,585,216 bytes, 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:1 including the separately changed outer .. A controlled timestamp-only copy reports changed: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-maglev with 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.
  • Full source typecheck (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:build and npm run docs:check — passed, including 9 README consistency tests.
  • CI run 42220582910 — success: source tests 24,428 passed / 16 skipped across 1,321 files; all 8 portable shards, static checks, package build, documentation, reverse-tools quality and required aggregate passed. The new public FIT regression passed in shard 7 (5.312 s).
  • Automatic Greptile review — 5/5, no actionable findings. Automatic Codex review could not run because repository review quota was exhausted; no retry or reviewer was requested.
  • Real public CLI/MCP OpenWrt workflow described above — passed. Checks ran sequentially with bounded CPU/memory; no guard triggered.

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).

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T12:49:13.513592Z
We couldn’t complete this review. Comment @codex review to try again.
8d560dc PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

Documents the existing FIT and legacy uImage comparison workflow and adds public CLI/MCP regression coverage.

  • Firmware guides show how to compare FIT and uImage components.

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]
Loading

Reviews (1) · Last reviewed commit: "docs(firmware): qualify component compar..." · Reviewed by Greptile

@gensokyo-dev
gensokyo-dev merged commit 1480a7c into main Nov 6, 2026
49 checks passed
@gensokyo-dev
gensokyo-dev deleted the feat/7461-firmware-component-comparison branch November 6, 2026 13:16
@morluto morluto added area: build Build, CI, packaging, and publishing documentation Improvements or additions to documentation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants