Repository navigation
Opt Smoke Atomic into drive-memory sessions - #77262
Closed
lavaman131 wants to merge 1 commit into
Closed
lavaman131 wants to merge 1 commit into
lavaman131 wants to merge 1 commit into
Conversation
Declare a drive-memory entry with id: atomic in the smoke workflow's own frontmatter (one drive per workflow, .jsonl only, JSON-object schema), and check that the drive is mounted in Atomic's sandbox. An empty drive passes.
This was referenced Nov 13, 2026
| - defaults | ||
| - github | ||
| - go | ||
| tools: |
| # Permissions for the update_drive_memory job (workflow permissions default to none). | ||
| permissions: | ||
| contents: read | ||
| drives: write # Create or update persistent drive memory. |
Collaborator
|
Moving atomic integration to own repo. |
Collaborator
|
Moving atomic work to own repo. |
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.
cc @pelikhan
Replaces the smoke-workflow part of #77045. This PR is independent and based on
main; it does not need #77253 to merge.Motivation
Smoke Atomic opts into durable Atomic sessions explicitly, in its own frontmatter, as requested in #77058. No engine or compiler default changes. It uses drive memory, so gh-aw's staged publication applies instead of the external database used in #77045.
What changes
smoke-atomic.mddrive: adds onetools.drive-memoryentry with:id: atomic(mounted at/tmp/gh-aw/drive-memory-atomic/, the path Keep Atomic sessions on a workflow-configured drive #77253's harness looks for);drive-name: smoke-atomic, because the drive allows one writer and names are branch-aware;disk-size: 100M;allowed-extensions: [".jsonl"];validation.json-schemasentry requiring every record to be a JSON object with a stringtype. It has nofile:, so an empty drive validates..jsonlsession files are undersessions/. That count is 0 on a first run or without Keep Atomic sessions on a workflow-configured drive #77253. A missing drive directory fails; the agent never writes to the drive.TestAtomicSmokeContractasserts the opt-in, the drive mount link, and theupdate_drive_memoryjob in the lock.smoke-atomic.lock.ymlis recompiled.Security model
Threat detection is enabled for this workflow, so the compiler checks the drive out read-only for the agent job. It stages the drive as an artifact after the agent, and
update_drive_memorypublishes it only after the agent succeeds and detection explicitly accepts the run. It also verifies the drive did not change since checkout. The schema and extension validation must pass before staging.Detection acceptance does not authenticate drive content for later runs (see the drive-memory reference). Drive memory is a private preview: this repository is enrolled (
smoke-drive), and the workflow runs onubuntu-latestwithout a job container.Security review of the compiled changes
actions/gh-drives-preview/checkoutandactions/gh-drives-preview/commit, both pinned toc9163b96f9720dc55e0de19b37028ae22dcfa42a(main). These are the same pinssmoke-drive.lock.ymlalready uses; the upstream preview has no versioned release.drives: readandid-token: writeon the agent job, anddrives: writeandid-token: writeon the newupdate_drive_memoryjob. The compiler adds these for drive memory; they are not declared by hand.drive-memory:atomicjson_schemas_sha256entry, approved with--approveafter review.Validation
./gh-aw compile smoke-atomic --validatesucceeds. Its warnings are the existing experimental-Atomic notice, the expected experimental drive-memory notice (the same onesmoke-driveemits), and the safe-update approval for the new memory schema, which is documented above.go test ./pkg/workflow -run Atomic -count=1passes.make agent-report-progresspasses: lint, custom linters, impacted tests, and all lock files in sync.