diff --git a/AGENTS.md b/AGENTS.md index 92cd325c..31d62df9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ is edited only in the roadmap. 1a. **The course check, before every change** ([rules §0](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/rules.md#0-the-course-check-the-plan-and-the-north-star-before-every-change)): the [North Star](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/north-star.md) metric and - gaps, and the [one plan in waves](https://github.com/passioncode-ai/fabric-workspace/blob/main/docs/plans/2026-11-11-unified/README.md). + gaps, and the plan of record that rules §0 names (read it there, never from a copied path). Name the track, plan row or gap the change serves; work that serves none goes to the board first. 1b. **The North Star sections this repository serves** (operator, 2026-11-13; [North Star §6](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/north-star.md#merged-with-the-north-star-validated-by-the-architect-operator-2026-11-13) «Merged with the North Star, validated by the architect»): [S4.1](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/system/prompt-onboarding.md) diff --git a/CHANGELOG.md b/CHANGELOG.md index c81b467c..55ccca5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,26 @@ # Changelog -## 0.2.83 - unreleased +## 0.2.84 - unreleased + +### Changed + +- **Fabric Agent Adapter `v0.103.3`** (was `v0.102.0`; PC-247, board request `645b9e02`, thread `2b08b15f`): the + adapter's 0.103.2 (a package without recipes) and 0.103.3 (FAA-379, part one: every session start of any host leaves + one `event=session-start host= outcome=` line in `hooks.log`). Same contract (`0.1.0`), no breaking + change. Between the two tags `git diff --name-status v0.102.0 v0.103.3 -- plugins/fabric-agent-adapter` adds three + scripts (`fabric-template.mjs` and `fabric_template.py` in `building-fabric-services`, + `fabric_memory_crossrunner.py` in `working-with-fabric`), modifies 28 files and removes none; the set installs the + same five adapter skills with the same hooks file and install paths. + +### Fixed + +- **The course check points at the plan of record that rules §0 names** (PC-248, fabric-workspace harness-loss audit + H-06, board request `ca9354fa`): the session-start course line, `working-in-passioncode` §0 and `AGENTS.md` sent + agents to the unified plan of 2026-11-11 after the system design of 2026-11-21 succeeded it. They now name no plan + file and send the agent to the knowledge base's rules §0, which names the current plan; test `PC-248: no plan file is + named by path …` in `test/repo-rules.test.js` holds it. + +## 0.2.83 - 2026-11-24 ### Changed diff --git a/docs/backlog.md b/docs/backlog.md index 4bb340a3..a0cee8e9 100644 --- a/docs/backlog.md +++ b/docs/backlog.md @@ -252,3 +252,5 @@ derives its common backlog from [backlog-sources.json](backlog-sources.json). | PC-244 | Pin Fabric `0.3.29` (Fabric Base 1) in `trains/fabric-base-1.json` once session 01 publishes it non-prerelease, and Dashboards `0.8.226` when tagged (A-APP-11 Lunch line); a launcher release | open 2026-11-24: waits on the fabric release (session 01) | base manifest `fabric-base-1.json` (fabric-workspace) | | PC-245 | The owner's MacBook to the base manifest: run the owner's line in [fabric-base-1-install.md](reference/fabric-base-1-install.md#the-owners-mac-a-app-11) on the MacBook (Inbox 1.7.1 to 1.9.2, adapter 0.102.0), done when `doctor` exits 0 and Inbox reads 1.9.2. The build machine cannot open a shell on the MacBook (SSH timed out, 2026-11-24; access runs only the other way), so a MacBook session or the owner runs it | open 2026-11-24: needs a process on the MacBook; 0.2.83 is on npm (`latest`, release run 45294028388 success), so the line runs as written | W2 session 06 | | PC-246 | `PC-163: the server end of this account's own connection reads \`own\` from the real socket table` (`test/listener.test.js`) fails on a build machine whose `netstat` prints no row for the server end of the test's own loopback connection (`table-restricted … netstat printed no table`); it fails the same on unchanged `origin/main` `df80ead` there, 2026-11-24. Make the test skip with its reason where the table is restricted, or read the table the way that machine allows | open 2026-11-24: P3 | W2 session 06, full `npm test` on `agent/w2-s06-base1-owner-mac` (681 of 687 pass, 2 fail: this one and a strings.md drift fixed in the same branch) | +| PC-247 | Pin Fabric Agent Adapter `v0.103.3` (`f9b87061`, npm `latest` 0.103.3 with the same `gitHead`, release run 45555348309 green) and release the launcher: check `git diff --name-status v0.102.0 v0.103.3 -- plugins/fabric-agent-adapter`, vendor with `--release`, run the full gate, release 0.2.84 | in progress 2026-11-25: pinned on branch `agent/pc-247-adapter-0.103.3` with version 0.2.84; the diff adds three scripts, modifies 28 files and removes none (same five skills, hooks file unchanged). The Fabric Base 1 line in [fabric-base-1-install.md](reference/fabric-base-1-install.md) stays on 0.2.83 (adapter 0.102.0) until fabric-workspace moves the base manifest | board request `645b9e02` from fabric-agent-adapter (thread `2b08b15f`), deadline 2026-11-28 | +| PC-248 | R5 of the harness-loss audit (H-06): the session-start course line (`plugin/passioncode/hooks/repo-rules.js`), `working-in-passioncode` §0 and `AGENTS.md` named the unified plan of 2026-11-11 after the system design of 2026-11-21 became the plan of record (fabric-workspace `AGENTS.md:10`, `knowledge/rules.md:32`). Read the plan from the knowledge base, not as a string: point at rules §0, which names it | in progress 2026-11-25: fixed on branch `agent/pc-248-course-plan-from-rules`, released with 0.2.84 (with PC-247); test `PC-248: …` in `test/repo-rules.test.js` failed before the fix and passes with it. R8 (H-10, Codex plugin versions and hooks) is the adapter's and Switchboard's part of the same request, not this repository's | board request `ca9354fa` from fabric-workspace (thread `5552be73`), deadline 2026-11-26 | diff --git a/family.json b/family.json index 92b2347c..8150667c 100644 --- a/family.json +++ b/family.json @@ -8,7 +8,7 @@ "name": "fabric-agent-adapter", "displayName": "Fabric Agent Adapter", "repo": "passioncode-ai/fabric-agent-adapter", - "ref": "v0.102.0", + "ref": "v0.103.3", "kind": "plugin", "path": "plugins/fabric-agent-adapter", "legacyPluginIds": [ diff --git a/package.json b/package.json index 8b79166d..a92eb33c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@passioncode-ai/passioncode", - "version": "0.2.83", + "version": "0.2.84", "description": "Set up PassionCode.ai on a computer with one command: the apps from their verified releases, their MCP servers for every coding agent and the PassionCode.ai skills. Check and repair it with the same command or `doctor`.", "bin": { "passioncode": "bin/passioncode.js" diff --git a/plugin/passioncode/.claude-plugin/plugin.json b/plugin/passioncode/.claude-plugin/plugin.json index 0b589c4c..8385aea2 100644 --- a/plugin/passioncode/.claude-plugin/plugin.json +++ b/plugin/passioncode/.claude-plugin/plugin.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json", "name": "passioncode", "displayName": "PassionCode.ai", - "version": "0.2.83", + "version": "0.2.84", "description": "Set up and check PassionCode.ai on a computer with one command (setting-up-passioncode), the organisation's working rules for every contributor's agent (working-in-passioncode), and a once-a-day check at session start that keeps the PassionCode.ai skill set current.", "author": { "name": "PassionCode.ai", diff --git a/plugin/passioncode/hooks/repo-rules.js b/plugin/passioncode/hooks/repo-rules.js index 1978ef64..058ca7ba 100644 --- a/plugin/passioncode/hooks/repo-rules.js +++ b/plugin/passioncode/hooks/repo-rules.js @@ -20,10 +20,11 @@ const PRINCIPLE_10 = `${KNOWLEDGE}principles.md#10-a-free-agent-takes-the-next-t const PRINCIPLE_11 = `${KNOWLEDGE}principles.md#11-a-project-moves-in-releases-and-every-run-leaves-a-lesson-the-next-one-reads`; // #region course-check — docs: plugin/passioncode/skills/working-in-passioncode/SKILL.md#0-the-protocol-before-and-after-every-piece-of-work // The course check (knowledge base rules §0, the operator 2026-11-12): before a change, the North Star -// and the one plan in waves; the change names the track, plan row or gap it serves; after it, the row +// and the plan of record; the change names the track, plan row or gap it serves; after it, the row // is updated. Printed as its own line next to the read-first one, in passioncode-ai repositories only. +// The plan of record is whatever rules §0 names (the unified plan of 2026-11-11 was succeeded by the +// system design of 2026-11-21): the line points at §0 and never at a dated plan file (PC-248, H-06). const COURSE_RULE = `${KNOWLEDGE}rules.md#0-the-course-check-the-plan-and-the-north-star-before-every-change`; -const COURSE_PLAN = 'fabric-workspace/docs/plans/2026-11-11-unified/README.md'; // #endregion course-check /** The GitHub organization an origin URL belongs to, when it is passioncode-ai; else null. */ @@ -50,7 +51,7 @@ function rulesLine(dir) { /** The course-check line, printed right after rulesLine wherever that one is printed. */ function courseLine() { - return `[passioncode] course check before every change: read the North Star metric and gaps and the one plan in waves (${COURSE_RULE}; ${COURSE_PLAN}), name the track, plan row or gap the change serves (work that serves none goes to the board first), update that row after the change, and read what waits on you with com.list {unread: true}.`; + return `[passioncode] course check before every change: read the North Star metric and gaps and the plan of record that rules §0 names (${COURSE_RULE}), name the track, plan row or gap the change serves (work that serves none goes to the board first), update that row after the change, and read what waits on you with com.list {unread: true}.`; } -module.exports = { KNOWLEDGE, KNOWLEDGE_WEB, PRINCIPLE_10, PRINCIPLE_11, COURSE_RULE, COURSE_PLAN, orgOf, rulesLine, courseLine }; +module.exports = { KNOWLEDGE, KNOWLEDGE_WEB, PRINCIPLE_10, PRINCIPLE_11, COURSE_RULE, orgOf, rulesLine, courseLine }; diff --git a/plugin/passioncode/skills/working-in-passioncode/SKILL.md b/plugin/passioncode/skills/working-in-passioncode/SKILL.md index b22e719c..f1dfa56c 100644 --- a/plugin/passioncode/skills/working-in-passioncode/SKILL.md +++ b/plugin/passioncode/skills/working-in-passioncode/SKILL.md @@ -46,9 +46,9 @@ is the source, this is its summary): 1. **Where we run**: the [North Star](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/north-star.md#0-the-measure) metric, its guardrails and its open gaps (`G1`..). -2. **The plan**: the roadmap track (`RM-*`), the row of the - [one plan in waves](https://github.com/passioncode-ai/fabric-workspace/blob/main/docs/plans/2026-11-11-unified/README.md) - and, for anything between a prompt and a working organization, the step of S4.1 +2. **The plan**: the roadmap track (`RM-*`), the row or feature of the plan of record that + [rules §0](https://github.com/passioncode-ai/fabric-workspace/blob/main/knowledge/rules.md#0-the-course-check-the-plan-and-the-north-star-before-every-change) + names (read it there: plans are succeeded, and a copied path goes stale) and, for anything between a prompt and a working organization, the step of S4.1 (`knowledge/system/prompt-onboarding.md`). 3. **Name the link** in the task, PR or handoff: the track, plan row or S4.1 step the change serves and the gap or guardrail it moves (for example "RM-35, plan 2.1, S4.1 step 3, G2"). Work that diff --git a/test/evals/working-in-passioncode/scenarios.json b/test/evals/working-in-passioncode/scenarios.json index ff99c5c9..65612f00 100644 --- a/test/evals/working-in-passioncode/scenarios.json +++ b/test/evals/working-in-passioncode/scenarios.json @@ -103,7 +103,7 @@ "trap": "an agent started a refactor nobody planned because the repository's AGENTS.md said nothing against it, and two repositories moved in different directions", "request": "Refactor the fabric-inbox sync loop while you're in there; it looks messy.", "expected": [ - "reads the North Star gaps and the one plan in waves before editing (rules §0)", + "reads the North Star gaps and the plan of record rules §0 names before editing", "names the track, plan row or gap the change serves, or says none does", "when none does, posts the work to the board (com.submit to fabric-workspace) instead of starting it, and takes the next planned task", "after a change, updates the plan row it moved and says so in that row's board thread" diff --git a/test/repo-rules.test.js b/test/repo-rules.test.js index 9383b186..cb3a03d5 100644 --- a/test/repo-rules.test.js +++ b/test/repo-rules.test.js @@ -11,7 +11,7 @@ const os = require('node:os'); const path = require('node:path'); const { execFileSync } = require('node:child_process'); const test = require('node:test'); -const { orgOf, rulesLine, courseLine, KNOWLEDGE, KNOWLEDGE_WEB, PRINCIPLE_10, PRINCIPLE_11, COURSE_RULE, COURSE_PLAN } = require('../plugin/passioncode/hooks/repo-rules'); +const { orgOf, rulesLine, courseLine, KNOWLEDGE, KNOWLEDGE_WEB, PRINCIPLE_10, PRINCIPLE_11, COURSE_RULE } = require('../plugin/passioncode/hooks/repo-rules'); function repo(url) { const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'pc-rules-')); @@ -81,9 +81,9 @@ test('the line names Fabric principles 10 and 11 by anchor, between the read-fir test('the course-check line names rules §0 and the one plan, the link to name, and the unread board', () => { const line = courseLine(); assert.equal(COURSE_RULE, `${KNOWLEDGE}rules.md#0-the-course-check-the-plan-and-the-north-star-before-every-change`); - assert.equal(COURSE_PLAN, 'fabric-workspace/docs/plans/2026-11-11-unified/README.md'); assert.match(line, /^\[passioncode\] course check before every change: /); - assert.ok(line.includes(COURSE_RULE) && line.includes(COURSE_PLAN), `both links: ${line}`); + assert.ok(line.includes(COURSE_RULE), `rules §0 linked: ${line}`); + assert.match(line, /the plan of record that rules §0 names/); assert.match(line, /North Star/); assert.match(line, /track, plan row or gap/); assert.match(line, /goes to the board first/); @@ -91,6 +91,21 @@ test('the course-check line names rules §0 and the one plan, the link to name, assert.equal(line.split('\n').length, 1); }); +test('PC-248: no plan file is named by path in the course line, the skill or AGENTS.md; rules §0 names the plan of record', () => { + // The plan of record moved from the unified plan of 2026-11-11 to the system design of 2026-11-21 and the + // launcher kept the old path (fabric-workspace harness-loss audit H-06, board request ca9354fa). Rules §0 is the + // one place that names the current plan, so the launcher points there and never at a dated plan file. + const root = path.join(__dirname, '..'); + const texts = { + courseLine: courseLine(), + skill: fs.readFileSync(path.join(root, 'plugin', 'passioncode', 'skills', 'working-in-passioncode', 'SKILL.md'), 'utf8'), + agents: fs.readFileSync(path.join(root, 'AGENTS.md'), 'utf8'), + }; + for (const [name, text] of Object.entries(texts)) { + assert.doesNotMatch(text, /docs\/plans\/\d{4}-\d{2}-\d{2}-[a-z0-9-]+\/README\.md/, `${name} names a dated plan file`); + } +}); + test('the session-start hook prints the course line right after the read-first line, only in a passioncode-ai repository', () => { const hook = path.join(__dirname, '..', 'plugin', 'passioncode', 'hooks', 'session-start.js'); const home = fs.mkdtempSync(path.join(os.tmpdir(), 'pc-course-home-'));