Skip to content

docs(kernel-modules): correct the signature trailer magic length - #7491

Closed
XiaoBinGan wants to merge 1 commit into
morluto:mainfrom
XiaoBinGan:docs/kernel-module-trailer-magic-size
Closed

XiaoBinGan wants to merge 1 commit into
morluto:mainfrom
XiaoBinGan:docs/kernel-module-trailer-magic-size

Conversation

@XiaoBinGan

@XiaoBinGan XiaoBinGan commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

docs/kernel-modules.md calls the trailer magic "the 27-byte magic ~Module signature appended~\n". That literal, including the trailing newline, is 28 bytes.

Problem and expected behavior

The sentence contradicts itself: the quoted literal contains \n and the count omits it. The source owner agrees with the literal, MODULE_SIGNATURE_MAGIC = "~Module signature appended~\n", and src/application/binaryDiagnostics/KernelModuleService.ts compares against MODULE_SIGNATURE_MAGIC.length, which is 28. Measured: 28 bytes with the newline, 27 without.

Change and scope

One word: 27-byte to 28-byte. Nothing else changes.

Contract and boundary impact

Documentation only. No CLI, MCP/tool-catalog, provider, artifact, or generated-metadata change; docs:check passes unchanged.

  • Documentation or usability only; no target interaction.

Evidence and regression coverage

The source and behaviour evidence is in the section above. No tests added — this changes prose only, and the owning tests already cover the behaviour it describes.

Validation performed

  • npx oxfmt --check on the changed file — exit 0
  • npm run docs:check — exit 0, 9 tests passed

Compatibility, safety, and release

No breaking change, migration step, package or release metadata impact, or security review. Documentation only.

Author readiness

Human owner: @XiaoBinGan

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

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.
    Fixes [Bug] Kernel-module guide describes the 28-byte trailer magic as 27 bytes #7324.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-27T12:57:25.026027Z
We couldn’t complete this review. Comment @codex review to try again.
ae575b8 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 Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only correction appears safe to merge.

Summary

Corrects the signature trailer magic length from 27 bytes to 28 bytes in docs/kernel-modules.md.

  • The guide gives the signature marker its full 28-byte length.

Reviews (5) · Last reviewed commit: "docs(kernel-modules): correct the signat..." · Reviewed by Greptile

@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

The fix is correct and still applies on current main (docs/kernel-modules.md still says 27-byte for a 28-byte literal), but the documentation review lane is not moving for external contributors — none of the last hundred merged PRs from outside the maintainers is a documentation change. I am closing this so the slot can carry code fixes, and will reopen it if that lane reopens. Branch docs/kernel-module-trailer-magic-size stays rebased on main; npx oxfmt --check and npm run docs:check pass. Reported in #7324.

@XiaoBinGan XiaoBinGan closed this Oct 29, 2026
@XiaoBinGan XiaoBinGan reopened this Oct 29, 2026
@XiaoBinGan
XiaoBinGan force-pushed the docs/kernel-module-trailer-magic-size branch from 9021484 to cdef3e9 Compare October 29, 2026 17:28
The guide calls the trailer magic "the 27-byte magic
`~Module signature appended~\n`", but that string including the trailing
newline is 28 bytes. The source owner agrees: MODULE_SIGNATURE_MAGIC is
"~Module signature appended~\n" and KernelModuleService.ts compares
signature.magic.bytes against MODULE_SIGNATURE_MAGIC.length, which is 28.

The sentence contradicts itself as written: the quoted literal contains \n
and the count omits it.

Fixes morluto#7324.
@XiaoBinGan
XiaoBinGan force-pushed the docs/kernel-module-trailer-magic-size branch from cdef3e9 to a2a4bf1 Compare October 30, 2026 03:09
@XiaoBinGan

Copy link
Copy Markdown
Contributor Author

Closing so the slot can carry a code fix. The correction is still valid against current main — docs/kernel-modules.md describes the signature trailer as 27 bytes when the literal ~Module signature appended~\n is 28 — but no external-contributor documentation PR has merged in the last three days while nineteen code PRs did. I will reopen it if that lane reopens. Branch docs/kernel-module-trailer-magic-size stays rebased on main with npx oxfmt --check and npm run docs:check passing. Reported in #7324.

@XiaoBinGan XiaoBinGan closed this Oct 30, 2026
@morluto morluto added the documentation Improvements or additions to documentation label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Kernel-module guide describes the 28-byte trailer magic as 27 bytes

2 participants