self.assertEqual(tags['options'][1]['sourceRule'],'业务分类=轻改 and 品牌=鸿蒙智行 则显示')
self.assertNotIn('sourceRule',tags['options'][1])
```
```
-[]**Step 4: Add failing assembly and JS-emission assertions**
-[]**Step 4: Add failing assembly and JS-emission assertions**
...
@@ -239,11 +239,11 @@ TYPE_MAP.update({
...
@@ -239,11 +239,11 @@ TYPE_MAP.update({
-`仅限11位手机号` changes `input` to `phoneInput`.
-`仅限11位手机号` changes `input` to `phoneInput`.
-`输入不超过N字` adds `rules.maxLength = N`.
-`输入不超过N字` adds `rules.maxLength = N`.
- date text `仅允许选择当前及过去日期` adds `maxDate: today` and `format: date`.
- date text `仅允许选择当前及过去日期` adds `maxDate: today` and `format: date` to the child field; the parent subform `childrenRules` uses legacy-compatible `maxDate: 'new Date()'`.
- VIN scan text adds `prefixComponent: scan`.
- VIN scan text adds `prefixComponent: scan`.
-`其他规则` containing picker mode `多选` changes `select` to `multipleSelect`.
-`其他规则` containing picker mode `多选` changes `select` to `multipleSelect`.
- multiline fixed options strip `选项N:` and store parenthesized annotations as `sourceRule`.
- multiline fixed options strip `选项N:` and parenthesized annotations from submitted option values; do not emit the unsupported `sourceRule` field.
- non-static defaults `每月首日...` and `当前用户`become `sourceDefaultRule`; do not set a fake `value`.
- non-static defaults `每月首日...` and `当前用户`do not set a fake `value` or emit the unsupported `sourceDefaultRule` field.
Attach only rules whose target child exists in the assembled subform.
Attach only rules whose target child exists in the assembled subform.
-[]**Step 5: Make JS emission valid for new metadata**
-[]**Step 5: Make JS emission valid for supported metadata**
Add `prefixComponent`, `sourceDefaultRule`, and `childrenShowRules` to field property order. Add a dedicated emitter that quotes child keys containing hyphens. Extend option emission to include `sourceRule` when present.
Add `prefixComponent` and `childrenShowRules` to field property order. Add a dedicated emitter that quotes child keys containing hyphens and emits `childrenShowRules.result` with outer double quotes and inner single quotes. Keep option emission limited to the supported `label` and `value` properties; do not emit metadata fields that the runtime schema does not consume.
-[]**Step 6: Wire CLI version metadata and output paths**
-[]**Step 6: Wire CLI version metadata and output paths**
Also assert `sourceDefaultRule`, option `sourceRule`,`F2-102` filterBrandId/baseSceneCode, static option values, and all eight child show-rule keys.
Also assert the absence of unsupported `sourceDefaultRule`/option `sourceRule`, plus`F2-102` filterBrandId/baseSceneCode, static option values, and all eight child show-rule keys.
-[]**Step 2: Run the fixture test and verify RED**
-[]**Step 2: Run the fixture test and verify RED**