From 1e2cde3135f19bb919c8a79edecd8105be1e1bde Mon Sep 17 00:00:00 2001 From: qiansc Date: Mon, 16 Nov 2026 13:01:24 +0000 Subject: [PATCH 1/2] fix(context-cli): give the requirements-configuration Route a valid workflow revision Before src/indexers.yaml exists the production-planning Route used the placeholder revision requirements-configuration, which resource materialize rejects, so its printed context.source-boundary command always failed. Use the graph evaluation's revision. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 4 ++++ .../src/__tests__/projectIndexerBootstrapV075.test.ts | 9 +++++++++ .../context-cli/src/project/productionPlanningRoute.ts | 4 +++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af5f9076..dee07be9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to Context are documented here. ## Unreleased +- Before production requirements exist (`src/indexers.yaml` missing), the Route's resource commands such as `context resource materialize context.source-boundary` now carry a valid workflow revision. Previously they carried `requirements-configuration` and always failed with "workflow revision is invalid". + +## Unreleased + - The routine update example now starts the scheduled task content with a plain line naming the Context Skill instead of a slash command. Some schedulers expand a leading slash command into the Skill text and drop the rest, so the run never saw its paragraph and `ROUTINE_POLICY` and stopped to ask what to do. ## 0.7.99 - 2026-11-13 diff --git a/packages/context-cli/src/__tests__/projectIndexerBootstrapV075.test.ts b/packages/context-cli/src/__tests__/projectIndexerBootstrapV075.test.ts index 4d36d93a..8a873715 100644 --- a/packages/context-cli/src/__tests__/projectIndexerBootstrapV075.test.ts +++ b/packages/context-cli/src/__tests__/projectIndexerBootstrapV075.test.ts @@ -48,6 +48,15 @@ describe("Production bootstrap follows the workspace Graph", () => { for (const resource of before.workflow.current!.resources.required) { if (resource.path) expect((await readFile(resource.path, "utf8")).length).toBeGreaterThan(0); } + // Missing requirements → CLI status → every printed resource command runs as printed. + const printed = JSON.parse(await readFile(summary.next_route.file, "utf8")) as { revision: string; resources: { required: Array<{ command?: string }> } }; + const materialize = printed.resources.required.filter(resource => resource.command); + expect(materialize.length).toBeGreaterThan(0); + expect(printed.revision).toMatch(/^sha256:[a-f0-9]{64}$/); + for (const resource of materialize) { + const args = resource.command!.replace(/^context /, "").match(/'[^']*'|\S+/g)!.map((arg: string) => arg.replace(/^'|'$/g, "")); + expect(JSON.parse(await runCliInDir(root, args))).toBeTruthy(); + } }); test(`plain and dry run preserve an unprepared plan (managed=${managed})`, async () => { diff --git a/packages/context-cli/src/project/productionPlanningRoute.ts b/packages/context-cli/src/project/productionPlanningRoute.ts index 84a3cc75..3e5948b3 100644 --- a/packages/context-cli/src/project/productionPlanningRoute.ts +++ b/packages/context-cli/src/project/productionPlanningRoute.ts @@ -11,13 +11,15 @@ export async function productionPlanningRoute(input: { projectRoot: string; auth stage?: ProductionStage): Promise { const request = stage ? undefined : await productionPlanningRequest(input.projectRoot); const present = !!stage || !!request; - const revision = stage?.id ?? request?.revision ?? "requirements-configuration"; const prepared = !!stage && await productionPlanningIsPrepared(input.projectRoot, stage); const context = { workspace: input.projectRoot, authorities: [...input.authorities], facts: { production: { requirements_present: present, planning_prepared: prepared, planning_complete: prepared && (stage?.planning_complete ?? false) }, } }; const provider = await loadContextWorkflowProvider(); const evaluated = evaluateGraph(provider, "indexer", "production-planning", context); + // Before requirements exist there is no plan revision; the graph evaluation's + // revision keeps the Route's resource commands valid workflow revisions. + const revision = stage?.id ?? request?.revision ?? evaluated.evaluation.revision; const selected = evaluated.evaluation.primaryRoute; if (!selected) throw new TypeError("Production planning has no current graph route"); const route = await resolveRoute(provider, "indexer", "production-planning", selected.routeId, context, evaluated.evaluation.revision); From d854c3d4869e5252acee0f1f1be52a580727face Mon Sep 17 00:00:00 2001 From: qiansc Date: Mon, 16 Nov 2026 13:02:14 +0000 Subject: [PATCH 2/2] chore(v0.7.100): release 0.7.100 Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 2 +- bun.lock | 30 +++++++++---------- package.json | 2 +- .../context-workflow/provider.yaml | 2 +- packages/context-cli/package.json | 2 +- .../src/project/indexerBaseContracts.ts | 2 +- packages/context/package.json | 2 +- packages/core/package.json | 2 +- packages/dev-cli/package.json | 2 +- packages/extract-contract/package.json | 2 +- packages/extract-go/package.json | 2 +- packages/extract-mdx/package.json | 2 +- packages/extract-proto/package.json | 2 +- packages/extract-rush/package.json | 2 +- packages/extract-sql/package.json | 2 +- packages/extract-style/package.json | 2 +- packages/extract-thrift/package.json | 2 +- packages/extract-ts/package.json | 2 +- packages/extract/package.json | 2 +- packages/tui/package.json | 2 +- .../claude/.claude-plugin/plugin.json | 2 +- .../repo-install/claude/commands/context.md | 2 +- .../codex/.codex-plugin/plugin.json | 4 +-- .../codex/skills/context/SKILL.md | 2 +- .../cursor/.cursor-plugin/plugin.json | 2 +- .../cursor/commands/c4a-context.md | 2 +- .../repo-install/skills/context/SKILL.md | 2 +- plugins/context/skills/context/SKILL.md | 2 +- 28 files changed, 43 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dee07be9..902f734d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to Context are documented here. -## Unreleased +## 0.7.100 - 2026-11-16 - Before production requirements exist (`src/indexers.yaml` missing), the Route's resource commands such as `context resource materialize context.source-boundary` now carry a valid workflow revision. Previously they carried `requirements-configuration` and always failed with "workflow revision is invalid". diff --git a/bun.lock b/bun.lock index 4330aa04..3d92be92 100644 --- a/bun.lock +++ b/bun.lock @@ -18,7 +18,7 @@ }, "packages/context": { "name": "@c4a/context", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "yaml": "^2.5.1", "zod": "^3.23.8", @@ -26,7 +26,7 @@ }, "packages/context-cli": { "name": "@c4a/context-cli", - "version": "0.7.99", + "version": "0.7.100", "bin": { "context": "dist/cli.js", }, @@ -76,7 +76,7 @@ }, "packages/core": { "name": "@c4a/core", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "picomatch": "^4.0.4", "yaml": "^2.4.5", @@ -88,7 +88,7 @@ }, "packages/dev-cli": { "name": "@c4a/dev-cli", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/context": "workspace:*", "@c4a/core": "workspace:*", @@ -100,7 +100,7 @@ }, "packages/extract": { "name": "@c4a/extract", - "version": "0.7.99", + "version": "0.7.100", "bin": { "c4a-extract-code": "./dist/bin/c4a-extract-code.js", }, @@ -115,7 +115,7 @@ }, "packages/extract-contract": { "name": "@c4a/extract-contract", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "graphql": "^16.14.2", @@ -125,7 +125,7 @@ }, "packages/extract-go": { "name": "@c4a/extract-go", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "@c4a/extract": "workspace:*", @@ -135,7 +135,7 @@ }, "packages/extract-mdx": { "name": "@c4a/extract-mdx", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "remark-mdx": "^3.1.1", @@ -147,7 +147,7 @@ }, "packages/extract-proto": { "name": "@c4a/extract-proto", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "zod": "^3.23.8", @@ -155,7 +155,7 @@ }, "packages/extract-rush": { "name": "@c4a/extract-rush", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "typescript": "^5.5.4", @@ -165,7 +165,7 @@ }, "packages/extract-sql": { "name": "@c4a/extract-sql", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "node-sql-parser": "^5.4.0", @@ -174,7 +174,7 @@ }, "packages/extract-style": { "name": "@c4a/extract-style", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "postcss": "^8.5.26", @@ -186,7 +186,7 @@ }, "packages/extract-thrift": { "name": "@c4a/extract-thrift", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "zod": "^3.23.8", @@ -194,7 +194,7 @@ }, "packages/extract-ts": { "name": "@c4a/extract-ts", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "@c4a/core": "workspace:*", "@c4a/extract": "workspace:*", @@ -205,7 +205,7 @@ }, "packages/tui": { "name": "@c4a/tui", - "version": "0.7.99", + "version": "0.7.100", "dependencies": { "ink": "^5.0.0", "react": "^18.3.1", diff --git a/package.json b/package.json index 18cd0a57..a4773e1e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "context", - "version": "0.7.99", + "version": "0.7.100", "packageManager": "bun@1.3.9", "repository": { "type": "git", diff --git a/packages/context-cli/context-workflow/provider.yaml b/packages/context-cli/context-workflow/provider.yaml index c24d4bd9..1afd307d 100644 --- a/packages/context-cli/context-workflow/provider.yaml +++ b/packages/context-cli/context-workflow/provider.yaml @@ -1,6 +1,6 @@ schema: agent-graph.provider.v1 id: c4a/context -version: 0.7.99 +version: 0.7.100 name: Context workflow description: Internal work contract for Context knowledge workspaces. graphs: diff --git a/packages/context-cli/package.json b/packages/context-cli/package.json index b90cba9b..5dc20c01 100644 --- a/packages/context-cli/package.json +++ b/packages/context-cli/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/context-cli", "description": "Local runtime and Agent integration for traceable knowledge production", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/context-cli/src/project/indexerBaseContracts.ts b/packages/context-cli/src/project/indexerBaseContracts.ts index 399ff9e6..01fab99e 100644 --- a/packages/context-cli/src/project/indexerBaseContracts.ts +++ b/packages/context-cli/src/project/indexerBaseContracts.ts @@ -21,7 +21,7 @@ import { bundledMarkdownReaderQuestionContracts } from "./indexerBaseMarkdownAuthoringCatalog.js"; const BASE_CONTRACT_VERSION = "1.1.0"; -export const BUNDLED_INDEXER_PARSER_PACKAGE_VERSION = "0.7.99"; +export const BUNDLED_INDEXER_PARSER_PACKAGE_VERSION = "0.7.100"; const BUNDLED_PARSER_REQUIREMENTS = buildIndexerParserCapabilityRequirements( BUNDLED_INDEXER_PARSER_PACKAGE_VERSION, ); diff --git a/packages/context/package.json b/packages/context/package.json index efd0d2e1..eb61a0e4 100644 --- a/packages/context/package.json +++ b/packages/context/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/context", "description": "Declarative SDK for Context knowledge sources, workflows, review, and package outputs", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/core/package.json b/packages/core/package.json index 205034d8..4fde69e8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/core", "description": "Shared extraction types, schemas, and utilities for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/dev-cli/package.json b/packages/dev-cli/package.json index 0d99ad9e..0f291eea 100644 --- a/packages/dev-cli/package.json +++ b/packages/dev-cli/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/dev-cli", "description": "Developer menu for Context build, verification, link, and release preparation", - "version": "0.7.99", + "version": "0.7.100", "private": true, "type": "module", "license": "MIT", diff --git a/packages/extract-contract/package.json b/packages/extract-contract/package.json index 382062a1..fce05aa7 100644 --- a/packages/extract-contract/package.json +++ b/packages/extract-contract/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-contract", "description": "OpenAPI and GraphQL contract catalog adapter for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-go/package.json b/packages/extract-go/package.json index 59315c61..1aeeab88 100644 --- a/packages/extract-go/package.json +++ b/packages/extract-go/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-go", "description": "Go extraction plugin and structural index for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-mdx/package.json b/packages/extract-mdx/package.json index 5fefcd80..839683f8 100644 --- a/packages/extract-mdx/package.json +++ b/packages/extract-mdx/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-mdx", "description": "MDX component and example catalog bridge for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-proto/package.json b/packages/extract-proto/package.json index 042521f1..3cddfe47 100644 --- a/packages/extract-proto/package.json +++ b/packages/extract-proto/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-proto", "description": "Protocol Buffers IDL catalog parser for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-rush/package.json b/packages/extract-rush/package.json index e4bf1d5e..a3b0b12b 100644 --- a/packages/extract-rush/package.json +++ b/packages/extract-rush/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-rush", "description": "Rush workspace structural index for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-sql/package.json b/packages/extract-sql/package.json index 56a4eb81..3d753def 100644 --- a/packages/extract-sql/package.json +++ b/packages/extract-sql/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-sql", "description": "Dialect-bound lightweight SQL evidence adapter for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-style/package.json b/packages/extract-style/package.json index 8bae76ff..80db6b13 100644 --- a/packages/extract-style/package.json +++ b/packages/extract-style/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-style", "description": "Lightweight CSS and SCSS evidence adapter for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-thrift/package.json b/packages/extract-thrift/package.json index d083e032..ec8e2c78 100644 --- a/packages/extract-thrift/package.json +++ b/packages/extract-thrift/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-thrift", "description": "Apache Thrift IDL catalog parser for Context", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract-ts/package.json b/packages/extract-ts/package.json index 124956b0..bec32b12 100644 --- a/packages/extract-ts/package.json +++ b/packages/extract-ts/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract-ts", "description": "TypeScript and JavaScript extraction plugin for the Context ExtractionResult v2 contract", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/extract/package.json b/packages/extract/package.json index 937a345f..d5be709c 100644 --- a/packages/extract/package.json +++ b/packages/extract/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/extract", "description": "Language-plugin framework and repository runner for Context code evidence", - "version": "0.7.99", + "version": "0.7.100", "type": "module", "license": "MIT", "engines": { diff --git a/packages/tui/package.json b/packages/tui/package.json index ba9d1ab0..a40db09b 100644 --- a/packages/tui/package.json +++ b/packages/tui/package.json @@ -1,7 +1,7 @@ { "name": "@c4a/tui", "description": "Shared terminal UI components (Ink + React) for Context development tools", - "version": "0.7.99", + "version": "0.7.100", "private": true, "type": "module", "license": "MIT", diff --git a/plugins/context/repo-install/claude/.claude-plugin/plugin.json b/plugins/context/repo-install/claude/.claude-plugin/plugin.json index 4d61edf8..8ede5b74 100644 --- a/plugins/context/repo-install/claude/.claude-plugin/plugin.json +++ b/plugins/context/repo-install/claude/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "c4a", "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.", - "version": "0.7.99", + "version": "0.7.100", "author": { "name": "c4a" }, diff --git a/plugins/context/repo-install/claude/commands/context.md b/plugins/context/repo-install/claude/commands/context.md index 320f281e..e20a5240 100644 --- a/plugins/context/repo-install/claude/commands/context.md +++ b/plugins/context/repo-install/claude/commands/context.md @@ -140,7 +140,7 @@ without the user's authorization. ### Check the CLI first -This Skill ships with Context 0.7.99. +This Skill ships with Context 0.7.100. When entering production in a workspace, align the CLI, this Skill and the workspace SDK once per session with [version alignment](../resources/context/version-alignment.md): diff --git a/plugins/context/repo-install/codex/.codex-plugin/plugin.json b/plugins/context/repo-install/codex/.codex-plugin/plugin.json index 68c99075..95a37b1e 100644 --- a/plugins/context/repo-install/codex/.codex-plugin/plugin.json +++ b/plugins/context/repo-install/codex/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "c4a", - "version": "0.7.99", + "version": "0.7.100", "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.", "author": { "name": "c4a" }, "homepage": "https://github.com/context4ai/c4a", @@ -10,7 +10,7 @@ "skills": "./skills/", "interface": { "displayName": "C4A Context", - "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.99", + "shortDescription": "Initialize and advance a local, source-linked project knowledge workspace.\nv0.7.100", "longDescription": "Create a Context workspace and use agent-guided next steps to register sources, run extraction, review candidates, build package outputs, and verify health without silently mutating source repositories.", "developerName": "c4a", "category": "Productivity", diff --git a/plugins/context/repo-install/codex/skills/context/SKILL.md b/plugins/context/repo-install/codex/skills/context/SKILL.md index 200bb87d..62221092 100644 --- a/plugins/context/repo-install/codex/skills/context/SKILL.md +++ b/plugins/context/repo-install/codex/skills/context/SKILL.md @@ -138,7 +138,7 @@ without the user's authorization. ### Check the CLI first -This Skill ships with Context 0.7.99. +This Skill ships with Context 0.7.100. When entering production in a workspace, align the CLI, this Skill and the workspace SDK once per session with [version alignment](references/version-alignment.md): diff --git a/plugins/context/repo-install/cursor/.cursor-plugin/plugin.json b/plugins/context/repo-install/cursor/.cursor-plugin/plugin.json index f4ae13ce..457acfaf 100644 --- a/plugins/context/repo-install/cursor/.cursor-plugin/plugin.json +++ b/plugins/context/repo-install/cursor/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "c4a", "displayName": "C4A Context", - "version": "0.7.99", + "version": "0.7.100", "description": "Start or continue a project-local knowledge workspace through one graph-routed entry.", "author": { "name": "Context4AI", diff --git a/plugins/context/repo-install/cursor/commands/c4a-context.md b/plugins/context/repo-install/cursor/commands/c4a-context.md index aa5988c0..58e1946c 100644 --- a/plugins/context/repo-install/cursor/commands/c4a-context.md +++ b/plugins/context/repo-install/cursor/commands/c4a-context.md @@ -135,7 +135,7 @@ without the user's authorization. ### Check the CLI first -This Skill ships with Context 0.7.99. +This Skill ships with Context 0.7.100. When entering production in a workspace, align the CLI, this Skill and the workspace SDK once per session with [version alignment](../resources/context/version-alignment.md): diff --git a/plugins/context/repo-install/skills/context/SKILL.md b/plugins/context/repo-install/skills/context/SKILL.md index 200bb87d..62221092 100644 --- a/plugins/context/repo-install/skills/context/SKILL.md +++ b/plugins/context/repo-install/skills/context/SKILL.md @@ -138,7 +138,7 @@ without the user's authorization. ### Check the CLI first -This Skill ships with Context 0.7.99. +This Skill ships with Context 0.7.100. When entering production in a workspace, align the CLI, this Skill and the workspace SDK once per session with [version alignment](references/version-alignment.md): diff --git a/plugins/context/skills/context/SKILL.md b/plugins/context/skills/context/SKILL.md index 200bb87d..62221092 100644 --- a/plugins/context/skills/context/SKILL.md +++ b/plugins/context/skills/context/SKILL.md @@ -138,7 +138,7 @@ without the user's authorization. ### Check the CLI first -This Skill ships with Context 0.7.99. +This Skill ships with Context 0.7.100. When entering production in a workspace, align the CLI, this Skill and the workspace SDK once per session with [version alignment](references/version-alignment.md):