File size: 3,696 Bytes
2509f31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Agent guide

What an AI agent contributing to `icat_app` needs to read first.

This is the single starting page for an agent. Each section names the
authoritative file; this guide does not duplicate content β€” it points.

## 1. Identity + base rules

- `CLAUDE.md` β€” DECODE base rules (reviewer-required, verify-before-claim,
  patch-source-not-artifact, stage-files-explicitly, no-AI-attribution).
- `AGENTS.md` β€” the thin entrypoint for any AI workflow (points back to
  `CLAUDE.md` + this file).

## 2. What this repo IS

- `docs/architecture/repository-erd.md` β€” runtime topology (`app.py` β†’ 8
  tabs β†’ `helper.py`), deploy pipe to Hugging Face Spaces.
- `docs/architecture/active-surface.md` β€” which helpers each tab consumes.
- `README.md` β€” public landing card (the HF Spaces frontmatter at the top
  is consumed by the Space; do not edit the keys).

## 3. Naming + structure rules

- `docs/policies/naming-conventions.md` β€” `tab<N>.py` rule, helper naming,
  what we do NOT do (no `src/` layout, no per-tab subdirs).
- `docs/policies/root-artifact-policy.md` β€” what is allowed at root, what
  is gitignored, what is tolerated locally.

## 4. Where to NOT go

- `docs/guides/ai-enablement-limits.md` β€” destructive ops, secret writes,
  AI-attribution, the deploy-critical file list.
- `docs/guides/protected-boundary-policy.md` β€” `main` = HF deploy on every
  push; rules around touching `main.yml` and the runtime files.

## 5. How to actually do work

- `docs/runbooks/local-setup.md` β€” clone β†’ install β†’ run β†’ verify.
- `docs/guides/git-and-pr-rules.md` β€” branch model, default flow
  (`feature/<scope>` β†’ PR β†’ `main`), PR target, the observed `dev` branch
  that is NOT the production branch despite being the repo default.
- `docs/guides/review-workflow.md` β€” reviewer subagent contract,
  `.decode-reviewer-clean` marker semantics, override syntax.
- `.github/pull_request_template.md` β€” the deploy-boundary checklist that
  appears on every new PR.

## 6. When CI fails

- `docs/guides/ci-failure-triage.md` β€” per-workflow failure modes and
  recovery steps. Read before re-running anything.

## 7. Verification

- `scripts/repo_validate.py` β€” local pre-push proof. Same script also
  runs on every PR via `.github/workflows/repo_validate.yml`.

## 8. Audit + standards alignment

- `.claude/manifests/standards-sync.yaml` β€” the applied
  `decode-ai-standards` ref and slice ledger.
- `.claude/skills/check_decode_ai_standards_updates/SKILL.md` β€” the
  freshness-check skill that compares the manifest against upstream.
- `docs/progress/slice-integration-overview.md` β€” slice timeline.

## 9. Hooks + skills surface

- `.claude/settings.json` β€” allowed/blocked tool patterns, hook wiring.
- `.claude/hooks/` β€” runtime block-*.sh scripts.
- `.claude/skills/{deslop,tdd,check_decode_ai_standards_updates}/SKILL.md`
  β€” repo-local skills.
- `.githooks/pre-commit`, `.githooks/commit-msg` β€” git-side enforcement.
  Wired via `core.hooksPath` by `scripts/setup.sh`.

## Reading order for a fresh agent

If you have time for only one pass, read in this order:

1. `CLAUDE.md` (base rules, reviewer procedure, hard rules 1–5)
2. `docs/guides/ai-enablement-limits.md` (what you cannot do and why)
3. `docs/guides/protected-boundary-policy.md` (the deploy story)
4. `docs/architecture/repository-erd.md` (what the code is)
5. `docs/runbooks/local-setup.md` (only if you intend to run it locally)

If you have time for two passes, also read:

6. `docs/guides/review-workflow.md`
7. `docs/policies/naming-conventions.md`
8. `docs/policies/root-artifact-policy.md`

The rest is referential β€” pull in on demand, not preemptively.