Commit Graph

7 Commits

Author SHA1 Message Date
Maciej Lisiewski
bf2f957027 ci: pin blacksmith actions to a hash 2026-10-15 05:23:51 -07:00
Maciej Lisiewski
764d1f322c ci: match vcores on default blacksmith runner to gh 2026-10-15 05:23:51 -07:00
Maciej Lisiewski
91fae5f8cb ci: run everything on blacksmith.sh runners 2026-10-15 05:23:46 -07:00
ethernet
0dbd96ab70 fix(release): keep a stable run on main from using the controller commit or cancelling pushes
Review found that a run on main still treated main's tip as the commit
under test in several places, and shared concurrency groups with pushes.

- Concurrency: 14 nested workflows keyed their group on the ref, or on
  "tag". A stable run is on main, so a push could cancel its checks. They
  now use the run id when the caller passes a commit, and never cancel.
- Docker and Nix archived, stamped and labelled GITHUB_SHA. They now use
  CANDIDATE_COMMIT, which is the commit input or the triggering commit.
- Install e2e compared the package manifest with GITHUB_SHA. It now reads
  HERMES_TESTED_COMMIT.
- e2e-desktop rewrote the visual baselines whenever the ref was main. A
  stable run now only compares.
- The lint test checks the value each nested call passes, every
  concurrency group, and any other use of the triggering ref or SHA.
2026-10-13 23:10:47 -04:00
ethernet
66facf4a57 ci(release): pass the commit under test through every stable lane
Stable Release will run from the default branch, so GITHUB_SHA will no
longer be the claim commit. Each reusable workflow reachable from it now
takes an optional `commit` input, and its checkouts use it.

An empty input keeps today's behavior for PR and push runs. A lint test
walks the workflow graph and fails when a lane cannot be told which commit
to test, when a call does not forward it, or when a checkout ignores it.
The packaged-install jobs now need `admit` directly. A job only sees the
outputs of its direct needs.
2026-10-13 21:22:23 -04:00
Teknium
c152ba5a82 docs(ci): prompt-surface changes need one core approval, not two
The prompt-surface-review ruleset was meant to require one other reviewer;
it is now set to one hermes-agent-core approval. CODEOWNERS, the CI comment,
the staleness-test message and the developer docs said two.
2026-10-11 02:26:46 -07:00
Teknium
ae3598c7cd feat(ci): reviewers see every change to the system prompt and tool schemas
A one-line code change can rewrite what every session sends to the model -- a
guidance constant moving tiers, a toolset gaining a tool, a dynamic rewriter
editing a description -- without the diff showing it. The rendered prompt
surface is now committed and reviewed like code.

- scripts/ci/prompt_surface.py renders the system prompt
  (build_system_prompt_parts) and the agent's tools[] through the production
  code for nine surfaces (cli x claude/gpt/gemini/hermes, cli in a code
  workspace, desktop, telegram, discord, cron) into
  tests/fixtures/prompt_surface/. A fresh home in a child process; clock,
  host OS, network, tool availability, env probe and machine paths pinned,
  so a laptop and CI produce the same bytes. Each tool schema is stored once,
  with a per-surface copy only where a surface serves a different schema.
- tests/ci/test_prompt_surface.py fails when the committed snapshot is stale,
  so a surface change must carry the regenerated snapshot in the same PR.
- prompt-surface-diff.yml (advisory, PR-only, stdlib-only, no PR code runs)
  posts per-surface token deltas, prompt hunks and per-tool
  description/param changes into the unified review comment.
- CODEOWNERS requests hermes-agent-core on the snapshot; a new
  prompt-surface-review ruleset requires two of their approvals.
- Docs: prompt-assembly.md (how it works), contributing.md (what to do when
  the test fails).
2026-10-11 01:21:18 -07:00