Skip to content

[2202 by GPT-5.6 Sol] Normalize packaged native authority permissions for source-built Linux/macOS desktop apps - #2209

Merged
integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2202/gpt-5.6-sol-normalize-packaged-native-20260907-2147-j24
Sep 7, 2026
Merged

integry merged 1 commit into
1950-epic-cross-platform-dskfrom
2202/gpt-5.6-sol-normalize-packaged-native-20260907-2147-j24

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2202

Branch: 2202/gpt-5.6-sol-normalize-packaged-native-20260907-2147-j24
Commits: ✅ Changes committed (fb18723)


AI Processing Completed

Execution Details:

Summary:
Implemented the native authority permission correction.

  • Added deterministic 0755 normalization for packaged Linux/macOS native authority binaries in package-native-authority.ts.
  • Integrated it into Forge’s pre-ASAR packaging hook in forge.config.ts.
  • Added regression coverage for 0775 inputs, existing group-writable targets, umask 0002, digest preservation, and unchanged Windows behavior in package-native-authority.test.ts.

Verification:

  • Desktop typecheck passed.
  • Full desktop suite passed: 702 tests, 0 failures.
  • Linux package built from a 0775 source under umask 0002; packaged addon was 0755.
  • Forge DEB payload contained -rwxr-xr-x root/root.
  • Source, unpacked package, and DEB addon retained SHA-256 7199378f…1083950f6.

No visual preview was generated because this is packaging-only behavior.

Detailed Logs:

  • Conversation: 78 messages
  • Session: 01a07dd7-f171-7cf3-84e0-f1887fefe4e6

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2202-2026-09-07T22-02-24-054Z-conversation.json
  • output: /tmp/claude-logs/issue-2202-2026-09-07T22-02-24-054Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #2202.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…rmissions fo

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=9 max=2

@propr-dev propr-dev Bot added the ultrafix label Sep 7, 2026
@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 9/10, max cycles: 2)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@integry

integry commented Sep 7, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@integry integry left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Root exactfb187235 inspected scoped native-authority copy/0755 normalization and Forge hook wiring. Focused permission tests2/2 PASS, including group-writable Linux/macOS input/target and umask0002, preserved digest and unchanged Windows behavior. Source-built real DEB reproduction remains to be independently verified after integration; no validator weakened. Ultrafix review requested.

@propr-dev

propr-dev Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

This PR cleanly extracts native-artifact packaging and deterministically normalizes Unix permissions to 0755. It is ready to merge within scope, conditional on the remaining checks completing successfully.

✅ Deterministic permissions — copyPackagedNativeAuthority applies chmodSync(..., 0o755) after every Linux/macOS copy, independent of source mode, umask, or an existing target’s permissions.

✅ Platform behavior preserved — Linux and Darwin artifacts retain their established paths, MAS correctly maps to Darwin prebuilds, and Windows continues to package none.

✅ Focused regression coverage — Tests reproduce 0775 sources and existing targets under umask 0002, verify exact target modes and content digests, and confirm Windows creates no native-artifact directory.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Cover the MAS mapping

Consider adding a small assertion for packagedConnectNativeArtifacts('mas', arch) or exercising copyPackagedNativeAuthority with MAS. The changed helper explicitly aliases MAS to Darwin prebuilds, while the tests cover Darwin, Linux, and Windows only. This is optional because the branch is straightforward and preserves the prior mapping.

Score

The implementation satisfies the objective with a localized change and strong regression coverage, with no verified code blockers or failing current-head checks. The remaining cross-platform checks are pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 49s
  • Tokens: 27,610 (26,274 in / 1,336 out)
  • Cost: $0.12

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry integry left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent exactfb187235 real artifact verification PASS: built exact-commit app/UI local images+manifest, then Linux make:deb under umask0002 with no manual chmod of outputs. Unpacked directory-operations.node mode0755; dpkg-deb/tar payload lists -rwxr-xr-x root/root at usr/lib/propr-desktop/resources/app.asar.unpacked/.vite/native/prebuilds/linux-x64/directory-operations.node. Addon SHA256 remains7199378f1c7b443a05c596eae7c66f9a77cc01b4a493c07748df0df1083950f6. DEB SHA25665d03df5f253786e261d2d469a5016bef38b8214fb45ea8152c9bd600837562a. Build log /tmp/propr-2209-package.log; manifest /tmp/propr-2172-review.uOpOSo/manifest-fb187235/manifest.json. Root2/2 focused regressions pass; Ultrafix9/10 no blockers. Running isolated app remainsb583, not replaced by this child artifact.

@integry integry mentioned this pull request Sep 7, 2026
11 of 14 tasks
@integry
integry merged commit b7604da into 1950-epic-cross-platform-dsk Sep 7, 2026
38 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant