@ccdd/core 4.2.0 → 5.0.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,9 +70,9 @@ The [getting-started guide](docs/getting-started.md) includes a complete runnabl
70
70
 
71
71
  ## Read the result
72
72
 
73
- Every actual review returns a verdict, summary and concrete evidence. GREEN means its criteria were met; RED means they were not. Execution problems produce ERROR. Final validation needs matching PASS evidence for all required Critics and dependencies. A folder without Critics stays UNREVIEWED unless explicitly declared `basis: true`.
73
+ Every actual review returns a verdict and any owner-defined fields required by its optional passSchema/failSchema. There is no built-in summary or evidence field. GREEN means its criteria were met; RED means they were not. Execution problems produce ERROR. Final validation needs matching PASS evidence for all required Critics and dependencies. A folder without Critics stays UNREVIEWED unless explicitly declared `basis: true`.
74
74
 
75
- An individual check runs its selected Critics immediately. If other required evidence is missing, their results are saved and the request is INCOMPLETE. Add `--recursive` to include those other evaluations. CCDD reuses matching actual evidence and computes freshness when queried; it does not store stale flags.
75
+ An individual check runs its selected Critics immediately. If other required evidence is missing, their results are saved and the request is INCOMPLETE. Add `--recursive` to include those other evaluations. CCDD reuses both matching GREEN and RED results (RED remains unsatisfied), coalesces identical active requests across Runs, and computes freshness when queried; it does not store stale flags.
76
76
 
77
77
  Reviews run in the workspace you supply. Keep it unchanged until completion, including Human waiting. Records, caches and generated output live outside it. To keep editing elsewhere, create your own worktree and pass it with `--repo`.
78
78
 
@@ -99,3 +99,5 @@ See [Contributing](CONTRIBUTING.md), [the context map](CONTEXT-MAP.md), [detaile
99
99
  ## License
100
100
 
101
101
  [MIT](LICENSE).
102
+
103
+ **CCDD 5.0.0:** requester results default to a compact projection. Upgrade with a fresh state directory and review the [5.0 migration guide](docs/migration-v5.md), [audit lookup](docs/project-validation.md#compact-review-results-50), and [release notes](docs/releases/v5.0.0.md).
@@ -1,4 +1,4 @@
1
- import type { ArtifactViews, EnvironmentRequirement } from './tools/contracts.js';
1
+ import type { ArtifactViews, EnvironmentRequirement, ScriptDefinition, JsonSchema } from './tools/contracts.js';
2
2
  /** Public declarations contain data only; discovery never executes code. */
3
3
  export interface AgentProfile {
4
4
  kind: 'agent';
@@ -26,12 +26,19 @@ export interface CriticDefinition {
26
26
  title: string;
27
27
  profile: CriticProfile;
28
28
  payload: ReviewPayload;
29
+ passSchema?: JsonSchema;
30
+ failSchema?: JsonSchema;
29
31
  }
30
32
  export type StaleStrategy = {
31
33
  kind: 'file-hash';
32
34
  paths?: string[];
33
35
  } | {
34
36
  kind: 'always';
37
+ } | {
38
+ kind: 'identity';
39
+ script: ScriptDefinition;
40
+ inputs?: string[];
41
+ timeoutMs?: number;
35
42
  };
36
43
  export interface ArtifactManifest {
37
44
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccdd/core",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public",