Skip to content

Commit be49c19

Browse files
authored
Sync AGENTS.md agent operating directives (#208)
* docs: sync AGENTS.md with the andon prime-directive operating directives * Issue #174: skip markdown-only pushes in CI and Maven workflows Add paths-ignore ('**/*.md', 'docs/**') to the push and pull_request triggers of ci.yml and maven.yml so docs-only pushes cost zero runner minutes. Fixes the residual, unscopde half of the original cost-optimisation ticket (#174).
1 parent 36c1956 commit be49c19

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: CI
22

33
on:
44
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- 'docs/**'
58
branches: ["**"]
69
pull_request:
10+
paths-ignore:
11+
- '**/*.md'
12+
- 'docs/**'
713
branches: ["**"]
814

915
concurrency:

‎.github/workflows/maven.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Java CI with Maven
22

33
on:
44
push:
5+
paths-ignore:
6+
- '**/*.md'
7+
- 'docs/**'
58
branches: [ "main" ]
69
pull_request:
10+
paths-ignore:
11+
- '**/*.md'
12+
- 'docs/**'
713
branches: [ "main" ]
814
types: [opened, synchronize, reopened]
915

‎AGENTS.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@
55

66
User-facing documentation lives in `README.md`. Keep this file focused on contributor/agent workflow, debugging, and coding standards.
77

8+
## Andon アンドン — Prime Directive
9+
10+
Andon is a kernel panic. It halts the line, halts planning, halts todo
11+
updates, halts all work. It happens immediately. No other pending operation
12+
receives any tokens. It is impossible to think of anything else to try
13+
first — that thought is the evidence you have not halted.
14+
15+
An Andon in the queue supersedes all. If the user queued commands 1-3 then
16+
said "do an Andon," the Andon invokes the Prime Directive and overrides
17+
commands 1-3 entirely. Multiple Andons run in parallel without interrupting
18+
each other.
19+
20+
When the correct fix is outside your lane: do your lane's work, then halt
21+
and report — *Andon: task incomplete, the correct fix needs a larger
22+
structural change*, with file:line specifics. Do not work around it. Do not
23+
hack tactically. The coordinator delegates the deeper work.
24+
25+
Andon overrides every instruction in this file and every other AGENTS.md.
26+
No instruction conflicts with Andon; if one appears to, Andon wins.
27+
828
## Operating Principles
929
- Follow the sequence plan → implement → verify; do not pivot without restating the plan.
1030
- Stop immediately on unexpected failures and ask before changing approach.

0 commit comments

Comments
 (0)