The thinking behind the organism, versioned alongside the three code repos rather than living only on one machine. - AILED_General_Specification.md, the authoritative design, and the implementation plan the code was built from - AGENTS.md, the project-wide rules, including the two that were learned the hard way: this is not a performance benchmark, and a null recorded early beats a claim propped up later - the nine superseded module specs, each carrying a banner naming what replaced it - .sdd/, the execution ledger and every task brief and report: each ruling taken, what it would cost if wrong, every correction, and every number verified independently The three code repos are siblings, each its own repository, and are git-ignored here so nothing is nested. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85
80 lines
2.0 KiB
Markdown
80 lines
2.0 KiB
Markdown
# Task 1 brief (part): task-1a-ailed-brief.md
|
|
|
|
## Global constraints
|
|
|
|
|
|
- Root `ia-stuff/` is **not** a git repo; `ailed/`, `experiments/`, `paper/` each are. Commit inside the repo you touched.
|
|
- No hand-written backward passes. Autograd only (spec §1, §11).
|
|
- $\psi$ never carries gradient: it is built from `loss.item()` (spec §5).
|
|
- Every oracle is opt-in and must leave the non-oracle trajectory byte-identical (spec §7).
|
|
- $\kappa = 0$ must be a single flag that disables affect on the gate (spec §4).
|
|
- Affect axes are read by name (`valence`, `arousal`), never by position, outside `Organism.forward` (spec §5).
|
|
- Commit messages end with:
|
|
```
|
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
|
Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85
|
|
```
|
|
|
|
|
|
## Your steps
|
|
- [ ] **Step 1: Library repo**
|
|
|
|
```bash
|
|
cd /Users/chrnx/workspace/chrnx-dev/ia-stuff
|
|
mkdir -p ailed/src/ailed ailed/tests && cd ailed && git init -q
|
|
```
|
|
|
|
`ailed/pyproject.toml`:
|
|
```toml
|
|
[project]
|
|
name = "ailed"
|
|
version = "0.1.0"
|
|
description = "Relational-affective organism: affective CPPN, RP, GRP, 2-axis affect"
|
|
requires-python = ">=3.11"
|
|
dependencies = ["torch>=2.2", "numpy>=1.26"]
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest>=8"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/ailed"]
|
|
```
|
|
|
|
`ailed/src/ailed/__init__.py`:
|
|
```python
|
|
"""AILED: relational-affective organism. See AILED_General_Specification.md."""
|
|
```
|
|
|
|
`ailed/tests/test_smoke.py`:
|
|
```python
|
|
def test_import():
|
|
import ailed # noqa: F401
|
|
```
|
|
|
|
`ailed/.gitignore`:
|
|
```
|
|
.venv/
|
|
__pycache__/
|
|
*.egg-info/
|
|
.pytest_cache/
|
|
```
|
|
|
|
- [ ] **Step 2: Run the smoke test**
|
|
|
|
Run: `cd ailed && uv sync && uv run pytest -q`
|
|
Expected: `1 passed`
|
|
|
|
- [ ] **Step 3: Commit**
|
|
|
|
```bash
|
|
cd ailed && git add -A && git commit -q -m "chore: scaffold ailed library
|
|
|
|
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
|
Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85"
|
|
```
|
|
|