bmad-method-test-architecture-enterprise 4.1.0 → 4.2.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.
@@ -31,7 +31,7 @@
31
31
  "name": "bmad-method-test-architecture-enterprise",
32
32
  "source": "./",
33
33
  "description": "Master Test Architect module for quality strategy, test generation in red and expand modes with automatic run-and-heal, combined framework and CI setup, CI/CD quality gates, and structured testing education. Existing CI and ATDD customizations can be migrated to the new skill names. Part of the BMad Method ecosystem.",
34
- "version": "4.1.0",
34
+ "version": "4.2.0",
35
35
  "author": {
36
36
  "name": "Murat K Ozcan (TEA Creator) & Brian (BMad) Madison"
37
37
  },
@@ -35,6 +35,7 @@
35
35
  const fs = require('node:fs');
36
36
  const path = require('node:path');
37
37
 
38
+ const { loadAdapters } = require('./engine');
38
39
  const { BEHAVIOR_ID, named, oraclesListed, sameOracles } = require('./partition');
39
40
 
40
41
  /** The exits `eval-quality score` takes outside a verdict: a structural failure, a runtime fault and a usage error. */
@@ -133,6 +134,7 @@ class HeldInputs {
133
134
  #read;
134
135
  #accepted;
135
136
  #designate;
137
+ #clock;
136
138
 
137
139
  /**
138
140
  * @param {object} options
@@ -144,6 +146,8 @@ class HeldInputs {
144
146
  * `eval-quality score --designated-oracle` for (Story 1.110): `partition.js` `bothViewDesignation`, which names an oracle only for
145
147
  * a probe of a both run under a `partitionPlan` whose behavior the both view lists with several. The CLI call's arguments and the
146
148
  * in-process score both read it through `designation`, so they cannot disagree.
149
+ * @param {{ read: Function } | null} [options.clock] the `ClockPort` the in-process score reads its scoring instant from (eval-quality
150
+ * 10.0.0 tests a contract waiver's `expiresAt` against it). Null is the engine's system-clock adapter, the one its CLI wires.
147
151
  */
148
152
  constructor({
149
153
  engine,
@@ -152,8 +156,10 @@ class HeldInputs {
152
156
  read = null,
153
157
  accepted = 'the regular file the input check accepted',
154
158
  designate = () => NO_DESIGNATION,
159
+ clock = null,
155
160
  }) {
156
161
  this.#engine = engine;
162
+ this.#clock = clock;
157
163
  this.#read = read;
158
164
  this.#accepted = accepted;
159
165
  this.#designate = designate;
@@ -342,6 +348,9 @@ class HeldInputs {
342
348
  return { artifact: null, exitCode: USAGE_EXIT, lines: null };
343
349
  }
344
350
  const { oracleId } = this.designation(set);
351
+ // The CLI reads the scoring instant from the system clock, so the re-score reads it through the same adapter, made once per
352
+ // held set. An engine whose adapters cannot load is unavailable, not a fault of the held bytes, so it throws past the catch.
353
+ this.#clock ??= (await loadAdapters()).createSystemClockAdapter();
345
354
  try {
346
355
  const { artifact, ladder, qualification } = await this.#engine.runScore({
347
356
  record: records,
@@ -356,6 +365,9 @@ class HeldInputs {
356
365
  corpusDigest: this.index.corpusDigest,
357
366
  ...(oracleId === null ? {} : { designatedOracleId: oracleId }),
358
367
  port: undefined,
368
+ // The instant a contract waiver's `expiresAt` is tested against. The CLI and this score each read the clock once and the
369
+ // engine's CLI takes no instant, so a waiver that expires between the two reads makes them disagree and the caller refuses.
370
+ clock: this.#clock,
359
371
  signal: new AbortController().signal,
360
372
  });
361
373
  const lines = qualification.failures.map(
@@ -407,9 +419,10 @@ class HeldInputs {
407
419
  * @param {object} options.record the parsed `run.json`
408
420
  * @param {{ digestBytes: (bytes: Buffer) => string }} options.engine
409
421
  * @param {(probe: object) => { oracleId: string|null, problem: string|null, listed?: string[]|null }} [options.designate] see `HeldInputs`
422
+ * @param {{ read: Function } | null} [options.clock] see `HeldInputs`
410
423
  * @returns {HeldInputs}
411
424
  */
412
- function holdScoreInputs({ runDirectory, index, record, engine, designate }) {
425
+ function holdScoreInputs({ runDirectory, index, record, engine, designate, clock = null }) {
413
426
  const entries = scoreInputList({ runDirectory, index, record }).map((input) => {
414
427
  try {
415
428
  const bytes = regularFileBytes(input.file);
@@ -420,7 +433,7 @@ function holdScoreInputs({ runDirectory, index, record, engine, designate }) {
420
433
  return { ...input, exists: error.code !== 'ENOENT', bytes: null, error: error.message, digest: null };
421
434
  }
422
435
  });
423
- return new HeldInputs({ engine, index, entries, designate });
436
+ return new HeldInputs({ engine, index, entries, designate, clock });
424
437
  }
425
438
 
426
439
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "bmad-method-test-architecture-enterprise",
4
- "version": "4.1.0",
4
+ "version": "4.2.0",
5
5
  "description": "Master Test Architect for quality strategy, test automation, and release gates",
6
6
  "keywords": [
7
7
  "bmad",
@@ -386,7 +386,7 @@
386
386
  "zod-to-json-schema": "3.25.1"
387
387
  },
388
388
  "peerDependencies": {
389
- "eval-quality": ">=8.0.0"
389
+ "eval-quality": ">=10.0.0"
390
390
  },
391
391
  "peerDependenciesMeta": {
392
392
  "eval-quality": {
@@ -1,6 +1,6 @@
1
1
  # Gaps
2
2
 
3
- Read the scored development evidence artifact for CONCERNS, FAIL, Invalid or a weak strength vector. Name the first unsatisfied engine rule, failed preflight check, missing evidence, or loose oracle. For a development `score` exit 3 with no evidence artifact, read the persisted `runs/<invocationId>/scores/<scoreInvocationId>/<probeId>/score.json` record and its stdout and stderr diagnostics. Treat the exit as a routing fact and read engine evidence for the quality judgment. Read development `interpretation.json` for citations and phase; eval-quality remains the only verdict and strength authority. For a held-out score failure, read only its `gap-view.json` row. An `outcome: null` leaves the held-out cause undisclosed. Hold the held-out loop, author a development probe of the same class, and diagnose its development evidence or score diagnostics; record a blocked gap if the fault cannot be reproduced there.
3
+ Read the scored development evidence artifact for CONCERNS, FAIL, Invalid or a weak strength vector. Name the first unsatisfied engine rule no contract waiver covers (a `coverageGaps` entry whose `waiverId` is `null`), failed preflight check, missing evidence, or loose oracle. For a development `score` exit 3 with no evidence artifact, read the persisted `runs/<invocationId>/scores/<scoreInvocationId>/<probeId>/score.json` record and its stdout and stderr diagnostics. Treat the exit as a routing fact and read engine evidence for the quality judgment. Read development `interpretation.json` for citations and phase; eval-quality remains the only verdict and strength authority. For a held-out score failure, read only its `gap-view.json` row. An `outcome: null` leaves the held-out cause undisclosed. Hold the held-out loop, author a development probe of the same class, and diagnose its development evidence or score diagnostics; record a blocked gap if the fault cannot be reproduced there.
4
4
 
5
5
  ## Read the strength vector
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [bmod]
4
4
  code = "tea"
5
- version = "4.1.0"
5
+ version = "4.2.0"
6
6
  update_source = "github:bmad-code-org/bmad-method-test-architecture-enterprise/skills"
7
7
  skills = [
8
8
  "bmad-tea",