agentleFS
hishamkaramhishamkaram/delegation-layer/AGENTS.md

delegation-layer

AGENTS.md2 starsChanged 2 months agoMITView on GitHub

Read the product boundary before proposing a design, guarantee or restriction. Delegate owns task lifecycle and evidence; users and providers own their CLI installations, settings and accounts. The installed-executable rule also applies to Delegate, Pueue, fixtures and contributor tools. See what Delegate provides for product purpose and current capabilities, and architecture for implementation details. 1. Do the smallest correct change. In the existing plan, name the requested behavior, affected area, non-goals and done condition. No mandatory plan template, tracking file…

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

16 rules. About 2 are common, 12 are distinctive, and 2 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the product boundary before proposing a design, guarantee or restriction.

    line 5
  2. Distinctive:

    Do the smallest correct change.

    line 17
  3. Distinctive:

    Before changing shared state or an interface, name its authoritative owner, writers, readers and invariant.

    line 20
  4. Distinctive:

    Keep explicit control flow, typed boundaries, immutable defaults and useful errors.

    line 25
  5. Distinctive:

    Verify source and required native/provider facts before choosing a design.

    line 28
  6. Distinctive:

    Use focused checks while editing and applicable final checks on stable source.

    line 41
  7. Distinctive:

    Do not repeat a suite through an aggregate unchanged.

    line 42
  8. Distinctive:

    After implementation and behavioral verification, reconcile affected README, guides, examples, skills and diagrams as the final development …

    line 54
  9. Distinctive:

    Use docs-updater for the reconciliation procedure.

    line 60
  10. Distinctive:

    Update only affected guidance and diagrams.

    line 61
  11. Distinctive:

    Use the user's selected models, effort and permissions.

    line 81
  12. Distinctive:

    Prefer codebase-memory MCP search, trace and snippets.

    line 99
  13. Common:

    Use Context7/current primary documentation for uncertain library or CLI APIs.

    line 105
  14. Common:

    Never send secrets or private source to external searches.

    line 106
  15. Very specific:

    Use the matching repository skill: delegation-architect, supervisor-architect, go-implementer, go-reviewer, go-test-writer, go-concurrency, …

    line 120
  16. Very specific:

    Run make verify-skills after skill/link changes.

    line 126

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Working on Delegation Layer

Product direction

Read the product boundary before proposing a design, guarantee or restriction. Delegate owns task lifecycle and evidence; users and providers own their CLI installations, settings and accounts. The installed-executable rule also applies to Delegate, Pueue, fixtures and contributor tools.

See what Delegate provides for product purpose and current capabilities, and architecture for implementation details.

Shared engineering rules

  1. Do the smallest correct change. In the existing plan, name the requested behavior, affected area, non-goals and done condition. No mandatory plan template, tracking file or extra approval process.
  2. Before changing shared state or an interface, name its authoritative owner, writers, readers and invariant. Keep one owner per state; derive other views.
  3. Group new capabilities into cohesive packages, rather than adding filename-prefix families. Separate data, pure decisions and I/O; depend inward through narrow consumer-owned interfaces. Reuse the existing policy, resolver, transaction and finalizer instead of copying them.
  4. Keep explicit control flow, typed boundaries, immutable defaults and useful errors. Preserve supported behavior and persisted data. A private signature or test name is not a compatibility promise merely because it once existed.
  5. Verify source and required native/provider facts before choosing a design. An unavailable tool blocks only dependent work. Do not repair global configuration or substitute a provider to obtain a pass.
  6. Construct, parse and compare values through domain APIs using the contract's semantics: value, structure or identity. Check required representation and input/safety constraints separately; equivalence alone does not prove validity. Derive expected results independently from verified requirements and fixture facts, not incidental output from one host. Use native path/temp APIs and isolate OS primitives. A cross-build or another kernel does not prove native behavior. Windows is a future, unverified host.
  7. Tests, fixtures, installers and contributor tools are maintained code. Keep architectural boundaries and meaningful checks; never weaken assertions, suppress a finding or relabel handwritten code to obtain a pass.
  8. Use focused checks while editing and applicable final checks on stable source. Do not repeat a suite through an aggregate unchanged. Rerun for changed inputs or a concrete concern. Independently review the integrated result and valid corrections; do not add the same review pair to every worker as well.
  9. Include necessary callers/tests/references; report unrelated findings separately. If scope must expand, explain the dependency and smallest alternative, ask for that decision, and continue independent work.
  10. Report actual changes, commands/results and limitations in the conversation. Blocked or unverified checks are not passed. Keep credentials, inherited environments and unrestricted private provider output out of diagnostics.

Documentation completion

After implementation and behavioral verification, reconcile affected README, guides, examples, skills and diagrams as the final development step before independent integrated review and opening or completing the PR. Implementers report documentation impact; Root owns reconciliation across subsystems; the independent reviewer verifies the integrated result against current source.

Use docs-updater for the reconciliation procedure. Update only affected guidance and diagrams; a specific, source-backed reason for no change is valid. Record the assessment and actual checks in the PR's documentation checklist. Checks for links, commands and checksums do not establish semantic freshness or visual quality.

Corrections that change documented behavior reopen this assessment. Reconcile those changes before final review and rerun only invalidated checks, including applicable documentation checks. Do not force token documentation edits, unrelated diagram regeneration, or repeated runtime/provider suites for prose.

Coordination

  • Root owns integration and Git operations: commits, pushes, PRs, CI observation, merges and releases. Other agents leave changes uncommitted unless explicitly assigned otherwise.
  • Give each worker an exact base, owned files and prerequisites. One writer owns overlapping files. Apply and verify a prerequisite before dependent edits; independent work proceeds in parallel.
  • Preserve others' work and unique local data. Use supported resource commands for bounded cleanup; add tooling only for an observed correctness problem.
  • Use the user's selected models, effort and permissions. Do not pin the repository process to a particular model or silently substitute one.
  • Independent reviewers did not implement the reviewed change. A stopped or inconclusive check is reported honestly, not converted into approval.

Test and experiment cleanup

The creator owns cleanup of test-only files, binaries, schedules, admitted tasks, processes and managed workspaces. Arrange cleanup before creating a resource and cover success, failure and interruption. Prevent further launches, close active work through its supported lifecycle owner, and verify closure before removing owned paths. Preserve user data, shared state and intended deliverables; retained history in a shared store is not active work and is not purged. If cleanup or closure is unresolved, retain necessary evidence, report the exact remaining resource and do not claim cleanup or test completion.

Code discovery

Prefer codebase-memory MCP search, trace and snippets. Confirm project/index freshness; use bounded queries and relevant pagination. Check coverage when its tool is available. Read exact source for stale, missing or partial results. An empty search is not proof of absence. Use source search when graph tools cannot answer. Discovery describes relationships, not allowed dependencies.

Use Context7/current primary documentation for uncertain library or CLI APIs. Never send secrets or private source to external searches.

Task-relevant guidance

Load only the owner of the rule needed for the change:

QuestionAuthority
Architecture, dependencies and maintainabilityMaintainability
Task authority, durable writes, lifecycle/signalsDelegation invariants
Provider preparation and interpretationAdapter contract
Toolchain, lint and test floorCode quality
Current implementation and commandsArchitecture, contributing

Use the matching repository skill: delegation-architect, supervisor-architect, go-implementer, go-reviewer, go-test-writer, go-concurrency, live-e2e, docs-updater or add-an-adapter. Read its SKILL.md only when applicable. Agent-integration owns external delegation guidance. Antigravity is for its integration acceptance, not implementation work.

Run make verify-skills after skill/link changes. Local plans and historical diagnostics belong under ignored .local/archive/, not product documentation.

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.