Skip to content

Read stage behavior from stage metadata - #197

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/stage-metadata-checks-703e
Nov 15, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
cursor/stage-metadata-checks-703e

Conversation

@jonbeckman

Copy link
Copy Markdown
Contributor

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.

  • Request telemetry still blocks the response only for dev. The flag is apiObservabilityAwaitTelemetryFlush. Test and deployed stages still record telemetry with waitUntil and return without waiting.
  • The local application-database default and the Alchemy dev default come from stageDefaultsToLocalAppDatabase and stageDefaultsToAlchemyDev. An explicit Alchemy dev flag still selects a local database.
  • Config file selection uses stageMetadataTagForName. pre and pre-* still select the pre config file. An invalid stage still throws the same config error.

Stage names are matched case-insensitively, which is how getStageMetadataFromStr already parses them. A value of DEV now follows dev for the database and Alchemy defaults. Those two checks used to compare the string exactly.

Oxlint 1.93 has no no-restricted-syntax rule, and oxlint-plugin-solzero has no stage-name rule. This pull request does not add a script that only polices stage comparisons. scripts/preview-lifecycle.mjs still compares the standing preview name pre. That workflow script stays dependency-free.

This change has no user-visible effect. It uses the release:none label and does not add a Tegami entry.

Validation

  • nub run config:check
  • nub run typecheck
  • nub run lint
  • nub run format
  • A one-off runtime check of stage tags, config file stages, the telemetry flush flag, and the invalid-stage message. Dev flushes telemetry. Test does not. pre-12 and Pre-9 select pre. nope stays a local-database miss and throws the existing config error.
  • nub run test was not run. Lowercase stage behavior is unchanged, and no user flow changed.

Checklist

  • I added or updated tests for behavior changes, or explained why tests are not needed.
  • I updated documentation and config examples when behavior or configuration changed.
  • I added a .tegami/ release entry, or explained why this pull request uses release:none.
  • I ran nub run config:check, nub run typecheck, nub run lint, nub run format, and nub run test.
  • I did not include credentials, private data, internal URLs, or organization-specific defaults.
  • I updated THIRD_PARTY_NOTICES.md for new third-party code or separately licensed assets.
Open in Web Open in Cursor 

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 jonbeckman added the release:none label Nov 15, 2026 — with Cursor
@jonbeckman
jonbeckman marked this pull request as ready for review November 15, 2026 09:27
@github-actions

Copy link
Copy Markdown
Contributor

Tegami

This repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under .tegami/ before merging.

Create a changelog → · Changelog format

No changelogs yet

This PR has no pending changelog files. If your changes require a release, add a changelog before merging.

Run nub run tegami locally to create a changelog interactively.

Managed by Tegami.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e solzero-core: 28 passed, 4 left out by filters

4 agent steps · 4 replayed from cache

Change 5 files changed since 7f59296
Filter decision kept 26 of 30 tests, left out 4 (1 call, 18.8k tokens)

4 tests left out by filters
Test Filter Reason
tests/auth.e2e.ts › sign-in gate protects every application route decision 11% likely affected
tests/auth.e2e.ts › anonymous callers cannot access any protected API group decision 10% likely affected
tests/auth.e2e.ts › sign-out removes authenticated UI access decision 6% likely affected
tests/branding.e2e.ts › OpenAPI uses the selected deployment brand decision 7% likely affected
All 28 tests in 13 files
Test Agent Time
🟢 tests/accounts.e2e.ts · 3 passed 6.0s
🟢 create, use and revoke an isolated user API key 3.0s
🟢 Better Auth 1.7 account APIs select the local account row id 139ms
🟢 Accounts settings shows GitHub as unlinked without OAuth providers 2.9s
🟢 tests/admin.e2e.ts · 1 passed 4.6s
🟢 administrator pages show live control-plane configuration 4.6s
🟢 tests/advanced-sessions.e2e.ts · 2 passed 7.2s
🟢 incognito sessions stay outside normal lists but open directly 3.4s
🟢 session MCP definitions and subagent preferences persist 3.7s
🟢 tests/api-contract.e2e.ts · 1 passed 371ms
🟢 exported API key and session schemas decode actual Worker responses 371ms
🟢 tests/auth.e2e.ts · 1 passed 6.0s
🟢 credential sign-in opens the requested settings page 6.0s
🟢 tests/auth.setup.e2e.ts · 2 passed 7.7s
🟢 authenticate isolated admin 5.5s
🟢 authenticate isolated peer 2.2s
🟢 tests/bots.e2e.ts · 1 passed 4.4s
🟢 create a bot and manage a temporary routine through the UI 4.4s
🟢 tests/branding.e2e.ts · 2 passed 236ms
🟢 the selected deployment brand reaches the browser 220ms
🟢 health identifies the configured application without exposing configuration 16ms
🟢 tests/session-transfer.e2e.ts · 1 passed 2.0s
🟢 admin authentication transfer redeems once and retains its deep link 2.0s
🟢 tests/sessions.e2e.ts · 5 passed 1 step 41.9s
🟢 session tools, archive and restoration persist through the real Worker 1 step 4.6s
🟢 a second account cannot read or mutate another account's session 481ms
🟢 isolate executes a real prompt and persists its output 8.6s
🟢 opencode executes a real prompt and persists its output 14.8s
🟢 codex executes a real prompt and persists its output 13.3s
🟢 tests/settings.e2e.ts · 5 passed 2 steps 21.0s
🟢 all settings categories load real data 6.3s
🟢 runtime default persists after reload 5.6s
🟢 MCP deep link and legacy settings URL open the MCP tab 2.0s
🟢 secret editor creates, finds and deletes a disposable secret 1 step 3.4s
🟢 theme preference survives reload 1 step 3.7s
🟢 tests/skills.e2e.ts · 1 passed 6.9s
🟢 global skill defaults and per-user preferences persist independently 6.9s
🟢 tests/workflows.e2e.ts · 3 passed 1 step 6.7s
🟢 workflow authoring, rename, export, disable and archive persist 1 step 4.5s
🟢 manual workflow executes JavaScript and stores a real R2 artifact 2.1s
🟢 invalid workflow definitions are rejected before storage 104ms

Tested by e2e 0.23.0 · 2m 56s · local-cloudflare · run artifacts

@cursor
cursor Bot merged commit 774d73f into master Nov 15, 2026
20 checks passed
@cursor
cursor Bot deleted the cursor/stage-metadata-checks-703e branch November 15, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants