ALZ-F02 Assessment: individual agents, intake, rate card input, critic fixes

- Six declarative agents generated from the v1.1 stories (scaffold_from_stories.py, ADR 0001),
  and a 9-step workflow export (build_workflow.py).
- Code-only intake (ADR 0008) verifies the one Discovery package in code before any agent.
- The rate card is the run input rate_card_document; no upload step (ADR 0009).
- Critic 0.1.6 after live runs on crucible-kab-dev:
  - K-12 model independence checked at build time against each agent's deployed model
    (ADR 0010); the critic reports it from its two inputs;
  - receives in_cloud_estate for K-10; an unverified K-10 never fails the run alone;
  - K-08 allows the scoring note to list findings as advisory, as ALZ-ASM-04 must;
  - carries ALZ-ASM-03's and ALZ-ASM-04's rule sections, copied by the scaffold, so it can
    recalculate risk, confidence and TCO.
- The scaffold refuses to regenerate unless every story file is present.
- Case azure-crucible-kab-dev-assessment with an illustrative rate card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 22:13:25 +00:00
parent 9e503885cc
commit e22d037ab0
153 changed files with 13004 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# Workflow cases: ALZ-F02 Assessment
| Case | Input | Status |
|---|---|---|
| [azure-crucible-kab-dev-assessment](azure-crucible-kab-dev-assessment/) | The Discovery package of a live Azure run with an uploaded CMDB (F01 ADRs 0020, 0021), plus an illustrative Azure [rate card](azure-crucible-kab-dev-assessment/rate-card.json) | Expected behaviour written before the first run |
| [meridian-assessment](meridian-assessment/) | A Meridian Retail Group Discovery run with a passing critic and an approval, plus the sample [rate card](meridian-assessment/rate-card.json) | Rate card only. The checks are written before the first run (`.agents/PLAN.md` step 10) |
Expected behaviour on Meridian, from the story files' worked examples. Checks should be written from this list
before the first run, not tuned to it afterwards:
- **No cloud.** The estate is on-premises, so ALZ-ASM-05 is `not_applicable` and makes no tool call.
- **Risk.** POS Backoffice is in the high-risk tail: its score is 0.85, and it meets both hard triggers.
- **Partial score.** The file-transfer score is partial, and T1 can't be evaluated because its criticality isn't
recorded.
- **Dependents.** No disposition retires an application with a dependent, and none retires an asset whose
`retire_constraint` isn't `none`.
- **Sign-off.** Every disposition below 0.80 is in `signoff_queue`, and so is every repurchase or relocate.
- **Evidence.** Every `evidence_ref` names the Discovery run's execution id.

View File

@@ -0,0 +1,36 @@
# Case: azure-crucible-kab-dev-assessment
The first Assessment run on a live estate: the Discovery package of a run of case
`azure-crucible-kab-dev-cmdb` (resource group `crucible-kab-dev`, with the uploaded CMDB), and the illustrative
[rate card](rate-card.json) written for this case (not real prices).
## Starting it
From the repository root, after the Discovery run was continued past its review point:
```sh
F="individual-agents/ALZ-F02: Assessment & Disposition Workflow Agent"
python3 scripts/kab_run_workflow.py start --workflow <assessment workflow id> --project <id> \
--input engagement_id=ENG-AZURE-KAB-DEV-002 --input run_id=RUN-ASM-<n> \
--input discovery_execution_id=<discovery execution id> \
--input discovery_approval_ref="<who continued the Discovery run, and when>" \
--input 'artifact_ids=["<the package artifact id, <discovery execution id>_step_12>"]' \
--input rate_card_document=@"$F/workflows/cases/azure-crucible-kab-dev-assessment/rate-card.json"
```
## Expected, written before the first run
From the Discovery package's facts and the stories, not from a run:
- **Intake (`s0`).** `verified` is true: one package, every part matching its sha256, critic `pass`, from the named
Discovery run. A package from any other run, or a changed one, fails the run here.
- **Applications.** The planner plans one application, KAB Platform, with the package's 10 assets (F01 ADR 0021).
- **Preconditions.** Discovery completed, the critic passed and an approval reference was given.
- **In-cloud estate.** ALZ-ASM-05 (security posture) applies and reads the Azure estate with read-only tools.
- **Risk.** The end-of-life factor is missing for every asset (Discovery has no lifecycle source yet), so scores are
`partial` and name `eol` in `missing_factors`. No hard trigger can be evaluated.
- **TCO.** Current cost is missing (Discovery reads no cost yet), so `current_annual` is null and named in the missing
inputs. The target uses this rate card.
- **Sign-off.** Every disposition below 0.80 is in `signoff_queue`, and so is every repurchase or relocate. The
critic step stops for the Engagement Lead's approval.
- **Evidence.** Every `evidence_ref` names the Discovery execution id.

View File

@@ -0,0 +1,16 @@
{
"rate_card_id": "RC-AZURE-KAB-DEV-2026-11",
"currency": "USD",
"valid_from": "2026-11-01",
"note": "Illustrative test data for the crucible-kab-dev resource group, written for this case; not real prices.",
"items": [
{"rate_id": "RC-AZ-01", "category": "managed_kubernetes", "description": "Managed Kubernetes cluster, standard tier, 3 small nodes", "annual_rate": 9600, "equivalent_for": ["AKS", "Kubernetes", "microsoft.containerservice/managedclusters"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-02", "category": "managed_db", "description": "Managed PostgreSQL, burstable, 32 GB", "annual_rate": 1500, "equivalent_for": ["PostgreSQL", "microsoft.dbforpostgresql/flexibleservers"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-03", "category": "secrets", "description": "Key vault, standard", "annual_rate": 60, "equivalent_for": ["Key Vault", "microsoft.keyvault/vaults"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-04", "category": "storage", "description": "Storage account, standard LRS, 100 GB", "annual_rate": 300, "equivalent_for": ["Storage account", "microsoft.storage/storageaccounts"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-05", "category": "dns", "description": "Public DNS zone", "annual_rate": 12, "equivalent_for": ["DNS zone", "microsoft.network/dnszones"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-06", "category": "networking", "description": "Private endpoint", "annual_rate": 90, "equivalent_for": ["Private endpoint", "microsoft.network/privateendpoints"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-07", "category": "events", "description": "Event Grid system topic", "annual_rate": 0, "equivalent_for": ["Event Grid", "microsoft.eventgrid/systemtopics"], "licence_terms": "No licence"},
{"rate_id": "RC-AZ-08", "category": "identity", "description": "User-assigned managed identity", "annual_rate": 0, "equivalent_for": ["Managed identity", "microsoft.managedidentity/userassignedidentities"], "licence_terms": "No licence"}
]
}

View File

@@ -0,0 +1,70 @@
{
"rate_card_id": "RC-MERIDIAN-2026-11",
"currency": "GBP",
"items": [
{
"rate_id": "RC-02",
"category": "managed_app",
"description": "Managed app service, Windows / .NET",
"annual_rate": 4800,
"equivalent_for": [
"IIS",
".NET Framework"
],
"licence_terms": "Windows licence included"
},
{
"rate_id": "RC-03",
"category": "managed_db",
"description": "Managed Oracle-compatible database",
"annual_rate": 38000,
"equivalent_for": [
"Oracle Database"
],
"licence_terms": "Bring your own Oracle licence"
},
{
"rate_id": "RC-08",
"category": "managed_app",
"description": "Managed container app",
"annual_rate": 3000,
"equivalent_for": [
"Node.js",
"nginx"
],
"licence_terms": null
},
{
"rate_id": "RC-04",
"category": "cloud_hsm",
"description": "Dedicated cloud HSM",
"annual_rate": 28000,
"equivalent_for": [
"crypto_appliance"
],
"licence_terms": null
},
{
"rate_id": "RC-05",
"category": "managed_service",
"description": "Managed next-generation firewall",
"annual_rate": 19000,
"equivalent_for": [
"firewall"
],
"licence_terms": "Subscription replaces perpetual appliance licence"
},
{
"rate_id": "RC-01",
"category": "compute",
"description": "General-purpose VM, 4 vCPU",
"annual_rate": 6000,
"equivalent_for": [
"server"
],
"licence_terms": "OS licence included"
}
],
"valid_from": "2026-11-01",
"note": "Illustrative sample for the Meridian Retail Group estate; not real prices."
}