Skip to content

Commit 39bae24

Browse files
Align agent guide with current stack topology
1 parent 7b008d6 commit 39bae24

1 file changed

Lines changed: 61 additions & 26 deletions

File tree

AGENTS.md

Lines changed: 61 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,77 @@
11
# stack agent guide
22

3-
This checkout is a working branch of `The-Interdependency/stack`, the
4-
provenance-bearing aggregation of the organization's core repositories.
3+
This repository is `The-Interdependency/stack`, the organization's composition forge:
4+
canonical projects are pinned here, stack-local research can combine them, and emergent
5+
projects may later graduate into their own repositories.
56

6-
## Authority
7+
## Authority and topology
78

8-
- `research/` snapshots are pinned evidence. Canonical edits happen in the
9-
source repositories first.
10-
- `STACK_MANIFEST.md` and `stack-manifest.json` own stack-level provenance.
11-
- `libs/`, `backend/`, and `frontend/cli/` are reserved scaffolds until explicit
12-
stack-level contracts promote them.
9+
- `libs/<repo>/` is the manifest-pinned canonical repository view. Treat it as read-only
10+
inside stack; canonical edits happen in the owning repository.
11+
- `research/<repo>/` is current stack-local research against an exact pinned base. It is
12+
not canon merely because it is in stack.
13+
- root-level emerging projects such as `ahbg/` may be close to external repo-hood; root
14+
placement does not transfer authority from their inputs.
15+
- `STACK_MANIFEST.md` and `stack-manifest.json` own stack-level participant provenance.
16+
- `backend/` is the durable stack orchestration/fresh-making control plane.
17+
- `frontend/cli/` is the replaceable human/operator surface for that backend.
18+
- `skill-lib/` is the currently pinned operational skill snapshot; exact newer doctrine
19+
may be bound separately only when its provenance and non-transfer boundary are explicit.
20+
21+
## Fresh-making boundary
22+
23+
PostgreSQL on the VM is the single production state authority for derivation specs,
24+
freshness keys, logical jobs, attempts/leases, receipts, target acceptance, dependency
25+
edges, and `hmmm`. It is **not** authority for repository source, canon, generated
26+
artifact meaning, theorem status, measurement validity, or publication standing.
27+
28+
```text
29+
fresh != recent
30+
fresh == exact current identities + matching accepted receipt + output digest + verifier
31+
```
32+
33+
MSDMD collection regeneration is the first derivation adapter. The old `stackctl msdmd`
34+
namespace is deprecated and removed; use `stackctl fresh ...`.
1335

1436
## Boundaries
1537

16-
- Do not edit `research/` snapshots as doctrine or silently update source
17-
commits.
18-
- Do not transfer authority, proof, or license status between participant
19-
repositories.
20-
- For behavior-bearing build changes, use the applicable instructions from the
21-
canonical `skill-lib` checkout or vendored skills if they are added later.
22-
- Generated local state, caches, and build outputs must not be committed.
38+
- Do not edit `libs/` as doctrine or silently update pinned source commits.
39+
- Do not transfer semantic, proof, empirical, certification, measurement, or license
40+
status between participant repositories.
41+
- Do not call generated output fresh from timestamps, executor success, or GitHub Actions
42+
status alone.
43+
- GitHub Actions may become an executor but must not become durable state or acceptance
44+
authority.
45+
- Generated local state, caches, candidates, backups, and receipt projections must not be
46+
committed unless the artifact is explicitly repository-owned evidence.
47+
- For behavior-bearing build changes, resolve and follow applicable `skill-lib` doctrine;
48+
`backend/fresh-making-provenance.json` binds the current runtime's exact fresh-making
49+
doctrine identity.
2350

2451
## Checks
2552

53+
Fresh-making/backend checks that can run without PostgreSQL:
54+
2655
```bash
27-
cd ahbg/grok
28-
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s a0/tests -p 'test*.py'
29-
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s ahbg/tests -p 'test*.py'
30-
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tests -p 'test*.py'
56+
PYTHONDONTWRITEBYTECODE=1 python3 -W error::ResourceWarning -m unittest \
57+
backend.tests.test_orchestrator \
58+
backend.tests.test_worker_postgres \
59+
backend.tests.test_publication_rollback
60+
python3 -m compileall -q backend frontend
61+
bash -n backend/ops/backup_postgres.sh backend/ops/restore_test.sh
3162
```
3263

33-
This branch does not currently carry the root-infra stack manifest check tools;
34-
do not claim `tools/check_stack_manifest.py` or `tools/check_msdmd_paths.py`
35-
verification here unless those tools are added with a compatible manifest.
64+
PostgreSQL integration checks require an explicitly disposable database. A skipped
65+
integration check is `hmmm`, not a pass.
66+
67+
AHBG/Grok has its own local suites under `ahbg/grok/`; run those when touching that
68+
workspace. Do not claim root manifest-check tooling that is not present in this branch.
3669

3770
## hmmm
3871

39-
- The final shape of consolidated libraries, backend, frontend CLI, and EPAC
40-
source remains unresolved.
41-
- Stack manifest verification tooling is present in the `agent/stack-root-infra`
42-
worktree, not this AHBG worktree.
72+
- Concrete VM PostgreSQL/auth/service-account/storage and backup-mount acceptance remains
73+
unobserved until checked on the VM.
74+
- Organization aggregate and website-projection derivation specs are not yet registered.
75+
- The complete root `skill-lib/` snapshot refresh remains separate because the current
76+
provenance-bound fresh-making doctrine is newer than the local generator snapshot.
77+
- Project graduation automation remains unimplemented.

0 commit comments

Comments
 (0)