Skip to content

spec(cli): AST-048 a change to an existing page starts from the app shell - #6862

Merged
josephfarina merged 2 commits into
mainfrom
specs/ast-048-existing-page-start
Oct 1, 2026
Merged

josephfarina merged 2 commits into
mainfrom
specs/ast-048-existing-page-start

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Exact decision needed

When a build request changes a page the builder already has ("add a sort
toggle to the existing reports page"), where does build's recommendation
start?

spec:AST-048 FR3 says a part of a page starts from the page template the
request places it in, and from the app shell when the request gives no page.
A request that changes an existing page names that page, but the page is the
builder's own: FR9 already tells that builder to keep it, and no template
scaffolds it. The record does not say whether such a request starts from the
named page's template or from the app shell.

Existing authority searched

Decision

  • FR3 gains one sentence: a request that changes a page the builder
    already has starts from the app shell (FR2), because the page is the
    builder's to keep (FR9) and no template scaffolds it.
  • DEC-4 gains the reason: a change to an existing page is the same case
    as a part with no page. The page is the builder's own, so no template is
    its start.
  • FR3 verification adds the state "a change to an existing page".

The draft architecture:template-authoring record also lists keywords
among the optional fields of every template entry, so the record matches the
authoring type the implementation adds. That row records no decision of its
own.

Rejected alternatives

  • Start a change from the named page's template. It scaffolds a second copy
    of a page the builder already has, against FR9.
  • Give a change no start. That breaks FR1 and DEC-1: every page build names
    one template.

Claim scope and non-goals

  • How build recognizes a change to an existing page, or a part of a page, is
    implementation (AST-048 non-goals: ranking is not contracted).
  • The kit's blocks and components, the text projection, and the JSON shape
    are unchanged.
  • keywords stays optional. No template is required to declare it.

Evidence and implementation relationship

#6805 implements this. A request that changes an existing page starts from
the app shell, and the start's reason says the page is the builder's to keep.
The record stays valid without that implementation.

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a review transcript or rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge
  • Prettier
  • git diff --check

FR3 says a part starts from the page template the request places it in. A
request that changes a page the builder already has names that page, but no
template scaffolds it: the page is the builder's to keep (FR9). This adds that
case to FR3, DEC-4 and FR3's verification row.

The template-authoring architecture's field table also lists the optional
`keywords` field every template entry may carry.
@vercel

vercel Bot commented Oct 1, 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 1, 2026 7:12pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 1, 2026
@astracat-bot

astracat-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Oct 1, 2026, 7:50 PM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

15 of 420 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Chat Full AI Chat probe light 155,733
Chat Full AI Chat probe dark 155,005
Chat Default neutral dark 33,205
Chat Default neutral light 32,876
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,229
Chat With Attachments probe dark 11,065
SideNav Resizable in AppShell probe dark 3,208
Markdown Default probe dark 897
Markdown Default probe light 897
Markdown Default neutral dark 882
Markdown Default neutral light 858

Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

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

Thanks for the precise write-up. Approval needs a maintainer decision before this can land: the change intentionally amends the current AST-048 rule, so a maintainer needs to update the existing spec for that intentional change.

What must be settled: whether AST-048 FR3 and DEC-4 on main should say that a request changing a page the builder already has starts from the app shell (FR2), because the page is the builder's to keep (FR9) and no template scaffolds it, instead of starting from the named page's template as FR3's first clause currently reads for part requests. The separable keywords row in the draft template-authoring record is already consistent with current AST-017 metadata rules and needs no decision.

One small actionable fix to land with the amendment: the FR3 verification row adds "a change to an existing page" as a representative state but states no failure signal for it, so consider extending the expectation to cover an existing-page change starting from that page's template.

[Automated review]

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec ba8ee43

@github-actions github-actions Bot removed the needs:spec-owner-review Current knowledge records await owner approval label Oct 1, 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.

Thanks for the precise write-up and for adding the missing failure signal.

Approval from this review needs a maintainer decision before this can land: the change intentionally amends the current AST-048 rule, so a maintainer needs to accept the update to the existing spec on main.

What must be settled: whether AST-048 FR3 and DEC-4 on main should say that a request changing a page the builder already has starts from the app shell (FR2), because the page is the builder's to keep (FR9) and no template scaffolds it, instead of starting from the named page's template as FR3's first clause currently reads for part requests. The separable keywords row in the draft template-authoring record is already consistent with current AST-017 metadata rules and needs no decision.

The FR3 verification row now covers the new case as well: it lists a change to an existing page as a representative state and names starting that change from the page's own template as a failure. The knowledge-record, formatting, and whitespace checks pass, and this PR changes records only, with no code or shipped behaviour change.

[Automated review]

@josephfarina
josephfarina merged commit db52d98 into main Oct 1, 2026
43 checks passed
@github-actions
github-actions Bot deleted the specs/ast-048-existing-page-start branch October 2, 2026 06:24

This branch was successfully deployed

1 active deployment
Preview — ba8ee432 Deployed Oct 1, 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