Repository navigation
Read stage behavior from stage metadata - #197
Merged
Merged
Conversation
Stage name comparisons for telemetry flush, the local database default, Alchemy dev, and config file selection now go through stageMetadata instead of ad hoc stage strings. Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
jonbeckman
marked this pull request as ready for review
November 15, 2026 09:27
Contributor
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format No changelogs yetThis PR has no pending changelog files. If your changes require a release, add a changelog before merging. Run Managed by Tegami. |
Contributor
🟢 e2e solzero-core: 28 passed, 4 left out by filters4 agent steps · 4 replayed from cache Change 5 files changed since 4 tests left out by filters
All 28 tests in 13 files
Tested by e2e 0.23.0 · 2m 56s · local-cloudflare · run artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stage-specific behavior was decided with raw stage name strings outside
stageMetadata.ts. The stage-metadata skill says that behavior belongs on stage metadata, and that stage parsing stays in that module.apiObservabilityAwaitTelemetryFlush. Test and deployed stages still record telemetry withwaitUntiland return without waiting.stageDefaultsToLocalAppDatabaseandstageDefaultsToAlchemyDev. An explicit Alchemy dev flag still selects a local database.stageMetadataTagForName.preandpre-*still select the pre config file. An invalid stage still throws the same config error.Stage names are matched case-insensitively, which is how
getStageMetadataFromStralready parses them. A value ofDEVnow follows dev for the database and Alchemy defaults. Those two checks used to compare the string exactly.Oxlint 1.93 has no
no-restricted-syntaxrule, andoxlint-plugin-solzerohas no stage-name rule. This pull request does not add a script that only polices stage comparisons.scripts/preview-lifecycle.mjsstill compares the standing preview namepre. That workflow script stays dependency-free.This change has no user-visible effect. It uses the
release:nonelabel and does not add a Tegami entry.Validation
nub run config:checknub run typechecknub run lintnub run formatpre-12andPre-9selectpre.nopestays a local-database miss and throws the existing config error.nub run testwas not run. Lowercase stage behavior is unchanged, and no user flow changed.Checklist
.tegami/release entry, or explained why this pull request usesrelease:none.nub run config:check,nub run typecheck,nub run lint,nub run format, andnub run test.THIRD_PARTY_NOTICES.mdfor new third-party code or separately licensed assets.