faf 8.9.0 → 8.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -70,20 +70,20 @@ pnpm dlx faf auto # pnpm — zero install
70
70
  brew install wolfe-jam/faf/faf-cli && faf auto # Homebrew (auto-taps)
71
71
  ```
72
72
 
73
- > `faf` with no arguments shows your project's score; `faf auto` detects and fills.
73
+ > `faf` with no arguments shows your project's score. `faf auto` fills what it detects in the repo, and suggests the goal and six W's for you to confirm in `faf go`.
74
74
 
75
75
  ---
76
76
 
77
77
  ## Quick Start
78
78
 
79
79
  ```bash
80
- # ANY GitHub repo — one shallow clone, no install, 2 seconds
80
+ # Any public GitHub repo — one shallow clone, no install (fills the tech slots)
81
81
  bunx faf-cli git https://github.com/facebook/react
82
82
 
83
83
  # Your own project
84
84
  bunx faf-cli init # Create .faf
85
- bunx faf-cli auto # Fill every tech slot from the repo, then score
86
- bunx faf-cli go # Interactive interview to gold code
85
+ bunx faf-cli auto # Fill the tech slots from the repo, then score
86
+ bunx faf-cli go # Confirm the goal and six W's, suggested in gray
87
87
  ```
88
88
 
89
89
  ---
@@ -94,7 +94,7 @@ Run `faf` with no arguments:
94
94
 
95
95
  ![faf](./nelly.png)
96
96
 
97
- > **faf-cli dogfoods itself** — [project.faf](./project.faf) is source DNA; [CLAUDE.md](./CLAUDE.md) and [GEMINI.md](./GEMINI.md) are authored from it via `faf`. [AGENTS.md](./AGENTS.md) is the **BETTER** ops briefing (hand-kept for agents; `faf export --agents` still authors AGENTS.md for other repos).
97
+ > **faf-cli dogfoods itself** — [project.faf](./project.faf) is source DNA; [CLAUDE.md](./CLAUDE.md), [GEMINI.md](./GEMINI.md) and [AGENTS.md](./AGENTS.md) are authored from it (`faf export`, and `faf sync` for CLAUDE.md); AGENTS.md keeps a hand-written section below faf's block.
98
98
 
99
99
  ---
100
100
 
@@ -102,17 +102,17 @@ Run `faf` with no arguments:
102
102
 
103
103
  | Command | What it does |
104
104
  |---------|--------------|
105
- | `faf init` | Create `project.faf` from your local project |
105
+ | `faf init` | Create `project.faf` from your local project; suggest the goal and six W's |
106
106
  | `faf git <url>` | Instant `.faf` from any GitHub repo (a shallow clone) |
107
- | `faf auto` | Detect stack, fill every slot it can, score |
108
- | `faf go` | Guided interview to fill the human-only slots |
107
+ | `faf auto` | Detect the stack, fill the slots it detects, score; suggest the goal and six W's |
108
+ | `faf go` | Fill the human slots: each suggestion in gray, Tab to edit, Enter to confirm |
109
109
  | `faf score` | Check AI-readiness (0–100%) |
110
- | `faf export` | Author `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursorrules` |
111
- | `faf sync` | `.faf` → `CLAUDE.md` (pull: Trophy-gated backfill) |
110
+ | `faf export` | Author `AGENTS.md`, `GEMINI.md`, `.cursorrules` and the Copilot instructions |
111
+ | `faf sync` | `.faf` → `CLAUDE.md`, one way (faf's block only) |
112
112
  | `faf memory` | `.fafm` soul ops — convert Claude memory, etch, recall, ls, show |
113
113
  | `faf diff` / `log` | Semantic context diff + score timeline across git history |
114
114
  | `faf hooks --install` | Pre-commit guard against context regression |
115
- | `faf taf setup` | Write the CI workflow that prints a Test Receipt for every run (JavaScript with Jest, Vitest or Bun; Python; Go) |
115
+ | `faf taf setup` | Write the CI workflow that prints a Test Receipt for every run: a test job with a read-only token, then a receipt job (JavaScript with Jest, Vitest or Bun; Python; Go; Rust; Java with Maven or Gradle; .NET) |
116
116
  | `faf taf receipts` | Your Test Receipts in the terminal, newest first |
117
117
  | `faf compile` / `decompile` | `.faf` → `.fafb` **v2** sealed brick; `decompile` shows sections as JSON |
118
118
  | `faf check` | Validate a `.faf` file |
@@ -135,16 +135,15 @@ faf memory etch "a durable fact" --id my-fact
135
135
  faf memory show
136
136
  ```
137
137
 
138
- ### What's New in v8.9.0 — The Write-Once Edition
138
+ ### What's New in v8.11.0 — The Project Facts Edition
139
139
 
140
- **A birth certificate that can't be reissued. `faf dna --verify` checks it against the commit that first saved it. Plus a lighter install, and every command documented.**
140
+ **The six W's now reach every agent: AGENTS.md points to project.faf, and CLAUDE.md, GEMINI.md, .cursorrules, Copilot and llms.txt carry them, one rule, one line each.**
141
141
 
142
- - **Write-once.** `.faf-dna`, your project's birth certificate, is written once. Nothing in faf replaces it, and `faf init --force` now works like `--new`: a fresh `project.faf`, the certificate kept.
143
- - **`faf dna --verify`** compares the certificate with the commit that first added `.faf-dna`. Exit 0 if they match, 1 if they differ, 2 if there is nothing to check against yet. `faf init` and `faf dna` tell you when it isn't committed yet, with the command to run. faf never commits for you.
144
- - **A lighter install.** The package is under half its old size (2.35 MB unpacked, was 5.34 MB), and npm no longer installs an unused 6.4 MB copy of the Anthropic SDK.
145
- - **Every command documented**: the ones the README doesn't cover are on [docs.faf.one/more-commands](https://docs.faf.one/more-commands).
146
- - **Named skips.** `faf taf receipts` shows `+N newly skipped` when a receipt names a test that wasn't skipped before (faf-taf-git 2.5.0).
147
- - **Cleaned up.** Help flags that did nothing are gone, `init --output` keeps `.faf-dna` beside its file, `card init` won't overwrite a card written during its questions, and `faf wjttc` sees tiers on `.skipIf` / `.each` blocks.
142
+ - **AGENTS.md points to the facts.** A `## Project facts` section names `project.faf`, by its real path from AGENTS.md (a legacy `.faf`, a file one folder up, `--output`). The only pointer before was an HTML comment, which agents skip. AGENTS.md still doesn't copy the six W's.
143
+ - **The six W's in every context file.** GEMINI.md and .cursorrules gain a Context section, as CLAUDE.md and the Copilot instructions have. `llms.txt` and Claude Code's MEMORY.md block (Pro) show the same values.
144
+ - **One rule, the score's.** A slot the score counts as empty (empty, `slotignored`, TBD, N/A) is left out; numbers show as written in project.faf, dates and lists as text; each fact is one line. CLAUDE.md no longer shows `slotignored` or placeholders.
145
+ - **`faf taf setup` writes two jobs** (faf-taf-git 2.7.0): the tests run with a read-only token, only the receipt job can write, and a red run on the default branch is recorded as a `FAILED` receipt.
146
+ - **Why:** [the evidence](https://github.com/Wolfe-Jam/context7-faf-receipt#round-4-what-agentsmd-carries-opencode-and-codex). On tasks whose deciding fact was only in the six W's, Codex and OpenCode found the team's decision 4/22 times with the old AGENTS.md, 12/21 with the pointer, 19/20 with the six W's in the file.
148
147
 
149
148
  Earlier editions: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.com/Wolfe-Jam/faf-cli/releases)
150
149
 
@@ -152,7 +151,7 @@ Earlier editions: [CHANGELOG.md](./CHANGELOG.md) · [Releases](https://github.co
152
151
 
153
152
  ## Custom instructions
154
153
 
155
- Your own rules for the AI — *"use full words in identifiers," "use bun, not npm"* — go in `project.faf` under `ai_instructions.warnings`. They land at the top of every `AGENTS.md` faf writes, verbatim and non-destructive.
154
+ Your own rules for the AI — *"use full words in identifiers," "use bun, not npm"* — go in `project.faf` under `ai_instructions.warnings`. They lead the Guardrails section of every `AGENTS.md` faf writes, verbatim and non-destructive.
156
155
 
157
156
  **→ [How to add custom rules](https://docs.faf.one/custom-rules)** · [docs.faf.one](https://docs.faf.one)
158
157
 
@@ -182,8 +181,8 @@ Your own rules for the AI — *"use full words in identifiers," "use bun, not np
182
181
  ## Sync
183
182
 
184
183
  ```
185
- sync: .faf ──── 8ms ───→ CLAUDE.md (pull: Trophy-gated backfill)
186
- tri-sync: .faf ──── 8ms ───→ CLAUDE.md + Claude Code's MEMORY.md (Pro: faf's block only; Claude's notes kept)
184
+ sync: .faf ───→ CLAUDE.md (one way: faf's block only)
185
+ tri-sync: .faf ───→ CLAUDE.md + Claude Code's MEMORY.md (Pro: faf's block only; Claude's notes kept)
187
186
  ```
188
187
 
189
188
  ---
@@ -195,6 +194,7 @@ The full manual lives at **[docs.faf.one](https://docs.faf.one)** — facts for
195
194
  - [Getting started](https://docs.faf.one/getting-started) — install · run · use
196
195
  - [Cards](https://docs.faf.one/cards) — one `.fafa` → A2A · Server Card · registry · AI Catalog · ARD
197
196
  - [Custom rules](https://docs.faf.one/custom-rules) — pin instructions your AI must follow
197
+ - [Every command](docs/COMMANDS.md) — one section per command, with real output
198
198
 
199
199
  For a specific agent: [Grok, xAI & Cursor 👀](docs/faf-cli-for-agents.md) · [Claude Code 👀](docs/faf-cli-for-claude.md) · [Bun 👀](docs/faf-cli-for-bun.md)
200
200
 
@@ -204,6 +204,8 @@ For a specific agent: [Grok, xAI & Cursor 👀](docs/faf-cli-for-agents.md) · [
204
204
 
205
205
  Pivotal releases — full history in [CHANGELOG.md](./CHANGELOG.md):
206
206
 
207
+ - **v8.11 — Project Facts** — the six W's reach every agent file; AGENTS.md points to project.faf.
208
+ - **v8.10 — Human Slots** — AI suggests the goal and six W's; you confirm each one in `faf go`.
207
209
  - **v8.9 — Write-Once** — a birth certificate that can't be reissued, checked against its birth commit.
208
210
  - **v8.0 — Always33** — one engine, one number: the same score everywhere.
209
211
  - **v7.1 — AGENTS.md** — `faf export --agents` authors a complete, non-destructive `AGENTS.md`.
@@ -252,7 +254,7 @@ src/
252
254
  > **Robust. Reliable. Next-level WJTTC tested.** — The Foundation Edition.
253
255
 
254
256
  ```bash
255
- bun test # extensive WJTTC + e2e suite
257
+ npm test # extensive WJTTC + e2e suite
256
258
  ```
257
259
 
258
260
  - **WJTTC Build Resilience** — regression classes locked.