provisioning: a real service-dependency gate in assess — 'needs Files & documents' computed, never a fixture #1173

Closed
opened 2026-09-02 23:14:51 +00:00 by ben · 2 comments
Owner

Parent

Feature #1073; Ben's ruling 2026-09-03 on #1151 (question 2): build the gate for real. The four-axis review's sibling finding.

What to build

The S2 "needs Files & documents" grey exists today only as a hand-authored dashboard fixture line (dashboard catalogue fixture) while assess_test.go asserts docs-editing selectable with NO Files placed — the wireframe contract (p4-s2, gated-needs-files, #413/DDR 0146 caption) describes a gate the code never had. Build a generic service-dependency gate in provisioning's assess: a catalogue data fact (a service declares the slugs it needs placed on the fleet), assess computes the gate, and the S2 card greys with the declared reason exactly as the wireframe shows; ticking/placing the dependency clears it. Docs-editing declares needs: files (closing the fixture lie); the Calendar & contacts port (successor to #1151) declares the same.

Acceptance criteria

  • The dependency is a catalogue data fact — the gate mechanism itself knows no service names
  • With no Files placed, docs-editing's S2 card greys with the "needs Files & documents — it edits their documents" reason (computed); assess_test updated to assert the gate, not its absence
  • Ticking Files in the same selection clears the gate in place (the #413 caption behaviour)
  • The dashboard renders the computed gate reason via the existing gated-card contract (data-status gated-needs-files / data-field gate-reason per the wireframe) — the fixture line is deleted
  • Deploy-time coupling (WOPI pair etc.) unchanged — the gate is a selection-surface truth, not a replacement for attach-time wiring

Blocked by

None — can start immediately.

## Parent Feature #1073; Ben's ruling 2026-09-03 on #1151 (question 2): build the gate for real. The four-axis review's sibling finding. ## What to build The S2 "needs Files & documents" grey exists today only as a hand-authored dashboard fixture line (dashboard catalogue fixture) while `assess_test.go` asserts docs-editing selectable with NO Files placed — the wireframe contract (p4-s2, gated-needs-files, #413/DDR 0146 caption) describes a gate the code never had. Build a **generic service-dependency gate** in provisioning's assess: a catalogue data fact (a service declares the slugs it needs placed on the fleet), assess computes the gate, and the S2 card greys with the declared reason exactly as the wireframe shows; ticking/placing the dependency clears it. Docs-editing declares `needs: files` (closing the fixture lie); the Calendar & contacts port (successor to #1151) declares the same. ## Acceptance criteria - [ ] The dependency is a catalogue data fact — the gate mechanism itself knows no service names - [ ] With no Files placed, docs-editing's S2 card greys with the "needs Files & documents — it edits their documents" reason (computed); assess_test updated to assert the gate, not its absence - [ ] Ticking Files in the same selection clears the gate in place (the #413 caption behaviour) - [ ] The dashboard renders the computed gate reason via the existing gated-card contract (data-status gated-needs-files / data-field gate-reason per the wireframe) — the fixture line is deleted - [ ] Deploy-time coupling (WOPI pair etc.) unchanged — the gate is a selection-surface truth, not a replacement for attach-time wiring ## Blocked by None — can start immediately.

swarm-claim host=matou-dev-server-01 run=16672
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=16672 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1173 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1173,
  "status": "success",
  "commits": [
    "adc5aca9ea442e2403adca7b59e1ec2012b3fcb1"
  ],
  "changed_files": [
    "STATUS.md",
    "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue",
    "dashboard/src/lib/catalogue.ts",
    "dashboard/src/lib/provision.ts",
    "dashboard/tests/unit/provisionDependencyGate.test.ts",
    "internal/catalogue/catalogue.go",
    "internal/provision/assess.go",
    "internal/provision/assess_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/provision/... ./internal/catalogue/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/provision/... ./internal/catalogue/...",
      "exit_code": 0
    },
    {
      "command": "CI=true npx vitest run",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The dependency is a catalogue data fact — the gate mechanism itself knows no service names": "internal/catalogue/catalogue.go adds catalogue.Service.Needs []Dependency ({service, why}); internal/provision/assess.go dependencyReason+fleetPlaced read only the declared slug and fleet placements — no service names in the mechanism",
    "With no Files placed, docs-editing's S2 card greys with the computed reason; assess_test updated to assert the gate, not its absence": "internal/provision/assess_test.go TestForRole_DocsEditingWaitsForFilesUntilItIsPlaced asserts Gated + reason 'needs Files & documents — it edits their documents' + NeedsPlaced='files' with no Files placed",
    "Ticking Files in the same selection clears the gate in place (the #413 caption behaviour)": "SelectRoleServicesScreen.vue effectiveGated/rowStatus/tickedOnFleet clear the gate client-side when Files is ticked; dashboard/tests/unit/provisionDependencyGate.test.ts 'clears the gate in place the moment Files is ticked'; seam TestForRole_DocsEditingWaitsForFilesUntilItIsPlaced proves placing Files clears it",
    "The dashboard renders the computed gate reason via the existing gated-card contract (data-status gated-needs-files / data-field reason per the wireframe) — the fixture line is deleted": "SelectRoleServicesScreen.vue rowStatus emits data-status='gated-needs-files' and data-field='reason' (the #1171-unified name); catalogue.ts docs-editing runningWhere fixture clause deleted → 'not running yet'",
    "Deploy-time coupling (WOPI pair etc.) unchanged — the gate is a selection-surface truth, not a replacement for attach-time wiring": "No attach/WOPI code changed — diff touches only catalogue data, provision assess/select, dashboard select surface, tests and STATUS.md"
  },
  "summary": "provisioning's assess now computes a generic service-dependency gate from a catalogue data fact — docs-editing greys 'needs Files & documents' until Files is placed or ticked, deleting the hand-authored fixture.",
  "reason": "",
  "blockers": []
}
**close-report** for #1173 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1173, "status": "success", "commits": [ "adc5aca9ea442e2403adca7b59e1ec2012b3fcb1" ], "changed_files": [ "STATUS.md", "dashboard/src/components/provisioning/SelectRoleServicesScreen.vue", "dashboard/src/lib/catalogue.ts", "dashboard/src/lib/provision.ts", "dashboard/tests/unit/provisionDependencyGate.test.ts", "internal/catalogue/catalogue.go", "internal/provision/assess.go", "internal/provision/assess_test.go" ], "tests": [ { "command": "go test ./internal/provision/... ./internal/catalogue/...", "exit_code": 0 }, { "command": "go test ./internal/... ./control-plane/...", "exit_code": 0 }, { "command": "go vet ./internal/provision/... ./internal/catalogue/...", "exit_code": 0 }, { "command": "CI=true npx vitest run", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 } ], "criteria": { "The dependency is a catalogue data fact — the gate mechanism itself knows no service names": "internal/catalogue/catalogue.go adds catalogue.Service.Needs []Dependency ({service, why}); internal/provision/assess.go dependencyReason+fleetPlaced read only the declared slug and fleet placements — no service names in the mechanism", "With no Files placed, docs-editing's S2 card greys with the computed reason; assess_test updated to assert the gate, not its absence": "internal/provision/assess_test.go TestForRole_DocsEditingWaitsForFilesUntilItIsPlaced asserts Gated + reason 'needs Files & documents — it edits their documents' + NeedsPlaced='files' with no Files placed", "Ticking Files in the same selection clears the gate in place (the #413 caption behaviour)": "SelectRoleServicesScreen.vue effectiveGated/rowStatus/tickedOnFleet clear the gate client-side when Files is ticked; dashboard/tests/unit/provisionDependencyGate.test.ts 'clears the gate in place the moment Files is ticked'; seam TestForRole_DocsEditingWaitsForFilesUntilItIsPlaced proves placing Files clears it", "The dashboard renders the computed gate reason via the existing gated-card contract (data-status gated-needs-files / data-field reason per the wireframe) — the fixture line is deleted": "SelectRoleServicesScreen.vue rowStatus emits data-status='gated-needs-files' and data-field='reason' (the #1171-unified name); catalogue.ts docs-editing runningWhere fixture clause deleted → 'not running yet'", "Deploy-time coupling (WOPI pair etc.) unchanged — the gate is a selection-surface truth, not a replacement for attach-time wiring": "No attach/WOPI code changed — diff touches only catalogue data, provision assess/select, dashboard select surface, tests and STATUS.md" }, "summary": "provisioning's assess now computes a generic service-dependency gate from a catalogue data fact — docs-editing greys 'needs Files & documents' until Files is placed or ticked, deleting the hand-authored fixture.", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1173
No description provided.