Skip to content

chore(static): remove the dead script and type the deep-static lane reports - #11711

Closed
IvenKooLab wants to merge 1 commit into
morluto:mainfrom
IvenKooLab:fix/knip-deep-static
Closed

IvenKooLab wants to merge 1 commit into
morluto:mainfrom
IvenKooLab:fix/knip-deep-static

Conversation

@IvenKooLab

@IvenKooLab IvenKooLab commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

npm run knip fails on main at b74b314fb, so the Deep static checks lane is red for every PR that runs it. This removes the two findings the check reports today.

Problem and expected behavior

Unused files (1)
scripts/read-authored-skill-manifest.mjs
Unused exported types (1)
ElfMetadataArchitecture  type  src/domain/binaryTargetTypes.ts:58:13

Expected: npm run knip and npm run knip:production exit 0, which is what the lane requires.

Change and scope

  • scripts/read-authored-skill-manifest.mjs reads a manifest from stdin and nothing invokes it: no workflow, npm script, or source imports it. The website lane's path entry in scripts/ci/scopes.mjs and the matching row in tests/boundary/filesystem/ciChangeScope.test.ts go with the file.
  • ElfMetadataArchitecture derives a type from ELF_METADATA_ARCHITECTURES that no consumer names. The constant stays: it is the declaration the architecture-admission code reads.

The earlier findings this branch carried (CLI helper, route and Android delivery schemas, resources re-exports, Hopper duplicate export) were fixed upstream in the meantime and are no longer part of the diff.

Contract and boundary impact

  • Semantic owner and earliest changed stage: change-scope registry and target-type declarations; no runtime stage changes.

  • Contribution scope fit and linked maintainer decision: static-check repair, not applicable.

  • CLI and MCP/tool-catalog contract: unchanged.

  • Provider, bridge, target-format, or platform compatibility: unchanged; ELF_METADATA_ARCHITECTURES still declares the same families.

  • Evidence, artifact, provenance, or reconstruction contract: unchanged.

  • Generated metadata, package, or installation impact: none.

  • Read existing files or captured data.

Evidence and regression coverage

  • npm run knip — before: exit 1 with the two findings above; after: exit 0.
  • npm run knip:production — exit 0.
  • npm run check:fast — typecheck, lint and the architecture guards pass (2891 source files).
  • npm run test:focused -- tests/boundary/filesystem/ciChangeScope.test.ts — 421 tests passed; the removed row was the deleted script's own scope entry.

Remaining proof gap: the lane also runs in CI on Linux; this host is macOS arm64, so the run above is local.

Validation performed

  • npm run knip — exit 0.
  • npm run knip:production — exit 0.
  • npm run check:fast — passes.
  • npm run test:focused -- tests/boundary/filesystem/ciChangeScope.test.ts — 421 passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none; the removed file has no caller and the removed type has no consumer.
  • Real Hopper/Ghidra, browser, or OS coverage: not applicable.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: none.

Author readiness

Human owner: @IvenKooLab

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

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach website publishing and an internal TypeScript type.

The PR should not merge until website preparation no longer calls the deleted script.

Summary

This PR removes a manifest-reading script, its website scope entry and matching test row, and an unused ELF type alias.

  • Website discovery loses its manifest-reading helper.
  • The ELF architecture list no longer exports an unused type name.

Reviews (2) · Last reviewed commit: "chore(static): remove the dead script an..." · Reviewed by Greptile

@IvenKooLab
IvenKooLab marked this pull request as ready for review November 16, 2026 08:36
@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-16T08:36:34.555149Z
We couldn’t complete this review. Comment @codex review to try again.
ab6b574 Draft marked ready
ℹ️ 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.

@IvenKooLab

Copy link
Copy Markdown
Contributor Author

The only red check is Windows capability and package lane, and its failure is tests/boundary/filesystem/clientConfigurationEnvironment.test.ts > preserves a lowercase explicit Kimi schema profile instead of inserting a conflicting default (expected { Object (status, reason) } to match object { status: 'configured' }). That is one of the Windows failures main already carries (#10532); this diff removes dead exports in src/cli, src/domain, src/resources and src/hopper and does not touch client configuration.

Everything else in the run is green, including Static checks, Documentation, Source tests and every test shard. Local evidence for the touched surface is in the description (knip and knip:production exit 0, hopper 64 tests, focused boundary 55 tests).

…eports

`npm run knip` fails on `main` at `b74b314fb` with one unused file and one
unused exported type, so the `Deep static checks` lane is red for every PR
that runs it:

- `scripts/read-authored-skill-manifest.mjs` reads a manifest from stdin and
  nothing invokes it. Its change-scope entry and the matching case in
  `ciChangeScope.test.ts` go with it.
- `ElfMetadataArchitecture` derived a type from `ELF_METADATA_ARCHITECTURES`
  that no consumer names; the constant stays the declaration the admission
  code reads.

The earlier findings this branch carried were fixed upstream in the meantime
(the CLI helper, the route and Android delivery schemas, the resources
re-exports and the Hopper duplicate export are already gone from `main`).

Verified: `npm run knip` exits 0, `check:fast` passes (guards over 2891
source files), and `tests/boundary/filesystem/ciChangeScope.test.ts` passes
421 tests.
@IvenKooLab IvenKooLab changed the title chore(static): remove the dead exports the deep-static lane reports chore(static): remove the dead script and type the deep-static lane reports Nov 19, 2026
@greptile-apps

greptile-apps Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings could not be posted inline.

  • P1 Website builds lose required script scripts/read-authored-skill-manifest.mjs:6 ▶

    prepare_discovery in scripts/website_agents.py still runs this script through Node and raises ValueError when it fails. Deleting it makes website checks and publication stop because Node cannot find the file.

    Keep the helper and account for its Python caller in the static-check configuration, or replace the caller before deleting it.

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Thanks. Closing because this no longer applies to main. scripts/read-authored-skill-manifest.mjs is used again: scripts/website_agents.py runs it (line 27) and knip.json registers it as an entry, so deleting it would break the website agents build. ElfMetadataArchitecture has already been removed from src/domain/binaryTargetTypes.ts.

@N0zoM1z0 N0zoM1z0 closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants