hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

FU004_quantity_association.json (2258B)


      1 {
      2   "fixture_format_version": 1,
      3   "case_id": "FU004_quantity_association",
      4   "requirements": [
      5     "HYF-FARM-001",
      6     "HYF-DATA-002"
      7   ],
      8   "family": "domain",
      9   "boundary": "application",
     10   "operation": "farm_update.interpret",
     11   "purpose": "Do not swap product-specific amounts.",
     12   "implementation_status": "planned",
     13   "required_from_step": "S068",
     14   "mandatory": true,
     15   "context": {
     16     "source_time": "2026-09-21T09:00:00-07:00",
     17     "evaluated_at": "2026-09-21T10:00:00-07:00",
     18     "timezone": "America/Vancouver",
     19     "locale": "en-CA",
     20     "tenant": "test-tenant-1",
     21     "seed": 101,
     22     "versions": {
     23       "schema": "test-projection-1",
     24       "taxonomy": "test-only-produce-1",
     25       "normalization": "test-only-norm-1",
     26       "review_policy": "test-only-review-1",
     27       "ranking_policy": "test-only-ranking-1",
     28       "question_bundle": "test-only-questions-1",
     29       "model": "jev-1.13.0"
     30     }
     31   },
     32   "given": {
     33     "source": {
     34       "id": "source-FU004_quantity_association",
     35       "revision": "r1",
     36       "farm": "farm-1",
     37       "text": "Tomatoes 12 kg, carrots 8 kg."
     38     },
     39     "taxonomy": [
     40       "tomatoes",
     41       "carrots",
     42       "basil"
     43     ]
     44   },
     45   "provider_script": [
     46     {
     47       "kind": "semantic_port",
     48       "expected_task": "quantity_roles",
     49       "scripted_answer": {
     50         "tomatoes": {
     51           "value": "12",
     52           "unit": "kg"
     53         },
     54         "carrots": {
     55           "value": "8",
     56           "unit": "kg"
     57         }
     58       },
     59       "expected_calls": 1
     60     }
     61   ],
     62   "then": [
     63     {
     64       "operator": "equals",
     65       "path": "/claims/by_product/tomatoes/quantity/value",
     66       "value": "12"
     67     },
     68     {
     69       "operator": "equals",
     70       "path": "/claims/by_product/carrots/quantity/value",
     71       "value": "8"
     72     }
     73   ],
     74   "prohibited": [
     75     "No authoritative business mutation or reservation is performed by Hyf."
     76   ],
     77   "provenance": {
     78     "kind": "synthetic",
     79     "author": "hyf_v1_jev handoff",
     80     "review_status": "implementation/domain review required; not a live-model label"
     81   },
     82   "assumptions": [
     83     "This is a semantic test projection, not an already implemented public wire payload.",
     84     "Test-only rules and scripted model outputs do not define production thresholds or certify model quality."
     85   ]
     86 }