Skip to content

spec(AST-093): Swift components live in the one apple/ package - #8245

Merged
cixzhang merged 1 commit into
mainfrom
spec/ast-093-apple-package
Oct 24, 2026
Merged

cixzhang merged 1 commit into
mainfrom
spec/ast-093-apple-package

Conversation

@cixzhang

Copy link
Copy Markdown
Contributor

Exact decision needed

Where Swift component specs live now that the Swift views are one package under packages/native/apple/.

Existing authority searched

  • spec:AST-093 FR1 places a Swift component's spec in packages/native/swift-ios-<n>/core/<Name>/, with a lowest-numbered-live-package rule for several generations.
  • The owner decided the Swift views move into the single packages/native/apple/ package, as products Astryx (views) and AstryxNative (contracts).

Decision

  • FR1: each language has one implementation package. For Swift that is packages/native/apple/, and a component's spec is packages/native/apple/Sources/Astryx/<Name>/<Name>.spec.md, beside its views. The lowest-numbered-package rule is removed.
  • Current-state impact: component folders and the interim views' parameter exemption name the Astryx product in apple/.

Rejected alternatives

  • Keeping a versioned swift-ios-<n> package: Swift Package Manager versions the package itself, and one package is what apps add.

Claim scope and non-goals

The spec's record form (a separate change) and FR2–FR6 are unchanged.

Evidence and implementation relationship

Record only. The SwiftUI views PR moves the views to this layout.

Writing rubric results

  • R1 narration: none.
  • R2 research in the record: none.
  • R3 evidence naming a change: none.
  • R4 rejected alternatives: one, in this PR body.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none.

Scope

  • One requirement and its Current-state notes; no implementation.
  • It records observable rules and preserves equivalent internal implementations.
  • Verification is unchanged.
  • One durable decision.
  • Canonical owner (AST-093), affected claims, and overlapping open work are named (the knowledge-record change also edits FR1 and rebases on this).
  • Public text contains no internal context.

Validation

Prettier-formatted with the repository config; spec validation runs in CI.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec f5128b8

@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 24, 2026 3:32pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Oct 24, 2026, 3:33 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 24, 2026
@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate label Oct 24, 2026
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: an engineering owner has approved moving Swift component specs to packages/native/apple/Sources/Astryx/<Name>/ for this head, but the package guidance that FR1 points to still sends specs to the old folder. packages/native/specs/TEMPLATE.md (line 4), packages/native/specs/README.md (lines 15–18 and 43), packages/native/specs/swift/README.md (line 6) and packages/native/specs/swift/library/README.md (line 5) still name swift-ios-1/core/<Name>/<Name>.spec.md, so a contributor who follows the template would put a spec where the new FR1 does not allow it. Please point those lines at the new path, either in this PR or in a packages/native/-only companion change, or name the stale files in Current-state impact until they move.

[Automated review]

Comment on lines +60 to 62
spec is `packages/native/apple/Sources/Astryx/<Name>/<Name>.spec.md`, beside
the component's views. `<Name>` is the core component's name. The spec follows
`packages/native/specs/TEMPLATE.md`: summary, contract, native control,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The template this sentence points to still gives the old location. packages/native/specs/TEMPLATE.md:3-4 tells contributors to copy it to packages/native/swift-ios-1/core/<Name>/<Name>.spec.md, and packages/native/specs/README.md:42-43, packages/native/specs/swift/README.md:5-6 and packages/native/specs/swift/library/README.md:4-5 repeat that path. Please point them at apple/Sources/Astryx/<Name>/<Name>.spec.md, or name them in Current-state impact until a packages/native/ change moves them.

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 064451a

@github-actions github-actions Bot removed the spec-auto-merge Auto-merge was enabled by the spec owner gate label Oct 24, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks ready: an engineering owner approved the FR1 change for this head, and the template and READMEs now give the same apple/Sources/Astryx/<Name>/<Name>.spec.md path as the record, which resolves the earlier request for changes. No further changes are needed here. As a follow-up outside this pull request, the draft Swift theme generator rules and draft AST-091 still describe swift-ios- paths and will need the new layout before they are approved.

[Automated review]

FR1 places a Swift component's spec in packages/native/apple/Sources/Astryx/<Name>/,
since each language has one implementation package, and drops the
lowest-numbered-package rule. Current-state impact names the Astryx product,
and the package spec guidance points at the new folder.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 24bc5e5

@cixzhang
cixzhang force-pushed the spec/ast-093-apple-package branch from 064451a to 24bc5e5 Compare October 24, 2026 15:24
@cixzhang
cixzhang merged commit dc9d776 into main Oct 24, 2026
66 checks passed
@github-actions
github-actions Bot deleted the spec/ast-093-apple-package branch October 25, 2026 06:20

This branch was successfully deployed

1 active deployment
Preview — 24bc5e59 Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant