oblt-aw
AGENTS.md2 starsChanged 2 months agoApache-2.0View on GitHub
Use .github/remote-workflow-template/ as the source for distributed client workflows (per org subtree, for example obs/.github/workflows/trigger-obs-aw-<workflow-id>.yml, docs/.github/workflows/trigger-docs-aw-*.yml). Distribute installs those files into active repositories, including this control-plane repo when listed in active-repositories.json (pilot / @main early detection). See docs/workflows/obs-aw-client-template.md, docs/workflows/docs-aw-client-template.md, and CONTRIBUTING.md. Do not hand-edit installed .github/workflows/trigger-*-aw-*.yml copies; do not reintroduce a monolithic oblt-aw.yml or oblt-aw-ingress.yml. When hardening E2E gates (or addressing fail-closed review comments), follow .cursor/rules/fail-closed-e2e-gates.mdc: walk producer → outcome → oracle → tests and close every substitute signal in…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- .cursor/rules/ci-precommit-before-push.mdcCursor rule
- .cursor/rules/fail-closed-e2e-gates.mdcCursor rule
- .cursor/rules/protected-oblt-aw-workflow.mdcCursor rule
- code-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 0 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
GOLD — pre-commit before commit / push: follow .cursor/rules/ci-precommit-before-push.mdc.
- Very specific: line 6
After workflow markdown changes: if you change a .md file under .github/workflows/, run make compile-aw-check before pushing.
- Very specific: line 7
Do not add generated lock files to .gitignore: never add .lock.yml files to .gitignore.
- Very specific: line 11
Use .github/remote-workflow-template/ as the source for distributed client workflows (per org subtree, for example …
- Very specific: line 13
Do not hand-edit installed .github/workflows/trigger-*-aw-*.yml copies.
- Very specific: line 22
Before first review of a new live harness / owned lock: complete the New live harness / owned-lock design checklist in …
- Very specific: line 26
Never OR distinct named jobs in waiters/oracles (approve ≠ merge).
- Very specific: line 31
Before commit/push on harness, oracle, E2E tests, or related workflows: pre-commit run --files <paths> is mandatory (includes mypy).
- Very specific: line 41
After workflow markdown changes (.md under .github/workflows/), run make compile-aw-check.
- Very specific: line 42
Do not add .lock.yml files to .gitignore.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions (oblt-aw / control-plane)
Critical Rules (Always Applicable)
- GOLD — pre-commit before commit / push: follow
.cursor/rules/ci-precommit-before-push.mdc. Do not commit, push, or open/update a PR untilpre-commit run --files <touched-paths>passes locally (same gate as CI Pre-commit, including actionlint). Pytest alone is not enough. Install:pre-commit install --hook-type pre-commit --hook-type pre-push. - After workflow markdown changes: if you change a
.mdfile under.github/workflows/, runmake compile-aw-checkbefore pushing. - Do not add generated lock files to .gitignore: never add
.lock.ymlfiles to.gitignore.
Client entrypoint changes
Use .github/remote-workflow-template/ as the source for distributed client workflows (per org subtree, for example obs/.github/workflows/trigger-obs-aw-<workflow-id>.yml, docs/.github/workflows/trigger-docs-aw-*.yml). Distribute installs those files into active repositories, including this control-plane repo when listed in active-repositories.json (pilot / @main early detection). See docs/workflows/obs-aw-client-template.md, docs/workflows/docs-aw-client-template.md, and CONTRIBUTING.md.
Do not hand-edit installed .github/workflows/trigger-*-aw-*.yml copies; do not reintroduce a monolithic oblt-aw.yml or oblt-aw-ingress.yml.
Fail-closed E2E harness / oracle changes
When hardening E2E gates (or addressing fail-closed review comments), follow .cursor/rules/fail-closed-e2e-gates.mdc: walk producer → outcome → oracle → tests and close every substitute signal in one change set. Do not stop after the first named fallback. Non-empty expectation maps, typo/partial keys, and test helpers that trust outcome.expectations are still substitute paths — reject them in the same pass.
Also keep these live-harness lessons (from automerge vm-images E2E review):
- Cleanup success requires side-effect evidence (bait/fixture absent after cleanup); never green solely on
cleanup.completedafter a soft-skip delete. - Before first review of a new live harness / owned lock: complete the New live harness / owned-lock design checklist in
.cursor/rules/fail-closed-e2e-gates.mdc(branch-prefix/event-guard lockstep, fixture create rollback, cleanup must fail the run, oracle identity fields, no “hardcoded via default input”). - Emit and assert matched leaf job names (not only
job_executed/job_conclusion); bind pin-bump evidence to canonical SHA/version constants (not shape-only); require observedpr_head_branchequal tofixture.branchunder the event-guard prefix. - Label ensure and path-gate
_as_boolmust fail closed (no crash, no “any error ⇒ create”). - Match leaf job names (e.g.
… / automerge / automerge,… / automerge / approve / conclusion), not broad substrings that also hit siblings (verify, collection checks). - Never
ORdistinct named jobs in waiters/oracles (approve ≠ merge). - Poll the caller
trigger-obs-aw-*.ymlrun (event=pull_request); nested reusable jobs appear there. Do not retarget config atworkflow_call-only orchestrators solely because nested job ids are declared there. - Reject every required-true live trigger (
require_open_pr,force_*,wait_*) before any remote mutation when false — do not stop after the first named flag. - Seed default-branch fixtures only when missing; refuse silent overwrite when remote content differs.
Before commit/push on harness, oracle, E2E tests, or related workflows: pre-commit run --files <paths> is mandatory (includes mypy). Pytest alone does not authorize push. See also .cursor/rules/ci-precommit-before-push.mdc.
Control-plane workflow naming
- Shared prelude:
.github/workflows/aw-prelude.yml(no org prefix). - Shared dashboard audit:
.github/workflows/aw-dashboard-audit.yml(no org prefix; always-on from org event orchestrators, not prelude-gated). - Observability route reusables:
.github/workflows/obs-aw-<workflow-id>.yml(declareshared-proceed; prelude runs inobs-aw-event-*orchestrators). Workflows that invokegh-aw-*must callaw-resolve-agentic-assets.ymlper agent job (scripts/validate_aw_workflow_resolve_agentic_assets.py). - Docs route reusables:
.github/workflows/docs-aw-*.yml(sameshared-proceedcontract; prelude runs indocs-aw-event-*orchestrators). - Enforced by
scripts/validate_aw_workflow_prelude.pyin CI (excludes in-repogh-aw-*/*.lock.ymlprimitives from registry subject discovery). - Some Observability-owned agentic primitives live in-repo as
gh-aw-*.md+ generatedgh-aw-*.lock.yml(pilot:gh-aw-estc-pr-buildkite-detective). Edit the source.md, then runmake compile-aw-checkfrom the repo root to regenerate and verify the matching lock file in.github/workflows/; do not hand-edit the lock. Shared compile imports live under.github/workflows/gh-aw-fragments/(fleet defaults:gh-aw-fragments/obs-defaults.mdfor model, failure reporting, trusted users). - After workflow markdown changes (
.mdunder.github/workflows/), runmake compile-aw-check. - Do not add
.lock.ymlfiles to.gitignore. - Other upstream lock files in
elastic/ai-github-actions/elastic/docs-actionskeep thegh-aw-*prefix until migrated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

