Skip to content

Harden gh and token handling, split CI, and use a private Blob store - #15

Merged
bensabic merged 2 commits into
mainfrom
harden-gh-split-ci-private-blob
Nov 16, 2026
Merged

bensabic merged 2 commits into
mainfrom
harden-gh-split-ci-private-blob

Conversation

@bensabic

Copy link
Copy Markdown
Collaborator

Hardens gh command handling and token leases, splits CI into separate jobs, and moves handoff artifacts to a private Blob store.

  • A --body-file's text can no longer change what a gh command does.
  • A read that falls back to a wider token (FACTORY_TOKEN_FALLBACK) is limited to fetching FACTORY_REPO, and stations get no gh on one.
  • CI runs Lint, Typecheck, Test, and Discovery as separate jobs, with Test and Discovery on Node 24 and 26. Actions are pinned to commits.
  • Handoff artifacts use a private Blob store. Existing deployments need a private store connected.
  • Traces record content for every session, so runs on private repositories are readable in Agent Runs.
  • .env.example lists every variable.
  • Removes the unused Blob namespace registry.

pnpm validate passes in CI.

- A --body-file's text can no longer change what a gh command does.
- A read that falls back to a wider token is limited to fetching the
  factory repository, and stations get no gh on one.
- CI runs lint, typecheck, test and discovery as separate jobs, with
  test and discovery on Node 24 and 26, and actions pinned to commits.
- Handoff artifacts use a private Blob store.
- Traces record content for every session.
- .env.example lists every variable.
- blob.ts keeps the artifacts prefix and the two helpers in use.
- The reserved-prefix registry, its guards, and deleteDocument had no
  callers.
@bensabic
bensabic requested a review from a team November 16, 2026 14:07
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgithub/​pnpm/​action-setup@​f40ffcd9367d9f12939873eb1018b921a783ffaa ⏵ 73e46992e05b19abd31f2f3c20e0e7370d76211590 -8100100100100

View full report

@bensabic
bensabic merged commit 1cd9fa5 into main Nov 16, 2026
17 checks passed
@bensabic
bensabic deleted the harden-gh-split-ci-private-blob branch November 16, 2026 14:09
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.

1 participant