docs: record the decision on foreign in published packages (#84) #758

Merged
argus merged 1 commit from loop/740-foreign-decision into main 2026-11-13 15:55:36 +00:00
Collaborator

Records the owner decision of 2026-11-09 (option 2 of #84) in FOREIGN.md (header, section 1, 5.3, 9, 11, 12), RELEASE.md (section 2 row, 7.2, closing note) and FIRST-PARTY.md (rows 7 and 9, principle 2). A published package may declare foreign functions against libraries already on the user's machine and carries no C sources; foreign stays visible in source, in torb add and in the lock, and is never grantable to a sandboxed script. The options table stays as the weighed alternatives; option 3 stays a later decision.

Docs only; seed: no. COMPUTE.md and package-capabilities.md say nothing open and are unchanged. The grep for "owner decision (#84)" and "open, see [FOREIGN" in docs/ finds nothing.

Step 2 of #84.

Closes #740

Records the owner decision of 2026-11-09 (option 2 of #84) in FOREIGN.md (header, section 1, 5.3, 9, 11, 12), RELEASE.md (section 2 row, 7.2, closing note) and FIRST-PARTY.md (rows 7 and 9, principle 2). A published package may declare `foreign` functions against libraries already on the user's machine and carries no C sources; `foreign` stays visible in source, in `torb add` and in the lock, and is never grantable to a sandboxed script. The options table stays as the weighed alternatives; option 3 stays a later decision. Docs only; seed: no. COMPUTE.md and package-capabilities.md say nothing open and are unchanged. The grep for "owner decision (#84)" and "open, see [FOREIGN" in docs/ finds nothing. Step 2 of #84. Closes #740
docs: record the decision on foreign in published packages (#84)
All checks were successful
ci / commit messages (pull_request) Successful in 5s
ci / what the change touches (pull_request) Successful in 6s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 11s
ci / which runners exist (pull_request) Successful in 1s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 12m13s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m6s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 3m52s
ci / tier A (linux-x64) (pull_request) Successful in 39m44s
ci / pack the seed (pull_request) Successful in 14s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
a9ce24737a
Owner decision 2026-11-09, option 2: a published package may declare foreign functions against libraries on the user's machine and carries no C sources.
argus approved these changes 2026-11-13 15:55:33 +00:00
argus left a comment

Checklist for a9ce247:

  • Tests/CI: docs only; combined status success (pdisc, gates, bootstrap, conformance green; the rest skipped by path).
  • Correctness: the diff states option 2 of #84 exactly as recorded in #84 (owner answer by torben, 2026-11-09: declarations only, no C sources, foreign visible in source/torb add/lock, never grantable to a sandbox; option 3 stays a later decision). FOREIGN.md 5.3 keeps the options table. The acceptance greps for #740 come back clean on the head (no remaining "open, owner decision (#84)" or "open, see [FOREIGN").
  • Scope: FOREIGN.md, RELEASE.md (section 2 row, 7.2, closing note) and FIRST-PARTY.md (rows 7 and 9, principle 2), as #740 asks. COMPUTE.md and package-capabilities.md need no change.
  • Security/data/architecture/UI/release: nothing touched.

Non-blocking:

  1. FOREIGN.md section 9, first bullet: "whether a published package may not carry C (decided 2026-11-09, section 5.3)" reads as a double negative; "a published package carries no C sources (decided ...)" would be clearer.
  2. The PR body says Closes #740, while #740 asks for Closes #84; #84 stays open after the merge, so close it by hand if its acceptance criteria are met.
Checklist for a9ce247: - Tests/CI: docs only; combined status success (pdisc, gates, bootstrap, conformance green; the rest skipped by path). - Correctness: the diff states option 2 of #84 exactly as recorded in #84 (owner answer by `torben`, 2026-11-09: declarations only, no C sources, `foreign` visible in source/`torb add`/lock, never grantable to a sandbox; option 3 stays a later decision). FOREIGN.md 5.3 keeps the options table. The acceptance greps for #740 come back clean on the head (no remaining "open, owner decision (#84)" or "open, see [FOREIGN"). - Scope: FOREIGN.md, RELEASE.md (section 2 row, 7.2, closing note) and FIRST-PARTY.md (rows 7 and 9, principle 2), as #740 asks. COMPUTE.md and package-capabilities.md need no change. - Security/data/architecture/UI/release: nothing touched. Non-blocking: 1. FOREIGN.md section 9, first bullet: "whether a published package may not carry C (decided 2026-11-09, section 5.3)" reads as a double negative; "a published package carries no C sources (decided ...)" would be clearer. 2. The PR body says `Closes #740`, while #740 asks for `Closes #84`; #84 stays open after the merge, so close it by hand if its acceptance criteria are met.
argus merged commit 61e362670a into main 2026-11-13 15:55:36 +00:00
argus deleted branch loop/740-foreign-decision 2026-11-13 15:55:36 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!758
No description provided.