Skip to content

Opt Smoke Atomic into drive-memory sessions - #77262

Closed
lavaman131 wants to merge 1 commit into
mainfrom
atomic-drive-smoke
Closed

lavaman131 wants to merge 1 commit into
mainfrom
atomic-drive-smoke

Conversation

@lavaman131

Copy link
Copy Markdown
Contributor

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.md drive: adds one tools.drive-memory entry 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);
    • its own drive-name: smoke-atomic, because the drive allows one writer and names are branch-aware;
    • disk-size: 100M;
    • allowed-extensions: [".jsonl"];
    • a validation.json-schemas entry requiring every record to be a JSON object with a string type. It has no file:, so an empty drive validates.
  • New smoke requirement 6: the agent confirms the drive is mounted inside Atomic's AWF sandbox and reports how many .jsonl session files are under sessions/. 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.
  • Test: TestAtomicSmokeContract asserts the opt-in, the drive mount link, and the update_drive_memory job in the lock.
  • Lock: smoke-atomic.lock.yml is 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_memory publishes 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 on ubuntu-latest without a job container.

Security review of the compiled changes

  • New actions: actions/gh-drives-preview/checkout and actions/gh-drives-preview/commit, both pinned to c9163b96f9720dc55e0de19b37028ae22dcfa42a (main). These are the same pins smoke-drive.lock.yml already uses; the upstream preview has no versioned release.
  • New permissions: drives: read and id-token: write on the agent job, and drives: write and id-token: write on the new update_drive_memory job. The compiler adds these for drive memory; they are not declared by hand.
  • Memory validation: the manifest records a new drive-memory:atomic json_schemas_sha256 entry, approved with --approve after review.
  • Secrets: none added or removed.

Validation

  • ./gh-aw compile smoke-atomic --validate succeeds. Its warnings are the existing experimental-Atomic notice, the expected experimental drive-memory notice (the same one smoke-drive emits), and the safe-update approval for the new memory schema, which is documented above.
  • go test ./pkg/workflow -run Atomic -count=1 passes.
  • make agent-report-progress passes: lint, custom linters, impacted tests, and all lock files in sync.
  • No changeset: this changes only a private smoke workflow and ships nothing to users. That matches earlier smoke-workflow PRs.

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.
- 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.
@pelikhan

Copy link
Copy Markdown
Collaborator

Moving atomic integration to own repo.

@pelikhan

Copy link
Copy Markdown
Collaborator

Moving atomic work to own repo.

@pelikhan pelikhan closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants