Skip to content

docs(registry): document the full dataset workflow#13

Merged
lspassos1 merged 2 commits intomainfrom
docs/dataset-registry-workflow
Apr 11, 2026
Merged

docs(registry): document the full dataset workflow#13
lspassos1 merged 2 commits intomainfrom
docs/dataset-registry-workflow

Conversation

@lspassos1
Copy link
Copy Markdown
Owner

Summary

This documents the registry-first workflow now that bootstrap generation, health generation, and freshness enforcement are split into smaller fork-side PRs.

Root cause

The original rollout notes still assumed a child-issue chain and did not reflect the actual fork process the repo should follow: one detailed tracking issue with several narrow PRs.

Changes

  • add docs/architecture/dataset-registry.md
  • document the generated bootstrap and health artifacts
  • document the required local validation commands
  • document the single-issue, multi-PR fork workflow centered on #5

Validation

  • npm run registry:check

Risk

Low. Documentation only.

Refs #5
Depends on #12

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 11, 2026

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

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Apr 11, 2026 9:45pm

@lspassos1
Copy link
Copy Markdown
Owner Author

@greptileai

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 11, 2026

Greptile Summary

This PR adds docs/architecture/dataset-registry.md, documenting the registry-first dataset workflow that was split across PRs #10#12. The document accurately describes the single source-of-truth pattern (registry/datasets.ts), the three generated runtime artifacts, the local validation commands, and the fork-first contribution model tracked in issue #5.

All referenced npm scripts (registry:check, registry:generate, test:data, typecheck, typecheck:api) exist in package.json. All named test files (tests/bootstrap.test.mjs, tests/market-breadth.test.mjs, tests/customs-revenue.test.mjs, tests/resilience-static-seed.test.mjs, tests/edge-functions.test.mjs) exist. The three generated artifact paths and the source file registry/datasets.ts are all present. The claim that registry:check runs in the pre-push hook (.husky/pre-push:58) and in .github/workflows/typecheck.yml:46 is verified correct.

  • All npm scripts and test file paths referenced are accurate and verified to exist.
  • The stacked PR sequence at the end lists this docs PR as an unnamed, future-tense bullet (docs PR: …after the code slices land). After merge, that entry describes already-completed work without a PR number, which may confuse future contributors.

Confidence Score: 5/5

Safe to merge — documentation only, all referenced paths and scripts verified accurate.

Every npm script, test file, generated artifact, and workflow reference in the document was verified to exist in the codebase. The single comment flagged is a minor P2 style issue (stale self-referential bullet) that does not affect correctness or behaviour.

No files require special attention.

Important Files Changed

Filename Overview
docs/architecture/dataset-registry.md New documentation file; all referenced scripts, test files, and generated artifacts verified to exist. Minor: the final stacked-PR entry is a self-reference with no PR number that will appear as pending work after merge.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Edit registry/datasets.ts] --> B[npm run registry:generate]
    B --> C1[api/_generated/dataset-registry.js]
    B --> C2[api/_generated/health-registry.js]
    B --> C3[server/_shared/_generated/bootstrap-registry.ts]
    C1 & C2 & C3 --> D[Commit source + all generated artifacts]
    D --> E{Local validation}
    E --> E1[npm run registry:check]
    E --> E2[node --test tests/bootstrap.test.mjs]
    E --> E3[npm run test:data]
    E --> E4[npm run typecheck / typecheck:api]
    E1 & E2 & E3 & E4 --> F[Open PR]
    F --> G{CI - typecheck.yml}
    G --> G1[npm run typecheck]
    G --> G2[npm run typecheck:api]
    G --> G3[npm run registry:check]
Loading

Fix All in Codex

Prompt To Fix All With AI
This is a comment left during a code review.
Path: docs/architecture/dataset-registry.md
Line: 57

Comment:
**Self-referential stacked-PR entry becomes stale after merge**

This last bullet refers to the current PR itself, but uses a future tense description and no PR number. After this PR is merged, the sequence reads as if the docs work is still pending and provides no link for readers to follow.

Consider replacing the generic placeholder with the actual PR number and past-tense language (or just remove it, since the doc's own existence completes the work):

```suggestion
- `#13` `docs(registry): document the full dataset workflow`
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "docs(registry): document the registry-fi..." | Re-trigger Greptile

Comment thread docs/architecture/dataset-registry.md Outdated
- `#10` `chore(registry): stabilize dataset contract foundation and bootstrap parity`
- `#11` `refactor(health): load generated health registry in fork`
- `#12` `ci(registry): enforce generated registry freshness in fork`
- docs PR: update the contribution path and validation guidance after the code slices land
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Self-referential stacked-PR entry becomes stale after merge

This last bullet refers to the current PR itself, but uses a future tense description and no PR number. After this PR is merged, the sequence reads as if the docs work is still pending and provides no link for readers to follow.

Consider replacing the generic placeholder with the actual PR number and past-tense language (or just remove it, since the doc's own existence completes the work):

Suggested change
- docs PR: update the contribution path and validation guidance after the code slices land
- `#13` `docs(registry): document the full dataset workflow`
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/architecture/dataset-registry.md
Line: 57

Comment:
**Self-referential stacked-PR entry becomes stale after merge**

This last bullet refers to the current PR itself, but uses a future tense description and no PR number. After this PR is merged, the sequence reads as if the docs work is still pending and provides no link for readers to follow.

Consider replacing the generic placeholder with the actual PR number and past-tense language (or just remove it, since the doc's own existence completes the work):

```suggestion
- `#13` `docs(registry): document the full dataset workflow`
```

How can I resolve this? If you propose a fix, please make it concise.

Fix in Codex

@lspassos1
Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Document the generated bootstrap and health artifacts, required validation commands, and the fork-first contribution flow centered on issue #5 plus smaller stacked PRs.

Validation: npm run registry:check
Replace the self-referential placeholder in the stacked PR list with the actual docs PR entry so the sequence stays accurate after merge.
@lspassos1 lspassos1 force-pushed the ci/registry-freshness branch from 50e795e to 9c37cfe Compare April 11, 2026 21:29
@lspassos1 lspassos1 force-pushed the docs/dataset-registry-workflow branch from 6396820 to 73590e8 Compare April 11, 2026 21:29
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 11, 2026

PR author is not in the allowed authors list.

1 similar comment
@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Apr 11, 2026

PR author is not in the allowed authors list.

@lspassos1 lspassos1 marked this pull request as ready for review April 11, 2026 21:31
@lspassos1 lspassos1 changed the base branch from ci/registry-freshness to main April 11, 2026 21:33
@lspassos1 lspassos1 merged commit 1ed001b into main Apr 11, 2026
16 of 17 checks passed
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