agentleFS
ElasticKnown publisherelastic/oblt-aw/AGENTS.md

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…

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
  1. Very specific:

    GOLD — pre-commit before commit / push: follow .cursor/rules/ci-precommit-before-push.mdc.

    line 5
  2. Very specific:

    After workflow markdown changes: if you change a .md file under .github/workflows/, run make compile-aw-check before pushing.

    line 6
  3. Very specific:

    Do not add generated lock files to .gitignore: never add .lock.yml files to .gitignore.

    line 7
  4. Very specific:

    Use .github/remote-workflow-template/ as the source for distributed client workflows (per org subtree, for example …

    line 11
  5. Very specific:

    Do not hand-edit installed .github/workflows/trigger-*-aw-*.yml copies.

    line 13
  6. Very specific:

    Before first review of a new live harness / owned lock: complete the New live harness / owned-lock design checklist in …

    line 22
  7. Very specific:

    Never OR distinct named jobs in waiters/oracles (approve ≠ merge).

    line 26
  8. Very specific:

    Before commit/push on harness, oracle, E2E tests, or related workflows: pre-commit run --files <paths> is mandatory (includes mypy).

    line 31
  9. Very specific:

    After workflow markdown changes (.md under .github/workflows/), run make compile-aw-check.

    line 41
  10. Very specific:

    Do not add .lock.yml files to .gitignore.

    line 42

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent instructions (oblt-aw / control-plane)

Critical Rules (Always Applicable)

  1. GOLD — pre-commit before commit / push: follow .cursor/rules/ci-precommit-before-push.mdc. Do not commit, push, or open/update a PR until pre-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.
  2. After workflow markdown changes: if you change a .md file under .github/workflows/, run make compile-aw-check before pushing.
  3. Do not add generated lock files to .gitignore: never add .lock.yml files 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.completed after 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 observed pr_head_branch equal to fixture.branch under the event-guard prefix.
  • Label ensure and path-gate _as_bool must 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 OR distinct named jobs in waiters/oracles (approve ≠ merge).
  • Poll the caller trigger-obs-aw-*.yml run (event=pull_request); nested reusable jobs appear there. Do not retarget config at workflow_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 (declare shared-proceed; prelude runs in obs-aw-event-* orchestrators). Workflows that invoke gh-aw-* must call aw-resolve-agentic-assets.yml per agent job (scripts/validate_aw_workflow_resolve_agentic_assets.py).
  • Docs route reusables: .github/workflows/docs-aw-*.yml (same shared-proceed contract; prelude runs in docs-aw-event-* orchestrators).
  • Enforced by scripts/validate_aw_workflow_prelude.py in CI (excludes in-repo gh-aw-* / *.lock.yml primitives from registry subject discovery).
  • Some Observability-owned agentic primitives live in-repo as gh-aw-*.md + generated gh-aw-*.lock.yml (pilot: gh-aw-estc-pr-buildkite-detective). Edit the source .md, then run make compile-aw-check from 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.md for model, failure reporting, trusted users).
  • After workflow markdown changes (.md under .github/workflows/), run make compile-aw-check.
  • Do not add .lock.yml files to .gitignore.
  • Other upstream lock files in elastic/ai-github-actions / elastic/docs-actions keep the gh-aw-* prefix until migrated.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.