Skip to content

make-dev-utilities#135

Open
AndreasAbdi wants to merge 4 commits into
mainfrom
make-dev-utilities
Open

make-dev-utilities#135
AndreasAbdi wants to merge 4 commits into
mainfrom
make-dev-utilities

Conversation

@AndreasAbdi

Copy link
Copy Markdown
Contributor

{
"project": "Model Atlas — Developer Utilities Command Surface",
"branchName": "make-dev-utilities",
"description": "Repair the broken generated-content-aware local developer workflow and reduce the default Make and Bun command surface to a small, consistent set of maintainer commands for local run, build, test, lint, validate, generate, help, and CI.",
"context": {
"customerAsk": "Fix make dev, which broke after the project switched to generating many pages and derived artifacts. Clean up the Makefile and package.json command surface so developers have clear commands for code generation, linting, validation, testing, local build, and local run without needing to choose from many phase-specific test and verification commands.",
"problem": "The repository currently mixes top-level developer workflows with many low-level generation and phase-specific verification commands. make dev does not clearly reflect the generated-content prerequisites the site now depends on, and a maintainer cannot infer a simple happy path for local work from the command surface itself.",
"solution": "Define one supported maintainer workflow across Makefile and package.json: dev, build, test, lint, validate, generate, ci, and help. Make dev and build run the required generated-content preparation steps, keep specialized verifiers available only as internal or advanced utilities, and add command-level verification so generated-page changes cannot silently break the supported local workflow again."
},
"acceptanceCriteria": [
"make dev prepares the generated-content prerequisites required by the current site and starts the local docs app without requiring a maintainer to run extra generation commands first.",
"The supported top-level command surface is limited to a short maintainer workflow covering local run, build, test, lint, validate, generate, CI, and a discoverable help summary.",
"Makefile and package.json expose aligned behavior for the supported workflows so maintainers do not need to learn two different command vocabularies.",
"Specialized phase-specific verification commands remain available only as internal or advanced utilities and are no longer the primary commands a maintainer encounters first.",
"Build, validation, and test workflows reuse explicit generation prerequisites instead of depending on hidden manual sequencing by the developer.",
"Command-level verification proves the supported workflow works from a fresh local state and catches regressions when generation requirements change.",
"Quality gate: typecheck, lint, and the relevant automated tests pass."
],
"userStories": [
{
"id": "make-dev-utilities-001",
"title": "Restore a generated-content-aware local dev entrypoint",
"description": "As a developer running the docs site locally, I want make dev to prepare the generated artifacts the app now depends on so I can start the site from a normal checkout without memorizing extra setup commands.",
"acceptanceCriteria": [
"Running make dev from the repository root triggers the required generation and validation prerequisites for local development before the Next.js dev server starts.",
"The command works when generated page outputs are missing or stale; it regenerates what is needed instead of failing with missing-runtime-artifact errors.",
"The dev workflow avoids unnecessary production-only checks that would make normal local startup unexpectedly slow or brittle.",
"A maintainer-visible failure during preparation names the missing or invalid prerequisite and the command that can repair it.",
"Typecheck passes",
"Tests pass"
],
"priority": 1,
"passes": true,
"notes": ""
},
{
"id": "make-dev-utilities-002",
"title": "Provide one small supported command surface for common maintainer workflows",
"description": "As a developer new to the repository, I want a short list of top-level commands for the common workflows so I can immediately tell how to run, build, test, lint, validate, and regenerate the project.",
"acceptanceCriteria": [
"The default top-level workflow includes commands for dev, build, test, lint, validate, generate, ci, and help.",
"make help or an equivalent top-level discoverability command prints a concise summary describing what each supported workflow command does.",
"The top-level command names describe maintainer goals rather than internal implementation phases.",
"The command surface does not require a maintainer to choose among many phase-specific test or convergence commands to do normal local work.",
"Typecheck passes",
"Tests pass"
],
"priority": 2,
"passes": true,
"notes": ""
},
{
"id": "make-dev-utilities-003",
"title": "Align Make and Bun workflows while demoting noisy internal commands",
"description": "As a maintainer switching between make and bun run, I want the same workflow names and behavior in both places so the tooling feels consistent and the advanced scripts do not crowd the default interface.",
"acceptanceCriteria": [
"Each supported top-level workflow has a matching Bun script and Make target with equivalent observable behavior.",
"Internal generators, narrow verifiers, and phase-specific checks are grouped behind a clearly advanced or internal namespace instead of appearing as the primary everyday workflow.",
"Existing CI or specialist workflows that depend on deeper verification can still invoke those internal commands without changing the user-facing default workflow.",
"Cleanup of Makefile and package.json removes redundant aliases and contradictory entrypoints rather than merely adding more wrappers.",
"Typecheck passes",
"Tests pass"
],
"priority": 3,
"passes": true,
"notes": ""
},
{
"id": "make-dev-utilities-004",
"title": "Add command-contract verification for the supported workflow",
"description": "As a maintainer, I want automated proof around the supported developer commands so future content-generation changes do not silently break local workflows again.",
"acceptanceCriteria": [
"Automated tests or command-contract checks cover the supported top-level workflows that changed in this work item, including at least dev preparation, build, validate, and one aggregate quality command.",
"The checks assert observable outcomes such as successful exit status, expected prerequisite generation, or expected help output instead of asserting internal file inventories unless those files are part of the command contract.",
"A regression where generated page prerequisites are omitted from dev or build causes automated failure.",
"The verification remains focused on the supported workflow surface and does not expand into unrelated command-cleanup assertions.",
"Typecheck passes",
"Tests pass"
],
"priority": 4,
"passes": true,
"notes": ""
}
]
}

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Implemented story make-dev-utilities-004 on commit 9876379.

Changes in this iteration:

  • added fresh-checkout contract coverage for make build and make validate
  • extracted shared fresh-checkout helpers so the dev/build/validate proofs use the same artifact expectations
  • wired the supported maintainer workflow proofs into the required test:verify-contract path via test:maintainer-contract
  • updated the CI contract assertion so the aggregate make ci path and required verifier wiring stay aligned

Validation run locally:

  • bun run lint
  • bun run internal:typecheck
  • bun run test:verify-contract

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Implemented story \ on commit .

Changes in this iteration:

  • added fresh-checkout contract coverage for \bun run build
    Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    wrote src/lib/content/published-docs-registry-manifest.ts
    Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
    ▲ Next.js 16.2.7 (webpack)

[MDX] generated files in 43.54150000000004ms
Creating an optimized production build ...
✓ Compiled successfully in 20.0s
Running TypeScript ...
Finished TypeScript in 6.3s ...
Collecting page data using 9 workers ...
Generating static pages using 9 workers (0/225) ...
Generating static pages using 9 workers (56/225)
Generating static pages using 9 workers (112/225)
Generating static pages using 9 workers (168/225)
✓ Generating static pages using 9 workers (225/225) in 6.0s
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/training
│ ├ /vi/docs/training
│ └ /ja/docs/training
├ ƒ /[locale]/search
├ ● /[locale]/tags
│ ├ /vi/tags
│ └ /ja/tags
├ ● /[locale]/tags/[slug]
│ ├ /vi/tags/activation
│ ├ /vi/tags/attention
│ ├ /vi/tags/context-window
│ └ [+23 more paths]
├ ƒ /api/search
├ ○ /browse
├ ○ /component-examples
├ ● /docs/[[...slug]]
│ ├ /docs/getting-started
│ ├ /docs/concepts/calibration
│ ├ /docs/concepts/alibi
│ └ [+123 more paths]
├ ○ /docs/architecture
├ ○ /docs/concepts
├ ○ /docs/glossary
├ ○ /docs/models
├ ○ /docs/modules
├ ○ /docs/papers
├ ○ /docs/systems
├ ○ /docs/training
├ ƒ /search
├ ○ /tags
└ ● /tags/[slug]
├ /tags/activation
├ /tags/attention
├ /tags/context-window
└ [+10 more paths]

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

Wrote /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/.next/verify-build-source-fingerprint (9876379…).
bun ./scripts/verify-phase-1-static-routes.ts
Required static routes verified (20 paths).
bun ./scripts/verify-grouped-query-attention-built-route.ts
Grouped-query-attention built route convergence verified (Phase 1 module markers).
bun ./scripts/verify-docs-footer-hover-built-route.ts
Docs footer hover/focus-visible paint verified on production build. and \bun run validate
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
wrote src/lib/content/published-docs-registry-manifest.ts
Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
[MDX] generated files in 17.66466700000001ms
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
wrote src/lib/content/published-docs-registry-manifest.ts
Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
Registry validation passed.
Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
[MDX] generated files in 15.794167000000002ms
Link validation passed.

  • extracted shared fresh-checkout helpers so the //\ proofs use the same artifact expectations
  • wired the supported maintainer workflow proofs into the required \ path via \
  • updated the CI contract assertion so the aggregate \bun run lint
    Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    Checked 1593 files in 336ms. No fixes applied.
    bun run internal:typecheck
    Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    wrote src/lib/content/published-docs-registry-manifest.ts
    Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    [MDX] generated files in 16.49266700000001ms
    bun run test
    Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    wrote src/lib/content/published-docs-registry-manifest.ts
    Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    [MDX] generated files in 17.012417ms
    Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    bun test v1.3.13 (bf2e2cec)
    bun test v1.3.13 (bf2e2cec)
    bun test v1.3.13 (bf2e2cec)
    bun test v1.3.13 (bf2e2cec) path and required verifier wiring stay aligned

Validation run locally:

  • \Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    Checked 1593 files in 339ms. No fixes applied.
  • \Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    wrote src/lib/content/published-docs-registry-manifest.ts
    Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    [MDX] generated files in 16.234708000000012ms
  • \Wrote shipped localized docs manifest to /Users/abdifamily/work/learn-agent-factories/.claude/worktrees/make-dev-utilities/src/generated/shipped-localized-docs.ts
    wrote src/lib/content/published-docs-registry-manifest.ts
    Graph registry runtime already current: src/lib/content/graph-registry-runtime.generated.ts (48 graph records).
    Verified src/lib/content/registry-runtime.generated.ts from src/content/registry.
    [MDX] generated files in 16.136083999999997ms
    bun test v1.3.13 (bf2e2cec)
    bun test v1.3.13 (bf2e2cec)

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:\n\n- checked PR conversation comments and found no reviewer feedback or blocking PR conversation items to address\n- verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed\n- canceled stale Actions run 27842883763 after it had remained queued well past 15 minutes\n- GitHub replaced the canceled matrix with a new queued ci job on the same run, so the remaining blocker is GitHub-side runner execution rather than a reproduced branch failure\n\nI did not push a code change in this iteration because the current PR head already validates locally and there was no concrete code defect to fix from PR feedback.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • the required Actions run 27842883763 had been stuck queued since 2026-06-19T18:47:05Z
  • gh run cancel alone did not clear the stale aggregate ci job, so I force-cancelled the run through the Actions API and reran it
  • the rerun is now queued on the same head with fresh job IDs starting at 2026-06-19T18:52:33Z

No code changes were needed in this iteration; the remaining blocker is active GitHub runner scheduling within the fresh 15-minute wait window.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • verified the PR head still matches local HEAD and the reviewed diff is intact
  • inspected Actions run 27842883763 directly; the rerun has now started executing, with lint entering in_progress at 2026-06-19T18:55:36Z
  • the remaining blocker is active required CI on the fresh rerun, still inside the allowed wait window rather than a stale queue condition

No code changes were needed in this iteration; the branch remains in mergeability wait-state pending the live required checks.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the PR head still matches local HEAD and the reviewed diff is intact
  • verified there was no newer CI workflow run for make-dev-utilities; the only required run was the stale 27842883763
  • reran run 27842883763, which attached a fresh required matrix to the same head with new jobs starting at 2026-06-19T19:00:57Z

No code changes were needed in this iteration; the branch remains in required-CI follow-up while the fresh rerun is still inside the allowed wait window.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the PR head still matches local HEAD and the reviewed diff is intact
  • inspected the live required Actions run 27842883763 directly; every required job on the fresh rerun is still queued with startedAt 2026-06-19T19:00:57Z
  • because that rerun is only a couple of minutes old, the remaining blocker is active required CI inside the mandatory 15-minute wait window rather than a stale queue that should be canceled again

No code changes were needed in this iteration; the branch remains in mergeability wait-state pending the live required checks.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the PR head still matches local HEAD and the reviewed diff is intact
  • inspected the live required Actions run 27842883763 directly; every required job on the rerun is still queued with startedAt 2026-06-19T19:00:57Z
  • because that rerun is only about four minutes old as of 2026-06-19T19:04:45Z, the remaining blocker is active required CI inside the mandatory 15-minute wait window rather than a stale queue that should be canceled again

No code changes were needed in this iteration; the branch remains in mergeability wait-state pending the live required checks.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • re-verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed when run serially
  • confirmed an earlier local lint failure was a transient artifact-generation race from running multiple generation-heavy checks in parallel, not a persistent branch defect
  • canceled stale Actions run 27842883763, used the Actions force-cancel endpoint when the aggregate ci job stayed queued, and reran the workflow
  • the fresh required matrix restarted at 2026-06-19T19:08:44Z on the same head, so the remaining blocker is active required CI inside the allowed wait window

No code changes were needed in this iteration; the current branch is waiting on the fresh required checks.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • re-verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed
  • canceled stale Actions run 27842883763, which had been stuck with only lint completed while the rest of the required matrix remained queued since 2026-06-19T19:08:44Z
  • GitHub immediately attached a fresh queued aggregate ci job on the same reviewed head at 2026-06-19T19:13:26Z, so the remaining blocker is live required CI inside the fresh 15-minute wait window rather than a reproduced branch failure

No code changes were needed in this iteration; the branch remains in mergeability follow-up while the refreshed required checks run.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the branch name, local HEAD, and PR head still align on make-dev-utilities at 9876379073eb7bac17ba5e1328ae21793caf789a
  • inspected the active required Actions run 27842883763 directly; the only unresolved blocker is the fresh aggregate ci job, still queued from 2026-06-19T19:13:26Z
  • because that queued job is only about 83 seconds old as of 2026-06-19T19:14:49Z, it is still inside the mandatory 15-minute wait window rather than a stale run that should be canceled again
  • verified via gh pr view --json files that the reviewed code changes are still present in the PR diff

No code changes were needed in this iteration; the branch remains in required-CI follow-up while the live run progresses.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • re-verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed when run serially
  • confirmed the stale required workflow had ended in an aggregate ci failure caused by previously canceled matrix legs, not by a reproduced code defect
  • reran run 27842883763, which attached a fresh pending required matrix to the same reviewed head with new job IDs

No code changes were needed in this iteration; the remaining blocker is live required CI on the rerun.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • re-verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed when run serially
  • confirmed required Actions run 27842883763 had gone stale again after internal-linkcheck completed, with the rest of the required matrix still queued from 2026-06-19T19:17:12Z
  • gh run cancel returned a GitHub API 500, so I used the Actions force-cancel endpoint and verified the rerun attached a fresh required matrix on the same reviewed head with new job IDs starting at 2026-06-19T19:25:34Z
  • verified the branch, local HEAD, and PR head still align on make-dev-utilities at 9876379073eb7bac17ba5e1328ae21793caf789a

No code changes were needed in this iteration; the remaining blocker is live required CI on the fresh rerun.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head :

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the branch, local HEAD, and PR head still align on at
  • force-cancelled stale required Actions run after returned a GitHub API 500, then confirmed GitHub attached a fresh required matrix on the same head at
  • verified the reviewed code changes remain present in the PR diff and there was no new code defect to fix locally

No code changes were needed in this iteration; the remaining blocker is the fresh required CI matrix, which is still inside the mandatory 15-minute wait window.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • confirmed the branch, local HEAD, and PR head still align on make-dev-utilities at 9876379073eb7bac17ba5e1328ae21793caf789a
  • force-cancelled stale required Actions run 27842883763 after gh run cancel returned a GitHub API 500, then confirmed GitHub attached a fresh required matrix on the same head at 2026-06-19T19:27:38Z
  • verified the reviewed code changes remain present in the PR diff and there was no new code defect to fix locally

No code changes were needed in this iteration; the remaining blocker is the fresh required CI matrix, which is still inside the mandatory 15-minute wait window.

@AndreasAbdi

Copy link
Copy Markdown
Contributor Author

Mergeability follow-up on head 9876379:

  • re-checked PR conversation comments and there is still no reviewer-authored blocking feedback to address
  • re-verified the current head locally with bun run lint, bun run internal:typecheck, and bun run test:verify-contract; all passed on 9876379073eb7bac17ba5e1328ae21793caf789a
  • confirmed required Actions run 27842883763 had remained fully queued and unchanged from 2026-06-19T19:27:38Z through 2026-06-19T19:43:37Z, so I treated it as stale mergeability work, canceled it, and reran the workflow
  • verified the rerun attached a fresh required matrix on the same reviewed head at 2026-06-19T19:44:26Z
  • confirmed via gh pr view --json files that the reviewed code changes are still present in the PR diff

No code changes were needed in this iteration; the remaining blocker is the fresh required CI matrix, which is still inside the mandatory 15-minute wait window.

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