Repository navigation
Phase E1: Compute access card in Settings - #502
Merged
neuromechanist merged 12 commits intoNov 7, 2026
Merged
neuromechanist merged 12 commits into
neuromechanist merged 12 commits into
Conversation
Deploying nemar-website with
|
| Latest commit: |
56e6f99
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://126b7dcd.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-494-compute-ac.nemar-website.pages.dev |
neuromechanist
merged commit Nov 7, 2026
c06ccd5
into
feature/issue-493-epic-compute-web
4 of 5 checks passed
This was referenced Nov 7, 2026
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.
Phase E1 of epic #493 (issue #494). Adds the Compute access card to Settings, the transcribed copy and gap rules, the request client, a documented local-backend recipe, and ADR 0030. Targets the epic branch, not
staging.What changed
#compute-accesscard after#upload-access: state badge (dated for requested and active), a body per state from the copy, and for a verified never-asked account a request form (purpose 20-1000 code points with counter, required terms checkbox with the version linking the terms page, shared refusal list, alert line). Renders only when the backend reports a state.compute_accessgap block, block order,affiliationrow (blocks compute access only);gapsForFieldsblockoverride;withoutComputeOnlyGapsfor the dashboard nudge and Settings account list.compute_access*on the session user (never defaulted; unknown states dropped),deriveComputeAccessState,validatePurpose,computeAccessErrorMessage,requestComputeAccess(15 s deadline),AccountApiError.backendMessage.src/lib/refusal-list.ts: one renderer for both request cards; the upload card's inline loop is gone.COMPUTE_REQUESTS_ENABLED(false) andcomputeRequestsOpen; docs paths; sevenastro devcompute personas.scripts/capture-compute-fixtures.mjs(fixtures captured from the real routes),scripts/local-backend.mjs+.context/local-backend.md, ADR 0030, CHANGELOG, handoff.Expected CI reds
account-copy-driftandcompute-terms-contract-driftare red until the compute epic reaches nemar-clidev(CI ref staysdev). Do not put these keys onstagingbefore then.Verified
bun run typecheck,bun run lint,bun run test(4689 passed, 13 skipped with the drift variables set; 4687 passed, 15 skipped without); with the drift variables pointed at a worktree of nemar-cli's Epic D branch: 4677 passed, 13 skipped. nemar-clibun test test/account-copy-parity.test.ts test/profile-gaps-matrix.test.tswithNEMAR_WEBSITE_ACCOUNT_COPYset: 62 pass.astro buildpasses.bun run buildstops ingenerate:og, which fetches the production catalog and got a 500.Review round (head 56e6f99)
scripts/local-backend.mjsbinds127.0.0.1only (verified withlsof), refuses to start under a production-likeENVIRONMENT, a non-loopbackBIND_HOST/HOST/BUN_HOSTorWEB_ORIGIN, and checks the socket it got;test/local-backend-guard.test.tsruns the refusals;.context/local-backend.mdsays so.target="_blank" rel="external noopener noreferrer"), so the purpose draft survives.terms_not_acceptedwithout a backend sentence now readsAccept the compute terms (version <v>) to request compute access., composed inaccount-tier.tsfrom the baked version (the backend's own sentence). No mirrored key was added, to keep the 27-key parity. A mirrored instruction key is the follow-up if the owner wants it in nemar-cli's copy.missingshows the backend's sentence (or the status tail), not the heading over nothing;computeAccessErrorMessagetakesmissingand the page passes it.GET /compute/me) is merged, readaccessserver-side and replacecompute-terms.tsand its drift test withaccess.current_terms_version, andCOMPUTE_REQUESTS_ENABLED/computeRequestsOpenwithaccess.requests_open(falling back toaccess.terms_published). That also ends the stale-baked-version failure. It is not consumed here because the route is not merged.Mutation table
Each mutation was applied to the production line, the named tests were run, and the line restored. Result is "caught" when a test failed.
nonealready_activecase deleted (falls to generic)profile_incompleteprints the backend's raw field namesnoneaffiliationalso blocks upload accessblockoverride ignoredwithoutComputeOnlyGapsis the identityCOMPUTE_REQUESTS_ENABLEDtruecomputeRequestsOpenreads the dev flagrenderRefusalcall alteredblockoverride:not([hidden])rule removedcompute &&guardmaxlengthon the purpose textareaid="profile-affiliation"removedcompute_accessterms_not_acceptedfallback is the checkbox labeltarget="_blank"missingto the mapperENVIRONMENT=production