foreign: record the owner decision on published packages in FOREIGN.md, RELEASE.md and FIRST-PARTY.md (step 2 of #84) #740

Closed
opened 2026-11-13 11:29:00 +00:00 by orion · 2 comments
Collaborator

Goal

Write the owner's decision on foreign in published packages into the design records. Step 2 of #84; the technical record is #459 (merged as #460).

Decision (owner, 2026-11-09, option 2 of #84)

A published package may declare foreign functions against libraries already on the user's machine. It carries no C sources. foreign stays visible in source, shown by torb add and the lock, and is never grantable to a sandboxed script. Option 3 (C sources for torb/*) stays a later, separate decision.

Implements

docs/design/FOREIGN.md section 5.3 (the option table and "open, owner decision"), RELEASE.md section 2 (the foreign row). Seed: no (docs only, no syntax, native, driver flag or std name).

Requirements

  • R1: Where the records say "open, owner decision (#84)" or "open, see FOREIGN.md section 5.3", they say "decided 2026-11-09: option 2" and give the rule above.
  • R2: The records keep the options table as the weighed alternatives, with option 2 marked as the decision.

Acceptance criteria

  • docs/design/FOREIGN.md: the heading and text of section 5.3 say decided (option 2, 2026-11-09), the "The answer is written by a follow-up PR" paragraph is replaced by the rule; the header lines 9-11 and section 1 (line 38-39) and section 11 item 6 no longer call it open.
  • docs/design/RELEASE.md: the section 2 row (line 108), section 7.2 (line 943, "no C at all until foreign is decided") and the "Not a decision about foreign functions" note (line 1799-1800) state the decision: declarations allowed, no C sources in a package archive.
  • docs/design/FIRST-PARTY.md: rows 7 and 9 of the lists (lines 44, 171, 324) say the decision is made and torb/sqlite waits only for foreign slices 1 to 5 of FOREIGN.md section 10.
  • docs/design/COMPUTE.md section 2 and docs/tooling/package-capabilities.md need no change unless they say "open"; if they do, fixed.
  • grep -rn "owner decision (#84)\|open, see \[FOREIGN" docs/ finds nothing.
  • Docs only; torb format/gates not affected; regenerate skills/ if the docs gate asks for it; one Conventional Commit docs: record the decision on foreign in published packages (#84); PR body Closes #84.

Notes

Model sonnet, thinking medium. Do not run builds or gates locally; forge CI reads them.

## Goal Write the owner's decision on `foreign` in published packages into the design records. Step 2 of #84; the technical record is #459 (merged as #460). ## Decision (owner, 2026-11-09, option 2 of #84) A published package may declare `foreign` functions against libraries already on the user's machine. It carries no C sources. `foreign` stays visible in source, shown by `torb add` and the lock, and is never grantable to a sandboxed script. Option 3 (C sources for `torb/*`) stays a later, separate decision. ## Implements `docs/design/FOREIGN.md` section 5.3 (the option table and "open, owner decision"), RELEASE.md section 2 (the `foreign` row). Seed: no (docs only, no syntax, native, driver flag or std name). ## Requirements - R1: Where the records say "open, owner decision (#84)" or "open, see FOREIGN.md section 5.3", they say "decided 2026-11-09: option 2" and give the rule above. - R2: The records keep the options table as the weighed alternatives, with option 2 marked as the decision. ## Acceptance criteria - [ ] `docs/design/FOREIGN.md`: the heading and text of section 5.3 say decided (option 2, 2026-11-09), the "The answer is written by a follow-up PR" paragraph is replaced by the rule; the header lines 9-11 and section 1 (line 38-39) and section 11 item 6 no longer call it open. - [ ] `docs/design/RELEASE.md`: the section 2 row (line 108), section 7.2 (line 943, "no C at all until `foreign` is decided") and the "Not a decision about foreign functions" note (line 1799-1800) state the decision: declarations allowed, no C sources in a package archive. - [ ] `docs/design/FIRST-PARTY.md`: rows 7 and 9 of the lists (lines 44, 171, 324) say the decision is made and `torb/sqlite` waits only for `foreign` slices 1 to 5 of FOREIGN.md section 10. - [ ] `docs/design/COMPUTE.md` section 2 and `docs/tooling/package-capabilities.md` need no change unless they say "open"; if they do, fixed. - [ ] `grep -rn "owner decision (#84)\|open, see \[FOREIGN" docs/` finds nothing. - [ ] Docs only; `torb format`/gates not affected; regenerate `skills/` if the docs gate asks for it; one Conventional Commit `docs: record the decision on foreign in published packages (#84)`; PR body `Closes #84`. ## Notes Model sonnet, thinking medium. Do not run builds or gates locally; forge CI reads them.
Author
Collaborator

[loop:torbscript] claim implement by session:loop-torbscript-20261113 until 2026-11-13T19:15Z

[loop:torbscript] claim implement by session:loop-torbscript-20261113 until 2026-11-13T19:15Z
Author
Collaborator

[loop:torbscript] implement: PR #758 opened (head a9ce2473, Closes #740), docs only. CI at 15:04: commit messages, what-the-change-touches, pdisc and bootstrap (linux-x64) green, 11 jobs skipped, 6 pending (gates, tier A, pack the seed, archives, two conformance jobs), no failures. Next: waiting (CI running); review (Argus) once green.

[loop:torbscript] implement: PR #758 opened (head a9ce2473, Closes #740), docs only. CI at 15:04: commit messages, what-the-change-touches, pdisc and bootstrap (linux-x64) green, 11 jobs skipped, 6 pending (gates, tier A, pack the seed, archives, two conformance jobs), no failures. Next: waiting (CI running); review (Argus) once green.
argus closed this issue 2026-11-13 15:55:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#740
No description provided.