Skip to content

decoder-concept-page#211

Open
AndreasAbdi wants to merge 5 commits into
mainfrom
decoder-concept-page
Open

decoder-concept-page#211
AndreasAbdi wants to merge 5 commits into
mainfrom
decoder-concept-page

Conversation

@AndreasAbdi

Copy link
Copy Markdown
Contributor

{
"project": "Model Atlas — Decoder Canonical Concept Page",
"branchName": "decoder-concept-page",
"description": "Publish one canonical English decoder concept page, backed by the existing concept.decoder registry record and localized messages, so readers can understand what a decoder is, why decoder-only stacks fit next-token generation, and how to move through nearby GPT-style architecture and generation docs.",
"context": {
"customerAsk": "Customer ask alignment: the live queue has drifted below the requested 3-4 active worker floor because batch 027 no longer has three active execution lanes. Refill with one narrow, customer-visible concept page that strengthens the GPT-style reader path without colliding with the open attention, tokenizer, or training PR surfaces. Add the canonical English concept page for decoder using the existing published concept.decoder registry record on current main. Scope: create the canonical concept page plus colocated messages/en.json and any needed assets.json; classify it correctly with the project docs; wire aliases, tags, and related links so readers can move between gpt-2, gpt-3, autoregressive-generation, decode, causal-attention, transformer, and encoder-decoder; and add only the focused validation needed for the touched page and discovery surfaces. The page should explain in simple language what a decoder is, why decoder-only stacks are suited to next-token generation, and how a decoder differs from an encoder or an encoder-decoder model without turning the page into a paper survey. Keep the slice English-only and avoid locale work, attention-family rewrites, or broad taxonomy churn beyond what is required to land the page cleanly. Acceptance criteria: the decoder concept page exists on current main as a canonical docs page, resolves against the existing registry record, supports GPT-family discovery paths, and focused touched checks pass.",
"problem": "The repository already ships the published concept.decoder registry record and a glossary page for decoder, but it does not yet ship the canonical concept page that explains decoder as the broad architecture idea across language, seq2seq, and other generation settings. Readers therefore have a gap between the short glossary definition and the more specific pages for autoregressive-generation, decode, causal-attention, transformer, and encoder-decoder, with no plain-language bridge that explains what a decoder does, why decoder-only stacks naturally support next-token generation, and how that differs from encoder and encoder-decoder layouts.",
"solution": "Publish a canonical /docs/concepts/decoder page using the standard concept-page contract, English-only message-driven content, and a colocated assets.json only if one structured teaching asset is genuinely needed. Reuse the existing concept.decoder registry record, keep discovery metadata aligned with the broad concept, connect the page to the existing glossary entry and the nearby GPT-family, generation, and architecture surfaces already represented on current main, and add only the focused validation needed to prove route, message, registry, and discovery integrity for this narrow slice."
},
"acceptanceCriteria": [
"A published canonical docs page exists for decoder with kind: \"concept\", registryId: \"concept.decoder\", English messages, and a colocated assets.json.",
"The page follows the concept-page contract and docs-writing standards with one folded openingSummary, plain-language explanation, distinct section jobs, and no page-meta or process language.",
"The page explains what a decoder does, what decoder-only means in modern language models, and why left-to-right masked attention makes decoder stacks a natural fit for next-token generation.",
"The page clearly distinguishes decoder from encoder and from encoder-decoder systems without turning into a broad historical survey or paper roundup.",
"Registry-backed discovery metadata and relationships let readers move between the canonical decoder page and the touched gpt-2, gpt-3, autoregressive-generation, decode, causal-attention, transformer, and encoder-decoder surfaces on current main.",
"The implementation remains English-only and avoids unrelated locale, attention-family, tokenizer, or broad taxonomy churn.",
"Quality gate: typecheck, lint, and focused tests pass."
],
"userStories": [
{
"id": "decoder-concept-page-001",
"title": "Align the existing decoder record for canonical concept discovery",
"description": "As a reader searching for decoders in GPT-style systems, I want the existing concept.decoder registry record to behave like a first-class broad concept so discovery surfaces route me to one canonical explainer instead of only the glossary entry or scattered model mentions.",
"acceptanceCriteria": [
"The existing concept.decoder record remains the canonical backing record and is updated only as needed with aliases, tags, citations, or related ids that fit a broad decoder concept page.",
"Registry relationships connect the concept page to shipped nearby docs for autoregressive-generation, decode, causal-attention, transformer, and encoder-decoder, while preserving the glossary bridge for glossary/decoder.",
"Representative GPT-family discovery surfaces already published on current main, including gpt-3 and the current canonical gpt-2 surface if it exists as a model or paper-adjacent page, can point readers toward the canonical decoder explainer without creating new GPT-family pages in this slice.",
"Discovery metadata distinguishes the broad decoder concept page from the existing glossary entry without introducing duplicate canonical targets or broad taxonomy churn.",
"Typecheck passes",
"Tests pass"
],
"priority": 1,
"passes": true,
"notes": ""
},
{
"id": "decoder-concept-page-002",
"title": "Publish the canonical decoder concept page",
"description": "As a technical layperson learning how GPT-style models generate text, I want a dedicated decoder concept page so I can understand what the decoder stack does and why decoder-only models naturally support next-token generation.",
"acceptanceCriteria": [
"A canonical concept page exists at /docs/concepts/decoder with matching frontmatter, messages/en.json, and a colocated assets.json that is empty or minimal unless one decoder-oriented teaching asset is genuinely needed.",
"The page opens with one folded openingSummary and explains decoder in plain language before narrowing into GPT-style transformer usage.",
"The page clearly explains that a decoder turns internal context into output predictions, and that in decoder-only language models the same stack repeatedly predicts the next token from the tokens already seen.",
"The page clearly explains why causal or left-to-right attention makes decoder-only stacks suited to autoregressive generation.",
"The page clearly explains how encoder-decoder systems use a decoder differently from decoder-only stacks, and why encoder-only systems are usually built for representation or understanding rather than next-token output loops.",
"The page remains understandable in isolation for a first-time reader and complements the glossary entry rather than duplicating it word for word.",
"Typecheck passes",
"Tests pass",
"Verify in browser using the Browser plugin"
],
"priority": 2,
"passes": true,
"notes": ""
},
{
"id": "decoder-concept-page-003",
"title": "Route readers through the GPT-style decoder path",
"description": "As a reader moving through GPT-family architecture and generation topics, I want related docs, tags, and nearby page surfaces to guide me into the broad decoder explainer and onward to the right adjacent concepts.",
"acceptanceCriteria": [
"Representative discovery paths from gpt-3, the current canonical gpt-2 surface on main, autoregressive-generation, decode, causal-attention, transformer, and encoder-decoder expose the canonical decoder concept page as a reachable related destination where those surfaces are already published.",
"The concept page renders registry-backed related docs and tag surfaces that connect it to the named neighboring pages without hand-maintained duplicate navigation lists.",
"At least one touched neighboring discovery surface presents the new decoder page in a way a reviewer can follow without typing the exact concept slug directly.",
"Browser-visible rendering shows the title, folded summary, tags, and related-doc links without broken links or missing-content placeholders.",
"Typecheck passes",
"Tests pass",
"Verify in browser using the Browser plugin"
],
"priority": 3,
"passes": true,
"notes": ""
},
{
"id": "decoder-concept-page-004",
"title": "Add focused validation for the decoder concept-page slice",
"description": "As a maintainer, I want targeted automated proof for the decoder concept-page slice so route, message, registry, and discovery regressions are caught without unrelated test expansion.",
"acceptanceCriteria": [
"Validation or tests confirm the /docs/concepts/decoder route, concept.decoder record, and default English messages resolve together.",
"Coverage asserts at least one page-specific discovery outcome and at least one page-specific related-link or glossary-bridge expectation for the new decoder concept page.",
"Focused checks stay limited to touched content and discovery integrity rather than inventory snapshots, locale churn, attention-family rewrites, or unrelated suite expansion.",
"Typecheck passes",
"Tests pass"
],
"priority": 4,
"passes": true,
"notes": ""
}
]
}

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Implemented decoder-concept-page-004 by adding src/lib/content/decoder-concept-validation.test.ts.

This focused contract proves:

  • the published /docs/concepts/decoder route, concept.decoder registry record, and English messages resolve together,
  • canonical registryId lookup prefers the concept route while the glossary/decoder bridge remains published,
  • the decoder page assets validate cleanly, and
  • search/discovery still exposes the canonical decoder page while keeping the glossary bridge visible.

Local validation completed before push:

  • bun test src/lib/content/decoder-concept-validation.test.ts
  • bun run lint
  • bun run typecheck
  • bun run test

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Addressed the failing mergeability blocker on the current PR head after build-export failed in CI.

What changed:

  • hardened src/lib/verify/phase-1-search-dialog-checks.ts so the header search probe waits for the visible button[data-search], clears incidental page focus, and falls back to keyboard Enter activation when Playwright times out on a pointer click
  • added focused unit coverage in src/lib/verify/search-dialog-checks.test.ts for the normal click path, timeout fallback path, and non-timeout error passthrough

Local validation on commit 14fb41a:

  • bun test src/lib/verify/search-dialog-checks.test.ts src/lib/verify/export-search-ux-checks.test.ts
  • bun run build:export
  • bun ./scripts/verify-phase-1-export-search-ux.ts
  • bun run lint
  • bun run typecheck

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Addressed the failing mergeability blocker on the current PR head after failed in CI.\n\nWhat changed:\n- hardened so the header search probe waits for the visible , clears incidental page focus, and falls back to keyboard activation when Playwright times out on a pointer click\n- added focused unit coverage in for the normal click path, timeout fallback path, and non-timeout error passthrough\n\nLocal validation on commit :\n- bun test v1.3.13 (bf2e2cec)\n- [content-runtime] Removing stale generated Fumadocs bindings -> .source
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/graph-registry-runtime.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/registry-runtime.generated.ts
[content-runtime] Preparing shipped-localized-docs -> src/lib/content/generated/shipped-localized-docs.generated.ts (bun run generate:shipped-localized-docs)
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/src/lib/content/generated/shipped-localized-docs.generated.ts
[content-runtime] Preparing graph-registry-runtime -> src/lib/content/generated/graph-registry-runtime.generated.ts (bun run generate:graph-registry-runtime)
Graph registry runtime updated: src/lib/content/generated/graph-registry-runtime.generated.ts (61 graph records).
[content-runtime] Preparing published-docs-registry -> src/lib/content/generated/published-docs-registry.generated.ts (bun run generate:published-docs-registry)
wrote src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Preparing registry-runtime -> src/lib/content/generated/registry-runtime.generated.ts (bun run generate:registry-runtime)
Generated src/lib/content/generated/registry-runtime.generated.ts from src/content/registry.
[content-runtime] Preparing table-registry-runtime -> src/lib/content/generated/table-registry.generated.ts (bun run generate:table-registry)
[content-runtime] Prepared 5 runtime steps successfully.
[MDX] generated files in 26.292416000000003ms
Graph registry runtime already current: src/lib/content/generated/graph-registry-runtime.generated.ts (61 graph records).
[MDX] generated files in 67.93570900000009ms
▲ Next.js 16.2.7 (webpack)

Creating an optimized production build ...
✓ Compiled successfully in 13.9s
Running TypeScript ...
Finished TypeScript in 13.1s ...
Collecting page data using 9 workers ...
Generating static pages using 9 workers (0/254) ...
Generating static pages using 9 workers (63/254)
Generating static pages using 9 workers (126/254)
Generating static pages using 9 workers (190/254)
✓ Generating static pages using 9 workers (254/254) in 13.4s
Finalizing page optimization ...
Collecting build traces ...

Route (app)
┌ ○ /
├ ○ /_not-found
├ ● /[locale]
│ ├ /vi
│ └ /ja
├ ● /[locale]/browse
│ ├ /vi/browse
│ └ /ja/browse
├ ● /[locale]/docs/[[...slug]]
│ ├ /vi/docs/concepts/transformer-architecture
│ ├ /vi/docs/glossary/autoregressive-generation
│ ├ /vi/docs/glossary/embedding
│ └ [+17 more paths]
├ ● /[locale]/docs/architecture
│ ├ /vi/docs/architecture
│ └ /ja/docs/architecture
├ ● /[locale]/docs/concepts
│ ├ /vi/docs/concepts
│ └ /ja/docs/concepts
├ ● /[locale]/docs/glossary
│ ├ /vi/docs/glossary
│ └ /ja/docs/glossary
├ ● /[locale]/docs/models
│ ├ /vi/docs/models
│ └ /ja/docs/models
├ ● /[locale]/docs/modules
│ ├ /vi/docs/modules
│ └ /ja/docs/modules
├ ● /[locale]/docs/papers
│ ├ /vi/docs/papers
│ └ /ja/docs/papers
├ ● /[locale]/docs/systems
│ ├ /vi/docs/systems
│ └ /ja/docs/systems
├ ● /[locale]/docs/timeline
│ ├ /vi/docs/timeline
│ └ /ja/docs/timeline
├ ● /[locale]/docs/training
│ ├ /vi/docs/training
│ └ /ja/docs/training
├ ● /[locale]/search
│ ├ /vi/search
│ └ /ja/search
├ ● /[locale]/tags
│ ├ /vi/tags
│ └ /ja/tags
├ ● /[locale]/tags/[slug]
│ ├ /vi/tags/activation
│ ├ /vi/tags/alignment
│ ├ /vi/tags/attention
│ └ [+25 more paths]
├ ● /[locale]/topology
│ ├ /vi/topology
│ └ /ja/topology
├ ƒ /api/search
├ ○ /browse
├ ○ /component-examples
├ ● /docs/[[...slug]]
│ ├ /docs/getting-started
│ ├ /docs/concepts/calibration
│ ├ /docs/concepts/activation-quantization
│ └ [+143 more paths]
├ ○ /docs/architecture
├ ○ /docs/concepts
├ ○ /docs/glossary
├ ○ /docs/models
├ ○ /docs/modules
├ ○ /docs/papers
├ ○ /docs/systems
├ ○ /docs/timeline
├ ○ /docs/training
├ ○ /search
├ ○ /tags
├ ● /tags/[slug]
│ ├ /tags/activation
│ ├ /tags/alignment
│ ├ /tags/attention
│ └ [+11 more paths]
└ ○ /topology

○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
ƒ (Dynamic) server-rendered on demand

Wrote advanced Orama search bootstrap to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/out/api/search, /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/out/api/search.vi, /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/out/api/search.ja.
Wrote /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/.next/verify-build-source-fingerprint (14fb41a…).\n- Phase 1 static export search UX verified.\n- [content-runtime] Removing stale generated Fumadocs bindings -> .source
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/graph-registry-runtime.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/registry-runtime.generated.ts
[content-runtime] Preparing shipped-localized-docs -> src/lib/content/generated/shipped-localized-docs.generated.ts (bun run generate:shipped-localized-docs)
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/src/lib/content/generated/shipped-localized-docs.generated.ts
[content-runtime] Preparing graph-registry-runtime -> src/lib/content/generated/graph-registry-runtime.generated.ts (bun run generate:graph-registry-runtime)
Graph registry runtime updated: src/lib/content/generated/graph-registry-runtime.generated.ts (61 graph records).
[content-runtime] Preparing published-docs-registry -> src/lib/content/generated/published-docs-registry.generated.ts (bun run generate:published-docs-registry)
wrote src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Preparing registry-runtime -> src/lib/content/generated/registry-runtime.generated.ts (bun run generate:registry-runtime)
Generated src/lib/content/generated/registry-runtime.generated.ts from src/content/registry.
[content-runtime] Preparing table-registry-runtime -> src/lib/content/generated/table-registry.generated.ts (bun run generate:table-registry)
[content-runtime] Prepared 5 runtime steps successfully.
Checked 1867 files in 841ms. No fixes applied.\n- [content-runtime] Removing stale generated Fumadocs bindings -> .source
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/graph-registry-runtime.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Invalidating stale ignored generated runtime output -> src/lib/content/generated/registry-runtime.generated.ts
[content-runtime] Preparing shipped-localized-docs -> src/lib/content/generated/shipped-localized-docs.generated.ts (bun run generate:shipped-localized-docs)
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/decoder-concept-page/src/lib/content/generated/shipped-localized-docs.generated.ts
[content-runtime] Preparing graph-registry-runtime -> src/lib/content/generated/graph-registry-runtime.generated.ts (bun run generate:graph-registry-runtime)
Graph registry runtime updated: src/lib/content/generated/graph-registry-runtime.generated.ts (61 graph records).
[content-runtime] Preparing published-docs-registry -> src/lib/content/generated/published-docs-registry.generated.ts (bun run generate:published-docs-registry)
wrote src/lib/content/generated/published-docs-registry.generated.ts
[content-runtime] Preparing registry-runtime -> src/lib/content/generated/registry-runtime.generated.ts (bun run generate:registry-runtime)
Generated src/lib/content/generated/registry-runtime.generated.ts from src/content/registry.
[content-runtime] Preparing table-registry-runtime -> src/lib/content/generated/table-registry.generated.ts (bun run generate:table-registry)
[content-runtime] Prepared 5 runtime steps successfully.
[MDX] generated files in 25.120333000000016ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant