Skip to content

feat(artifacts): read Godot 3 PCK version 1 archives - #7781

Merged
morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-godot-pck-v1
Oct 28, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/resubmit-godot-pck-v1

Conversation

@ShuaixinHuang

Copy link
Copy Markdown
Contributor

Problem and result

Replaces #7063 at the author's request, on pinned main 18a8e71c. This retains only the original six PCK feature files, removing historical shared CI repairs and unrelated changes.

Read ordinary Godot 3 PCK format 1 alongside existing formats 2/3/4. Format 1 has an 84-byte header, no pack/member flags or file-base field, and absolute member offsets even in an embedded carrier. Existing identity, bounds, path, MD5/integrity, cancellation and extraction containment rules remain enforced; zero-offset patch removal records remain unsupported.

The original feature semantics are unchanged. The upstream readArtifactFileBytes owner is preserved; its predecessor is not restored. No game execution, Godot dependency, new target interaction or package change is introduced.

Verification

Windows x64, pinned Node 24.22.1 / npm 11.16.0, fresh locked dependencies and matching verified Windows native 6.8.0 prerequisite:

  • The complete three-file focused command produced 52 passed / 2 failed. All 7 new format-1 source cases, 12 compiled CLI cases and 5 MCP cases passed, including synthetic standalone/embedded packs and supported refusal/integrity controls.
  • The two failures are existing source path-replacement cases (embedded: false/true): Windows returns EPERM when renaming the open selected file. Restoring all six feature files to exact clean 18a8e71c reproduces both same failures (28 other base cases unselected); every working file was restored byte-for-byte afterward. No assertion, skip, process or ownership rule was changed. The complete focused command is not green locally.
  • npm run check stopped at ordinary Knip's unchanged HexRecordRegionMetadata unused type (4/6 tasks complete), also reproduced on clean pinned upstream during this resubmission. fix: remove unused hex record metadata type #7718 addresses that independent issue. The aggregate check is not green.
  • npm run docs:check: six tasks passed, then 9/9 README tests passed.
  • Normal pre-commit lint/format and pre-push typecheck/lint 2/2 passed (22.894 seconds); worktree clean.

An independent report on original #7063 tested official Godot 3.6.3 Windows exports: a seven-entry pack and another 206 project files extracted byte-identically. This is historical external evidence, not a rerun on this replacement; embedded real exports and other Godot 3 releases were not covered.

The replacement is 6 files, 199 additions / 33 deletions. No real Godot engine or Linux/macOS runtime was run locally in this refresh. Hosted CI must validate this new head independently; old #7063's green checks do not qualify it.

Author readiness

Human owner: @ShuaixinHuang

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

The human owner explicitly confirmed review and responsibility for this PR and requested formal maintainer review in this session on 2026-10-25.

The existing initial human review and responsibility declaration is retained for this same feature and upstream refresh, with no expanded semantics.

Before merge

  • Same ordinary static archive compatibility contribution.
  • Existing extraction authority, identity, integrity and refusal behavior preserved.
  • Exact current validation results, baseline failures and original external evidence distinguished.
  • Latest-head hosted checks complete.

@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 🔄 Running since 2026-10-28T11:38:02.248329Z f68a6b1 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.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no actionable defect was found.

Summary

Adds ordinary Godot 3 PCK format-1 reading alongside formats 2–4.

  • Godot PCK inspection and extraction now read format 1 archives.

No actionable defect or security issue was established from the reviewed code. Tests were not run during this review. The supersession check could not complete because GitHub access required authentication.

Acknowledged by ShuaixinHuang: existing Windows open-file rename failures, the baseline unused-type check failure, no current-head real-engine or Linux/macOS verification, and pending latest-head hosted checks. The historical real-export report was not treated as a rerun of this replacement.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Selected source file] --> B[Locate standalone or embedded PCK]
  B --> C{PCK format}
  C -->|1| D[84-byte header and absolute offsets]
  C -->|2–4| E[Existing header and offset rules]
  D --> F[Shared directory and byte-range checks]
  E --> F
  F --> G[Inventory and integrity checks]
  G --> H[CLI or MCP inspection]
  G --> I[Shared safe extraction]
Loading

Reviews (1) · Last reviewed commit: "feat(artifacts): read Godot 3 PCK versio..." · Reviewed by Greptile

@morluto
morluto merged commit 09225b0 into morluto:main Oct 28, 2026
37 checks passed
@KJLavender

Copy link
Copy Markdown
Contributor

Since the description notes the Godot 3.6.3 check was on the old #7063 head and not on this replacement, I reran it on merged main (e5e0dc5, Windows 11, Node 24) with the same two packs exported by the official Godot_v3.6.3-stable_win64.exe.

  • Pack 1 (7 entries): inspect-artifact reports godot-pck, format_version: 1, engine 3.6.3, declared_file_count: 7, every entry hash_status: verified. extract-artifact writes 7 files. The 4 that exist in the project (JSON, a .bin, a nested dir, a Chinese filename) are byte-identical; the other 3 are what Godot generates at export (project.binary, scripts/main.gdc, scripts/main.gd.remap).
  • Pack 2 (empty file, 200 small JSON files, two levels of CJK directory names): 209 extracted, the same 3 generated files plus 206/206 project files byte-identical.

The only project file missing from the output is export_presets.cfg, which Godot leaves out of exported packs anyway. Same results as on the original branch.

@morluto morluto mentioned this pull request Nov 11, 2026
3 tasks done
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants