The folder is the system
GARS is a folder of plain files: the rules an agent works under, the helpers that compute, and one directory per project that keeps its own record.
GARS's own rules, beside a real project that an AI agent ran on 4 October 2026 while a person approved each step. It shows the process, not a finding.
Every line below is copied from the real files, never retyped.
CLAUDE.mdThe agent's starting file: it reads AGENTS.md, then the stage map, then follows the current step's contract to the letter.
lines 13 to 26, on GitHub ↗## Agent entry pointFirst, read AGENTS.md.Before responding to any request: read `CONTEXT.md` for the stage map, then read the `CONTEXT.md`of the stage the request maps to. Execute that contract literally.- Its **Scope Boundaries** are binding. Do not read, search, or act outside them, however helpful the deviation would seem.- Its **Response Format** templates are the only messages to send. Add no observations, suggestions, or offers of work. One exception: a direct user question may be answered from the workspace's own files, read-only, before restating the current wait point — the bounded voice rule in `_references/contract_standard.md`.- If a step appears to need deviation, stop and ask. Never act first and report afterwards.
AGENTS.mdRead first: the workspace's mission and its policies.
lines 1 to 30, on GitHub ↗## missionRun genomics analyses through explicit human decisions; follow `CONTEXT.md`.## architectureBuild specification: `../docs/specs/GARS_Unified_Master_Guideline_v1.0.1_FINAL.md`.Workspace stage map: `CONTEXT.md`; helpers compute, contracts orchestrate.## coding standards`../CLAUDE.md`: preserve correct behavior; stdlib Python core; tests accompany changes.## security policySpecification §9 in `../docs/specs/GARS_Unified_Master_Guideline_v1.0.1_FINAL.md`;current enforcement: `.claude/settings.json` and `_system/guard_hook.py`.## testing policyFrom the repository root: `python3 tests/run_tests.py` and`python3 tests/check_contracts.py`. From `gars/`, first `cd ..`.Row 1 alone: `python3 tests/test_stage01_design.py`; sealed inputs absent means skipped.## memory policySpecification §12 in `../docs/specs/GARS_Unified_Master_Guideline_v1.0.1_FINAL.md`.Current records: project `HISTORY.md`; derived state: `_system/project_state.py`.## Git policy`../CLAUDE.md`: stage named paths only; no real data or patient-derived IDs in Git.Do not push, approve, or merge your own work without owner authorization.## change-control policyBefore editing, search `../docs/decisions/CONTEXT.md` for affected paths and read matches.Unspecified material choices require a decision record, not an inferred scientific default.## prohibited operations`CONTEXT.md` and each stage's Scope Boundaries govern analyses. Specification R-074/R-094in `../docs/specs/GARS_Unified_Master_Guideline_v1.0.1_FINAL.md` defines approval restrictions.Do not claim these future controls are implemented; existing guards are listed above.## definition of doneSpecification §17 in `../docs/specs/GARS_Unified_Master_Guideline_v1.0.1_FINAL.md`.Named exit tests must pass; missing sealed evidence remains unmeasured, never PASS.
- 02_bioinformatics/
CONTEXT.mdThe router for stage 02: it hands each step to that step's own contract and runs no analysis itself.
lines 3 to 7, on GitHub ↗## PurposeRun the standardized processing workflow for one assay by executing its sub-stages in the orderdeclared in `_references/assay_stage_skill_map.md`. This stage is a router: it resolves whichsub-stages apply, checks that each one's predecessor has completed, and hands control to thatsub-stage's own contract. It runs no analysis itself.
- chipseq_bulk/01_nfcore-chipseq-wrapper/
CONTEXT.mdWhat the agent may not do at this step: compose a pipeline command, edit the files the wrapper generates, or interpret the biology.
lines 22 to 38, on GitHub ↗## Scope BoundariesThis sub-stage performs the steps in Process and nothing else.- Never compose a `nextflow` command, and never write or edit `submit.sh` or `params.yaml` — `prepare` generates both, and the audited parameter surface is `_config/chipseq_bulk.yaml`. If a parameter seems missing, that is a config or wrapper change to report, not a flag to add.- Never edit the wrapper's code. If it errors, report the error verbatim and stop.- Never substitute a hand-written pipeline. If the wrapper cannot run, report and stop.- Never modify the samplesheet, the design table, `00_data/`, or anything under `01_samplesheets/`.- Never run the pipeline in the foreground, and never poll for it in a loop. Submit, call the typed `status` tool, and return.- Never resubmit a job whose STATUS is `SUBMITTED` or `RUNNING`.- Never delete or move a populated `run/` directory; `check` refuses it for a reason. Surface the refusal.- Do not interpret the biology. Report counts, paths and QC locations only.- If you believe a step should deviate, stop and ask. Do not act first and report afterwards.
- 03_custom_analysis/
CONTEXT.mdThe plan gate: nothing runs until the user approves the plan, and the agent can never approve it itself.
lines 30 to 70, on GitHub ↗- Do **not** execute anything — no script, notebook, one-liner, or skill — before the user's own `stage03_analysis.py approve` has succeeded on the plan. Drafting is free; running is gated.- Do **not** run `approve` yourself, ever. It is the user's command, run in their own terminal outside this session; the guard refuses it for an agent session, and its actor is whoever launched the process (R-073, R-093; decision 0059). Your part is to hand the user the exact command in T2 and wait.
lines 36 to 60 not shown**Approved.** The user runs `approve` in their own terminal, and it passes its gates: noskeleton markers, a non-empty Outputs table, every output type in the closed vocabulary, everyoutput path relative. It stamps `Status: APPROVED <date>` into `PLAN.md` and writes the approvalrecord `{actor, timestamp, plan_sha256, expiry, plan_path}` into the approval store, the`.gars-approvals/` folder beside the workspace, outside it and out of your reach (decision0059). The record lasts 24 hours from approval. `verify` and `submit` read only that record, soa `Status: APPROVED` line, a `PLAN.md.approved` file in the workspace, a plan edited afterapproval, or an expired record are never evidence of approval. Approval is durable for itslifetime — it lives in the store, not in the conversation. Never read, write, copy or moveanything in the approval store.
- _system/wrappers/nfcore-chipseq-wrapper/
SKILL.mdThe wrapper this step runs: one small file with three commands (check, prepare and collect), locked to one nf-core/chipseq version.
lines 1 to 23, on GitHub ↗---name: nfcore-chipseq-wrapperdescription: > GARS-authored wrapper around nf-core/chipseq 2.1.0 — peaks per IP against its declared input control (MACS3), per-antibody consensus (decision 0031).metadata: openclaw: source: gars # versioned in this repo, ours to maintain (decision 0012) pipeline: nf-core/chipseq pipeline_version: "2.1.0" requires: bins: [python3, nextflow, java, git] python: ">=3.6 (stdlib only)" install: > Nothing to install for the wrapper itself. Runtime needs gars-nxf on PATH at submit time and the pinned checkout at $GARS_PIPELINES/chipseq-2.1.0.---# nfcore-chipseq-wrapperOne stdlib file on `_system/wrapperlib.py` (decision 0028): `check` (preflight), `prepare`(params.yaml + submit.sh + reproducibility bundle, deterministic bytes), `collect` (contentexit gate, OUTPUTS.tsv, STATUS, history entry). The sub-stage contract at`02_bioinformatics/chipseq_bulk/01_nfcore-chipseq-wrapper/CONTEXT.md` orchestrates it; nothing here is invokeddirectly by a user. Exit codes: 0 ok / 1 failure / 2 refused / 3 usage.
CreditWrappers modelled on ClawBio's open bioinformatics skills.
- projects/epigenome-a/
HISTORY.mdThe project's memory: each step adds a dated entry, and nothing is ever rewritten.
the rule it follows: HISTORY.md line 3, on GitHub ↗# History: epigenome-aAppend-only. One dated entry per stage action, newest last. Every stage appends here; no stagerewrites or removes an earlier entry.Entry format:```## <ISO-8601 date> — <stage or sub-stage> — <outcome><what was done, what was written, and where any input came from>```---## 2026-10-04 — 00_initialize_project — project createdTemplate version: v0.10.0Model: claude-opus-5-5File integrity check: `quick`| Assay ID | Source path | Files linked ||---|---|---|| atacseq_bulk | `/home/ubuntu/gars-launchpad/fixtures/epigenome-a/seqrun/atacseq` | 8 || chipseq_bulk | `/home/ubuntu/gars-launchpad/fixtures/epigenome-a/seqrun/chipseq` | 12 |## 2026-10-04 — 01_prepare_samplesheets — declarations recorded2026-10-04 atacseq_bulk unit_of_replication: sample; user answer: "unit_of_replication: sample; reference_release: R64-1-1"2026-10-04 atacseq_bulk reference_release: R64-1-1; user answer: "unit_of_replication: sample; reference_release: R64-1-1"## 2026-10-04 — 01_prepare_samplesheets — samplesheets emittedTemplate version: v0.10.0Model: claude-opus-5-5Deep file-integrity verification: `none`- **atacseq_bulk**: 4 of 4 samples, 2 group(s), paired-end, full_check_estimate_min `1`, full_check_needs_scheduling `False`, included_bytes `42611155`, included_gb `0.0`. Columns `sample,fastq_1,fastq_2,replicate`. Wrote 4 samplesheet rows and 4 design rows.- **chipseq_bulk**: 6 of 6 samples, 3 group(s), paired-end, full_check_estimate_min `1`, full_check_needs_scheduling `False`, included_bytes `59247688`, included_gb `0.1`. Columns `sample,fastq_1,fastq_2,replicate,antibody,control,control_replicate`. Wrote 6 samplesheet rows and 6 design rows.Files written: 01_samplesheets/atacseq_bulk_samplesheet.csv, 01_samplesheets/atacseq_bulk_design.csv, 01_samplesheets/atacseq_bulk_design_check.json, 01_samplesheets/chipseq_bulk_samplesheet.csv, 01_samplesheets/chipseq_bulk_design.csv, 01_samplesheets/chipseq_bulk_design_check.json## 2026-10-04 — 02_bioinformatics/atacseq_bulk/01_nfcore-atacseq-wrapper — pipeline completeTemplate version: v0.10.0Model: claude-opus-5-5Pipeline: nf-core/atacseq 2.1.2 (local checkout), aligner bwa, narrow peaksSamples: 2 (atac-a, atac-b)Derived cache: populatedOutputs: `peaks`, `peaks_consensus`, `counts_peaks`, `bigwig`, `bam_genome`, `qc_multiqc`## 2026-10-04 — 02_bioinformatics/chipseq_bulk/01_nfcore-chipseq-wrapper — pipeline completeTemplate version: v0.10.0Model: claude-opus-5-5Pipeline: nf-core/chipseq 2.1.0 (local checkout), aligner bwa, broad peaksSamples: 3 (chip-a, chip-b, input-a), of which IPs: 2Derived cache: populatedOutputs: `peaks`, `peaks_consensus`, `counts_peaks`, `bigwig`, `bam_genome`, `qc_multiqc`## 2026-10-04 — 03_custom_analysis/01_peak-signal-a-vs-b — analysis completeTemplate version: v0.10.0Model: claude-opus-5-5Plan: 03_custom_analysis/01_peak-signal-a-vs-b/PLAN.md (approved 2026-10-04)Goal: A characterization analysis at the peak level, focused on the signal differences between condition `a` and condition `b`. It is run separately for each assay that has peaks in this project: ATAC-seq ...Outputs: `results/atacseq_bulk_peak_summary.tsv` (table), `results/atacseq_bulk_peak_characterization.png` (figure), `results/atacseq_bulk_sample_structure.png` (figure), `results/atacseq_bulk_differential_peaks_b_vs_a.tsv` (table), `results/atacseq_bulk_ma_volcano_b_vs_a.png` (figure), `results/chipseq_bulk_peak_summary.tsv` (table), `results/chipseq_bulk_peak_characterization.png` (figure), `results/chipseq_bulk_sample_structure.png` (figure), `results/chipseq_bulk_differential_peaks_b_vs_a.tsv` (table), `results/chipseq_bulk_ma_volcano_b_vs_a.png` (figure), `results/report.md` (report)
- 02_bioinformatics/chipseq_bulk/01_nfcore-chipseq-wrapper/
params.yamlThe pipeline's settings, generated from the assay's checked config file, never typed by hand.
the rule it follows: CONTEXT.md line 26, on GitHub ↗# Generated by the chipseq_bulk wrapper's prepare. Do not hand-edit: the audited# parameter surface is _config/chipseq_bulk.yaml; change that and re-run prepare.input: /home/ubuntu/gars-launchpad/take/lp-take-20261004-1/gars-clone/gars/projects/epigenome-a/01_samplesheets/chipseq_bulk_samplesheet.csvoutdir: /home/ubuntu/gars-launchpad/take/lp-take-20261004-1/gars-clone/gars/projects/epigenome-a/02_bioinformatics/chipseq_bulk/01_nfcore-chipseq-wrapper/run/resultsfasta: /home/ubuntu/genomics-agentic-research-system/install/refs/R64-1-1/genome.fagtf: /home/ubuntu/genomics-agentic-research-system/install/refs/R64-1-1/genes.gtfaligner: bwamacs_gsize: 11624332save_reference: trueskip_preseq: true
STATUSThe step's state in one line, and the only authority on whether it finished.
the rule it follows: CONTEXT.md lines 52 to 58, on GitHub ↗COMPLETE 2026-10-04T17:43:46ZOUTPUTS.tsvWhat the step produced, declared by type, so the next step finds its inputs by type rather than by path.
the rule it follows: CONTEXT.md lines 61 to 64, on GitHub ↗# type role path sha256 artifact_classpeaks native run/results/bwa/merged_library/macs3/broad_peak sha256-tree:a95e0e376e341ca4585a212a4d843c37a2ee93e69e1c28d92142248f2ab3aadc durablepeaks_consensus native run/results/bwa/merged_library/macs3/broad_peak/consensus sha256-tree:beecdba142c1068152595facd2279b548f70a2e10fe194464ef463c0763ee2ba durablecounts_peaks native run/results/bwa/merged_library/macs3/broad_peak/consensus/ab-a/ab-a.consensus_peaks.featureCounts.txt 42f05859b97a909804a4aa0785e5e3a8806ed7adddf79fba192ac971ce4b7eb2 durablebigwig native run/results/bwa/merged_library/bigwig sha256-tree:c382d857e2dfe57ea65c5aeb365d299616311e724ee7a68e0b1367173caf0299 durablebam_genome native run/results/bwa/merged_library sha256-tree:79970b6c17e7047ff0574a1a6930aa4eaa46041cd7cc4c728b9c75cea29deb76 durableqc_multiqc native run/results/multiqc/broad_peak/multiqc_report.html 5bff39c65329630415c5904ecdfe0830b4d02361cc69150b418650186fa773f0 durable
Architecture
Context layers
Context is layered, so an agent loads only what the current task needs:
CreditGARS's analysis first ran on ClawBio's open bioinformatics skills; its own nf-core wrappers in _system/wrappers/ are modelled on their behaviour. Issues GARS found along the way were reported upstream, and ClawBio fixed them, keeping only a rerun guard the report itself called defensible: ClawBio#333 · ClawBio#365.
CreditGARS's premise, carried through every layer of the system, follows the Interpretable Context Methodology by Jake Van Clief and David McDermott (arXiv:2603.16021).
Source on GitHubGARS's README on GitHub ↗
The full architecture: stage flow and who writes each folder
- 00_initialize_
projectregister raw data - human gatefill in the design
- 01_prepare_
samplesheetsvalidate + emit - 02_bioinformaticsroute to sub-stages
- rnaseq: nfcore wrapper → DE
- atacseq
- chipseq
- cutandrun
- methylseq
- scrnaseq: nfcore wrapper → QC/cluster
- spatialvi (Visium, downstream)
- 03_custom_
analysis
Who writes each project folder
Each project directory is owned by exactly one stage, and the numeric prefix encodes the owner — NN_* is written by stage NN_* and by no other:
- 00_data/stage 00raw symlinks, files.csv, samples.csv
- 01_samplesheets/stage 01workflow-ready samplesheet + design table
- 02_bioinformatics/stage 02per-assay sub-stage outputs
- 03_custom_analysis/stage 03