`@gc` is no longer part of the language: a developer never writes or mentions
it. GC-ness is decided entirely by inference (structural cycles + demand
promotion), which the earlier 7b commits made complete and precise.
- parser: `@gc` on a class is now WO-E104 ("GC-ness is inferred; run
`woc --dump-gc`. Remove it."). `is_gc` stays false; the class classifies by
inference. No `.wo` in the repo carries `@gc` anymore.
- types.ml: retired the WO-W201 machinery (suggest_gc_annotation,
has_recursive_structure(_type), has_unique_field, gc_suggestion_code) — it
suggested `@gc`, now obsolete since inference traces exactly those classes.
- runner.ml: deleted the 8 WO-W201 gc-suggestion test blocks; the @gc-exemption
test's `Cache` is made self-referential so inference classifies it gc without
an annotation.
- fixtures: dropped `@gc` from rc.wo (Cache demand-promotes via its escape),
elision.wo (Cache given a self-ref to stay structurally gc for the rc-elision
dump), pricing-demo.wo (PriceCache doesn't escape -> now owned), and the
abandoned-cycle/budget-steps corpus (Node is structurally gc). rc.wo keeps a
placeholder comment line so its line-indexed rc assertions hold. Goldens
re-blessed.
- docs: error catalog gains WO-E104 and marks WO-W201 retired; gc-cycle README
records the keyword removal.
Verified: woc-test 553/0 (was 566 minus the 13 retired WO-W201 checks),
test_diag 14/0, oop-e2e 79/0, employee 8/0, log-watcher 7/0. `git grep '@gc'`
finds only comments — success criterion 1 met.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
104 lines
3.9 KiB
Text
104 lines
3.9 KiB
Text
# Cargo build artifacts
|
|
/target
|
|
|
|
# `woc .` manifest builds (wo.toml [build] target)
|
|
/docs/examples/log-watcher/target
|
|
/docs/examples/employee/target
|
|
|
|
# Rust runtime (crates/rt/): compiled binary + build artifacts
|
|
/crates/rt/target
|
|
/crates/rt/Cargo.lock
|
|
|
|
# C++ prototype build output
|
|
/prototypes/*/build
|
|
|
|
# OCaml/dune build artifacts (compiler/, the woc compiler front)
|
|
/compiler/_build
|
|
|
|
# C runtime (runtime/): compiled binary + WAL/snapshot data.
|
|
# `just rt-c-demo` and the default WO_DATA write ./wo-data at the repo root.
|
|
/runtime/wo-rt
|
|
/wo-data
|
|
/runtime/wo-data
|
|
# wovm VM core: binary + test build dir (ASan test binaries, smoke fixtures)
|
|
/runtime/wovm
|
|
/runtime/build/
|
|
|
|
# Runtime data directories for the sample projects.
|
|
# `wo.toml` points at `./data` which holds the per-project engine state.
|
|
/data
|
|
/docs/examples/*/data
|
|
|
|
# Legacy blog content and data (v1 writeonce storage)
|
|
/content
|
|
|
|
# Everything in .dev is developer-local (agent-tooling links, and the whole
|
|
# reference/ area: v1 archive, rest smoke files, study-tree symlinks —
|
|
# untracked 2026-08-08, disk-only; v1 history lives at the pre-move
|
|
# reference/ path). Only this README survives:
|
|
/.dev/*
|
|
!/.dev/README.md
|
|
/.dev/reference/
|
|
|
|
# Study-tree symlinks each contributor recreates per machine:
|
|
# ln -s <path-to-linux-src> .dev/reference/linux
|
|
# ln -s <path-to-go-src> .dev/reference/go
|
|
# ln -s <path-to-postgresql-src> .dev/reference/postgresql
|
|
# ln -s <path-to-mcp-python-sdk-src> .dev/reference/mcp-python-sdk
|
|
# (clone: https://github.com/modelcontextprotocol/python-sdk.git)
|
|
# ln -s <path-to-colibri> .dev/reference/colibri
|
|
# ln -s <path-to-llama.cpp> .dev/reference/llama-cpp
|
|
# ln -s <path-to-llvm-project> .dev/reference/llvm-project
|
|
# ln -s <path-to-dotnet-runtime> .dev/reference/dotnet-runtime
|
|
# (sparse clone -- only src/libraries/System.Linq:
|
|
# git clone --filter=blob:none --no-checkout --depth 1 \
|
|
# https://github.com/dotnet/runtime.git ~/projects/dotnet-runtime
|
|
# cd ~/projects/dotnet-runtime && git sparse-checkout init --cone \
|
|
# && git sparse-checkout set src/libraries/System.Linq && git checkout)
|
|
|
|
# Agent-orchestration scratch (SDD ledgers, briefs, review packages)
|
|
/.superpowers/
|
|
|
|
# Editor / OS noise — left broad on purpose so a contributor doesn't
|
|
# accidentally commit their IDE scratch or macOS metadata.
|
|
.DS_Store
|
|
*.swp
|
|
*.swo
|
|
/.idea/
|
|
/.vscode/*
|
|
!/.vscode/settings.json.example
|
|
!/.vscode/extensions.json
|
|
|
|
# Phase-F bench binaries (sources are committed; builds are not)
|
|
/runtime/bench/bench
|
|
/runtime/bench/goref/goref
|
|
prototypes/llama-moe-stream/
|
|
prototypes/wo-db/
|
|
|
|
# `tests/` un-ignored 2026-08-11 (plan 3 Task 2): the conformance corpus
|
|
# lands under `tests/corpus/` and must be tracked, not invisible to git
|
|
# the way the docs below already were once. See docs/plan/learnings.md,
|
|
# "check that a new document is actually tracked". No build artifacts
|
|
# land under `tests/` — the harness's own scratch files use mktemp
|
|
# outside the repo — so nothing needs re-ignoring beneath it.
|
|
|
|
# Documentation is version-controlled — repo doctrine puts docs under `docs/`,
|
|
# and ignoring them there defeats the point. These directories were ignored
|
|
# until 2026-08-10, which silently cost the blue-green vision doc (recovered
|
|
# from a session transcript) and left all seven forward-roadmap plan docs in
|
|
# `docs/superpowers/plans/` existing only on one developer's disk. The rules
|
|
# were also half-fiction: 33 of the 34 files under `docs/plan/exploration/`
|
|
# were already tracked, so the rule only swallowed *new* files — the worst
|
|
# possible failure mode. Do not re-add them.
|
|
# docs/examples/agent-loop/
|
|
# docs/examples/mcp-think/
|
|
# docs/plan/exploration/
|
|
# docs/plan/oop-vm/ (carries the .wob format + error-catalog contracts)
|
|
# docs/superpowers/plans/
|
|
|
|
# Python bytecode — the agent-loop / mcp-think samples are Python, and
|
|
# un-ignoring their directories above exposed these.
|
|
__pycache__/
|
|
*.pyc
|
|
dist/
|
|
docs/examples/*/target/
|