Repository navigation
feat(core): open tier ids that editions register - #996
Merged
smart-ssh-coordinator[bot] merged 2 commits intoOct 27, 2026
Merged
smart-ssh-coordinator[bot] merged 2 commits into
smart-ssh-coordinator[bot] merged 2 commits into
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closed
6 tasks
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closed
6 tasks
There was a problem hiding this comment.
Review
Verdict: approved
Review level: normal
Blocking
None.
Non-blocking
FeatureLocked'sDisplaystill uses{tier:?}, so the fallback message now readsTierId("free")instead ofFree(fixture updated). The structured payload is what the UI uses; cosmetic only.
Verified
- counter-proof: not applicable (feature, not a bug fix); the guard and label tests assert the new shape and would fail against the old enum/union (read: tierListGuard.test.ts, tiers.test.tsx)
- edge cases: unknown tier id → kept and shown as id (read + executed); all six former values round-trip (read: entitlements.rs test, CI green); unregistered/free label → id fallback → ok
- callers checked:
Tier/.tierin crates and frontend (rg, no remaining users besides the dialog) → ok - tests run locally:
npx vitest run src/extensions/tiers.test.tsx src/tierListGuard.test.ts→ 6 passed (executed). Rust tests could not run locally (toolchain install not permitted in the container); covered by CI (Ubuntu/macOS/Windows all green, executed by CI). - UI: only the locked dialog text changes; vitest covers it, Playwright suite green in CI
- data: wire format unchanged, no migration (read)
Timing analysis
- 3 test files analysed by reading: no timing dependency (synchronous, no waits).
Spec
- visible behaviour changed: tier shown in the feature-locked dialog uses a registered label or the id
- spec searched (entitlement, tier, Stufe, Edition): 0037 §2 updated
- verdict: spec change present and matches the code
Security checks
- Gating remains feature-based and fail-closed; tier is display-only; FilterEngine untouched.
THREAT-MODEL.mdnote present. No loosening.
Follow-ups
None.
smart-ssh-coordinator
Bot
deleted the
issue-928-entitlements-open-tier-ids-that-editions
branch
October 27, 2026 23:33
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.
Closes #928
Summary
Replaces the fixed
Tierenum with an opaqueTierId(TierId::FREEthe only core constant, plain-string wire format) andTierin TS becomesstring. Editions register tier labels viaregisterTier; unknown tiers show their id.Acceptance Criteria
tierListGuard.test.ts(both tests)tiers.test.tsx'uses the registered label…' and 'the locked dialog shows the registered tier label'entitlements.rs:test_every_former_tier_value_still_round_trips_and_unknown_is_kept,tiers.test.tsx'falls back to a generic label…'test_wire_format_is_unchanged,test_feature_locked_carries_the_tier…test_free_entitlements_has_free_tier…Tests
No counter-proof run for the guard beyond it asserting the new shape.
Assumptions
Wiringfield (ADR 0155).Spec: updated 0037. ADR 0155.
Threat model: no change – tier is display-only; gating still depends on features, fail-closed.
Manual test steps
None.
Follow-ups
None.
🤖 Generated with Claude Code