@nanobpm/nano-workforce 0.163.2 → 0.163.3
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/pages/overview.page.json +2 -2
- package/scripts/pages-contract.test.ts +67 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [0.163.3](https://github.com/nanobpm/nano-workforce/compare/v0.163.2...v0.163.3) (2026-08-31)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **overview:** Active Features grid reads the derived read model, not the base-status allowlist ([#639](https://github.com/nanobpm/nano-workforce/issues/639)) ([ed7ddc1](https://github.com/nanobpm/nano-workforce/commit/ed7ddc10c6e99d097e079eb2657e51e572f477df)), closes [#637](https://github.com/nanobpm/nano-workforce/issues/637) [#638](https://github.com/nanobpm/nano-workforce/issues/638)
|
|
6
|
+
|
|
1
7
|
## [0.163.2](https://github.com/nanobpm/nano-workforce/compare/v0.163.1...v0.163.2) (2026-08-31)
|
|
2
8
|
|
|
3
9
|
### Build System
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nanobpm/nano-workforce",
|
|
3
|
-
"version": "0.163.
|
|
3
|
+
"version": "0.163.3",
|
|
4
4
|
"description": "Nano Workforce — an Agent Graph Orchestration application for Agentic SDLC: durable BPMN processes that coordinate a graph of AI agents across the software delivery lifecycle.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "main.ts",
|
package/pages/overview.page.json
CHANGED
|
@@ -177,9 +177,9 @@
|
|
|
177
177
|
"data": {
|
|
178
178
|
"kind": "datasource",
|
|
179
179
|
"source": "app",
|
|
180
|
-
"table": "
|
|
180
|
+
"table": "feature_read_model",
|
|
181
181
|
"orderBy": { "field": "updated_at", "dir": "desc" },
|
|
182
|
-
"filter": [{ "field": "
|
|
182
|
+
"filter": [{ "field": "list_bucket", "in": ["active"] }]
|
|
183
183
|
},
|
|
184
184
|
"columns": [
|
|
185
185
|
{ "field": "title", "template": "{{title}}", "header": "Item", "subtitleField": "feature_key", "truncate": true, "width": "36%", "link": { "kind": "page", "page": "feature", "keyField": "feature_key" } },
|
|
@@ -317,21 +317,24 @@ test("issue #205: overview is the landing page and first nav item", async () =>
|
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
//
|
|
320
|
+
// Four collapsible active-work sections, one per dispatch surface, each with a
|
|
321
321
|
// live count in its header (showCount) and a persisted collapse toggle (collapsible). Each filters
|
|
322
|
-
// its Active list on a `{field, in:[...]}` predicate
|
|
323
|
-
//
|
|
324
|
-
//
|
|
325
|
-
//
|
|
326
|
-
//
|
|
327
|
-
//
|
|
322
|
+
// its Active list on a `{field, in:[...]}` predicate. The FEATURE and EPIC surfaces bucket on the
|
|
323
|
+
// DERIVED `list_bucket` — NOT raw `status` — over their read-model VIEW (features: issue #637 —
|
|
324
|
+
// fixing a drift where the grid read the vestigial base `feature_runs.status` with an allowlist that
|
|
325
|
+
// hid every converging feature; epics: issue #298), so a `done`-but-unacknowledged item still
|
|
326
|
+
// converging does not vanish from its in-flight section the instant `status` reads terminal. Guarding
|
|
327
|
+
// the field here is the regression guard for that defect class. The feature surface binds the derived
|
|
328
|
+
// `feature_read_model` VIEW (the single source of truth for the `list_bucket` activeness predicate,
|
|
329
|
+
// shared byte-for-byte with the Feature tab); the epic surface binds `plan_read_model` (epic #412),
|
|
330
|
+
// not the raw `plans` table. PRs / delivery graphs still bucket on `status` (see #637 follow-up).
|
|
328
331
|
const expected: Record<string, { field: string; in: string[] }> = {
|
|
329
332
|
pull_requests: {
|
|
330
333
|
field: "status",
|
|
331
334
|
in: ["converging", "waiting_review", "escalated", "waiting_deps", "waiting_merge", "queued", "merging"],
|
|
332
335
|
},
|
|
333
336
|
plan_read_model: { field: "list_bucket", in: ["active"] },
|
|
334
|
-
|
|
337
|
+
feature_read_model: { field: "list_bucket", in: ["active"] },
|
|
335
338
|
// The 4th dispatch surface (issue #386) — active delivery graphs. Both in-flight statuses
|
|
336
339
|
// (`awaiting-approval` parked at the gate, `running` dispatched) show here. Binds the derived
|
|
337
340
|
// `delivery_graph_read_model` VIEW (S7 / #541 — the single source of truth for the pipeline
|
|
@@ -461,3 +464,59 @@ test("issue #521: the Delivery Graphs History tab surfaces dispatch time + the i
|
|
|
461
464
|
"the Instance cell's processExplorer link must key on `process_key`",
|
|
462
465
|
);
|
|
463
466
|
});
|
|
467
|
+
|
|
468
|
+
test("issue #637: the Overview 'Active Features' grid buckets on the derived read model, in parity with the Feature tab", async () => {
|
|
469
|
+
// The bug: Overview's "Active Features" grid read the VESTIGIAL base `feature_runs.status` column
|
|
470
|
+
// with a hand-maintained allowlist (`running`/`escalated`/`awaiting_operator` — not even a valid
|
|
471
|
+
// feature-status set: those are delivery-graph statuses cloned from the "Active Delivery Graphs"
|
|
472
|
+
// grid). A feature only ever surfaced there if it happened to be `escalated`; its whole convergence
|
|
473
|
+
// life (`converging`/`waiting_review`/`waiting_merge`/…) was invisible on Overview while the SAME
|
|
474
|
+
// feature showed on the dedicated Feature tab — a state-tear between two surfaces that must agree.
|
|
475
|
+
//
|
|
476
|
+
// The fix repoints the grid at the derived `feature_read_model` VIEW filtered on the canonical
|
|
477
|
+
// `list_bucket IN ('active')` activeness predicate — the single declare-once column (app/
|
|
478
|
+
// featureReadModel.ts, guarded byte-for-byte by check:derivation-parity) that the Feature tab's
|
|
479
|
+
// "Feature runs" grid already uses. This test pins that parity so the tear can't silently return.
|
|
480
|
+
const overview = JSON.parse(readFileSync(`${ROOT}pages/overview.page.json`, "utf8"));
|
|
481
|
+
const feature = JSON.parse(readFileSync(`${ROOT}pages/feature.page.json`, "utf8"));
|
|
482
|
+
|
|
483
|
+
const ovGrid = (overview.nodes ?? []).find(
|
|
484
|
+
(n: Json) => n.type === "dataGrid" && n.props?.title === "Active Features",
|
|
485
|
+
);
|
|
486
|
+
assert(ovGrid, "overview.page.json must have an 'Active Features' grid");
|
|
487
|
+
|
|
488
|
+
// It must bind the derived read-model VIEW, never the vestigial base `feature_runs` table.
|
|
489
|
+
assert(
|
|
490
|
+
ovGrid.props?.data?.table === "feature_read_model",
|
|
491
|
+
"the Overview 'Active Features' grid must bind the derived feature_read_model VIEW, not the base feature_runs table",
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
// And it must filter on the canonical `list_bucket IN ('active')` activeness predicate — never a
|
|
495
|
+
// base-`status` allowlist.
|
|
496
|
+
const ovFilters: Json[] = ovGrid.props?.data?.filter ?? [];
|
|
497
|
+
assert(
|
|
498
|
+
!ovFilters.some((f: Json) => f.field === "status"),
|
|
499
|
+
"the Overview 'Active Features' grid must NOT re-encode activeness as a base-`status` allowlist",
|
|
500
|
+
);
|
|
501
|
+
const ovBucket = ovFilters.find((f: Json) => f.field === "list_bucket");
|
|
502
|
+
assert(
|
|
503
|
+
ovBucket && JSON.stringify(ovBucket.in) === JSON.stringify(["active"]),
|
|
504
|
+
"the Overview 'Active Features' grid must filter `list_bucket IN ['active']`",
|
|
505
|
+
);
|
|
506
|
+
|
|
507
|
+
// Parity: the Feature tab's "Feature runs" grid answers "is this feature active?" identically —
|
|
508
|
+
// same VIEW, same activeness predicate — so the two surfaces show the same active-feature set.
|
|
509
|
+
const featGrid = (feature.nodes ?? []).find(
|
|
510
|
+
(n: Json) => n.type === "dataGrid" && n.props?.title === "Feature runs",
|
|
511
|
+
);
|
|
512
|
+
assert(featGrid, "feature.page.json must have a 'Feature runs' grid");
|
|
513
|
+
assert(
|
|
514
|
+
featGrid.props?.data?.table === ovGrid.props?.data?.table,
|
|
515
|
+
"the Overview and Feature-tab feature grids must bind the SAME table (feature_read_model)",
|
|
516
|
+
);
|
|
517
|
+
const featBucket = (featGrid.props?.data?.filter ?? []).find((f: Json) => f.field === "list_bucket");
|
|
518
|
+
assert(
|
|
519
|
+
featBucket && JSON.stringify(featBucket.in) === JSON.stringify(ovBucket.in),
|
|
520
|
+
"the Overview and Feature-tab feature grids must apply the IDENTICAL list_bucket activeness predicate",
|
|
521
|
+
);
|
|
522
|
+
});
|