Repository navigation
Spike: an Alchemy state store on a GitHub branch - #4
Draft
nicu-chiciuc wants to merge 15 commits into
Draft
nicu-chiciuc wants to merge 15 commits into
nicu-chiciuc wants to merge 15 commits into
Conversation
GitHubState.ts builds Alchemy's BucketState over one Git branch: a key is a path, a version is a blob sha, writes queue up into one commit through the Git Data API, and the lease lives on alchemy-state-lock. The spike stack deploys an issue label, a Random and a Note resource with secrets sealed by the passphrase encryption of alchemy-run/alchemy#3167. The workflow deploys stage ci on a push to this branch.
pnpm 12.16.1, which the workflow uses, refuses a URL tarball without an integrity field in the lockfile. The lockfile was written by pnpm 11.
nicu-chiciuc
force-pushed
the
github-state
branch
from
November 17, 2026 21:04
87cc2a7 to
2e912e8
Compare
|
No description provided. |
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.
A spike, for review only. Do not merge.
What it is
The test bed of
@samebase/alchemy-kit/github-state, an Alchemy v2 state store that keeps the state on a branch of the repository instead of in Cloudflare or Convex.alchemy-state-store, one folder per stage:github-state-spike/{stage}/{resource}.json.alchemy-state-store-lock.{"__redacted__": {"__sealed__": "v1.<iv>.<ciphertext>"}}, sealed with AES-256-GCM under the keyALCHEMY_GITHUB_STATE_KEY.github.tokenand the key secret.alchemyand@alchemy.run/github2.0.0-beta.85.Where to look
github-state/alchemy.run.ts: the spike stack (a label, a random secret, a note), withstate: GitHubState.state().@samebase/alchemy-kit@0.1.0from npm (github-state/package.json)..github/workflows/github-state-spike.yml: deploys the stagecion a push togithub-state-run.github-state/RESUME.md: the log of every check and its numbers.Everything is in
github-state/, with its own install. The template app is not changed.To deploy the stage
ciPush the head of this branch plus one empty commit to
github-state-run. A push to this branch itself would also start the template's pull request workflows, so commits here carry[skip ci].What was checked on the package
demo: 3 creates (42 s), no changes (11 s), 1 update (17 s). Without the key, the deploy stops before it reads or writes anything.ci: 3 creates, then no changes. Both green.Known limits