fable-engine 1.3.1__py3-none-any.whl

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.
Files changed (104) hide show
  1. fable_compressor.py +356 -0
  2. fable_engine/__init__.py +1 -0
  3. fable_engine/actions/__init__.py +291 -0
  4. fable_engine/actions/cas.py +182 -0
  5. fable_engine/actions/deliberation.py +523 -0
  6. fable_engine/actions/fleet.py +807 -0
  7. fable_engine/actions/lifecycle.py +298 -0
  8. fable_engine/actions/scrapers.py +116 -0
  9. fable_engine/actions/system3.py +815 -0
  10. fable_engine/browser.py +824 -0
  11. fable_engine/cas.py +974 -0
  12. fable_engine/fable_session.json +510 -0
  13. fable_engine/guards.py +283 -0
  14. fable_engine/schema.py +714 -0
  15. fable_engine/scrapers/__init__.py +32 -0
  16. fable_engine/scrapers/arxiv.py +115 -0
  17. fable_engine/scrapers/base.py +386 -0
  18. fable_engine/scrapers/github.py +129 -0
  19. fable_engine/scrapers/reddit.py +154 -0
  20. fable_engine/scrapers/web.py +120 -0
  21. fable_engine/scrapers/x.py +125 -0
  22. fable_engine/scrapers/youtube.py +132 -0
  23. fable_engine/server.py +414 -0
  24. fable_engine/session.py +1819 -0
  25. fable_engine/test_server.py +1362 -0
  26. fable_engine/updater.py +541 -0
  27. fable_engine-1.3.1.dist-info/LICENSE +22 -0
  28. fable_engine-1.3.1.dist-info/METADATA +173 -0
  29. fable_engine-1.3.1.dist-info/RECORD +104 -0
  30. fable_engine-1.3.1.dist-info/WHEEL +5 -0
  31. fable_engine-1.3.1.dist-info/entry_points.txt +5 -0
  32. fable_engine-1.3.1.dist-info/top_level.txt +6 -0
  33. fable_mode/__init__.py +3 -0
  34. fable_mode/__main__.py +4 -0
  35. fable_mode/adapters.py +1014 -0
  36. fable_mode/installer.py +553 -0
  37. fable_mode/launcher.py +437 -0
  38. fable_mode/manifest.py +142 -0
  39. fable_mode/resources.json +114 -0
  40. fable_mode/safety.py +103 -0
  41. fable_mode_entry.py +10 -0
  42. fable_v2/__init__.py +146 -0
  43. fable_v2/adapters.py +151 -0
  44. fable_v2/coder_fleet/__init__.py +100 -0
  45. fable_v2/coder_fleet/ast_tools.py +158 -0
  46. fable_v2/coder_fleet/compute.py +199 -0
  47. fable_v2/coder_fleet/design_engine.py +1316 -0
  48. fable_v2/coder_fleet/diagnostics.py +293 -0
  49. fable_v2/coder_fleet/fleet_dispatcher.py +214 -0
  50. fable_v2/coder_fleet/mock_auditor.py +306 -0
  51. fable_v2/coder_fleet/mutation.py +216 -0
  52. fable_v2/coder_fleet/property_oracle.py +260 -0
  53. fable_v2/coder_fleet/receipt_attestor.py +122 -0
  54. fable_v2/coder_fleet/red_team_swarm.py +908 -0
  55. fable_v2/coder_fleet/test_harness.py +198 -0
  56. fable_v2/coder_fleet/vector_engine.py +1287 -0
  57. fable_v2/coder_fleet/visual.py +357 -0
  58. fable_v2/coder_fleet/workspace.py +153 -0
  59. fable_v2/cortical/__init__.py +20 -0
  60. fable_v2/cortical/plasticity_engine.py +992 -0
  61. fable_v2/execution_broker.py +811 -0
  62. fable_v2/proof_engine.py +1141 -0
  63. fable_v2/protocol.py +485 -0
  64. fable_v2/runtime.py +1010 -0
  65. fable_v2/system3/__init__.py +204 -0
  66. fable_v2/system3/causal.py +558 -0
  67. fable_v2/system3/dialectical.py +577 -0
  68. fable_v2/system3/evolution.py +503 -0
  69. fable_v2/system3/executive.py +338 -0
  70. fable_v2/system3/free_energy.py +479 -0
  71. fable_v2/system3/hyperbolic.py +555 -0
  72. fable_v2/system3/induction.py +336 -0
  73. fable_v2/system3/kripke.py +548 -0
  74. fable_v2/system3/oracle.py +745 -0
  75. fable_v2/verifiers.py +72 -0
  76. tests/__init__.py +1 -0
  77. tests/test_anti_loop_circuit_breaker.py +64 -0
  78. tests/test_auto_updater.py +407 -0
  79. tests/test_coder_fleet.py +535 -0
  80. tests/test_delegation_compiler.py +54 -0
  81. tests/test_descriptor_boundaries.py +126 -0
  82. tests/test_design_engine.py +603 -0
  83. tests/test_epistemic_evidence_validator.py +66 -0
  84. tests/test_execution_broker.py +233 -0
  85. tests/test_fable_v2.py +406 -0
  86. tests/test_fleet_transitions.py +116 -0
  87. tests/test_fsm_redteam_evolution.py +406 -0
  88. tests/test_goal_rubric_and_pipeline.py +367 -0
  89. tests/test_hebbian_plasticity.py +585 -0
  90. tests/test_packaging_runtime.py +194 -0
  91. tests/test_proof_engine.py +259 -0
  92. tests/test_red_team_swarm.py +645 -0
  93. tests/test_redteam_remediation.py +169 -0
  94. tests/test_registration_transaction.py +375 -0
  95. tests/test_requested_regressions.py +467 -0
  96. tests/test_scrapers.py +370 -0
  97. tests/test_server_actions.py +93 -0
  98. tests/test_server_frontier_actions.py +269 -0
  99. tests/test_server_protocol.py +88 -0
  100. tests/test_stealth_browser.py +970 -0
  101. tests/test_system3.py +381 -0
  102. tests/test_system3_deep_integration.py +385 -0
  103. tests/test_system3_frontier.py +436 -0
  104. tests/test_vector_engine.py +608 -0
@@ -0,0 +1,510 @@
1
+ {
2
+ "name": "fable_session",
3
+ "description": "Fable Cognitive Engine Session & Telemetry Manager for MCP-compatible agent hosts.\nEnforces immutable authority time-locks, evidence-gated epistemic tracking, formal invariant modeling, continuous rethink-refine cycles, phased progression, subagent delegation contract compilation, internal pacing telemetry, token compression subsystem (Content-Addressed Storage, 0.003 tokens/character invariant), and System 3 Meta-Cognitive Deliberation & Dialectical Evolutionary Architecture (Pearl do-calculus, TRIZ contradiction synthesis, 10D Pareto genetic search, axiom induction, Poincaré hyperbolic embeddings, Kripke modal model checking, Friston active inference, and Gödelian constructive proof oracle).",
4
+ "parameters": {
5
+ "properties": {
6
+ "a_matrix": {
7
+ "description": "Observation likelihood matrix A [O x S] for Active Inference.",
8
+ "type": ["array", "string"]
9
+ },
10
+ "actions": {
11
+ "description": "List of control action identifiers for Active Inference POMDP.",
12
+ "type": ["array", "string"]
13
+ },
14
+ "action": {
15
+ "description": "The Fable session action to perform.",
16
+ "enum": [
17
+ "create_session",
18
+ "set_timer",
19
+ "get_status",
20
+ "telemetry",
21
+ "advance_phase",
22
+ "log_epistemic_item",
23
+ "record_invariant",
24
+ "log_refinement_cycle",
25
+ "unlock_execution",
26
+ "checkpoint_session",
27
+ "restore_session",
28
+ "list_sessions",
29
+ "compile_delegation_contract",
30
+ "compress_payload",
31
+ "decompress_payload",
32
+ "view_slice",
33
+ "accumulate_payload",
34
+ "flush_accumulator",
35
+ "get_compression_stats",
36
+ "system3_dialectical_synthesis",
37
+ "system3_causal_simulate",
38
+ "system3_evolve_paradigms",
39
+ "system3_induce_axioms",
40
+ "system3_meta_reflect",
41
+ "system3_tri_level_orchestrate",
42
+ "system3_hyperbolic_embed",
43
+ "system3_kripke_verify",
44
+ "system3_active_inference",
45
+ "system3_proof_oracle",
46
+ "track_file_change",
47
+ "get_session_lineage",
48
+ "inspect_plan",
49
+ "verify_proof",
50
+ "record_visual_mockups",
51
+ "validate_event_history",
52
+ "set_goal_rubric",
53
+ "evaluate_goal_rubric",
54
+ "get_goal_rubric",
55
+ "register_automation_pipeline",
56
+ "red_team_code_review",
57
+ "record_breakage_report",
58
+ "verify_red_team_remediation",
59
+ "cortical_define_lobe",
60
+ "cortical_list_lobes",
61
+ "check_auto_update",
62
+ "apply_auto_update",
63
+ "evolve_cortex",
64
+ "audit_anti_slop",
65
+ "infer_design_brief",
66
+ "generate_design_tokens",
67
+ "generate_awwwards_scaffold",
68
+ "validate_preflight_design",
69
+ "list_design_archetypes"
70
+ ],
71
+ "type": "string"
72
+ },
73
+ "accumulate_payload": {
74
+ "description": "Micro-payload text for adaptive batch accumulator or CAS storage.",
75
+ "type": "string"
76
+ },
77
+ "antithesis_title": {
78
+ "description": "Title of the antithesis / adversarial critique for System 3 dialectical synthesis.",
79
+ "type": "string"
80
+ },
81
+ "architectural_refinement": {
82
+ "description": "Concrete architectural evolution, optimization, or algorithm change derived from the critique.",
83
+ "type": "string"
84
+ },
85
+ "artifact_path": {
86
+ "description": "Absolute filesystem path to blueprint artifact, proof, or benchmark script documenting the refinement.",
87
+ "type": "string"
88
+ },
89
+ "axioms": {
90
+ "description": "List of reference axiom names or strings for proof oracle.",
91
+ "type": ["array", "string"]
92
+ },
93
+ "b_matrices": {
94
+ "description": "State transition matrices B [Action -> S x S] for Active Inference.",
95
+ "type": ["object", "string"]
96
+ },
97
+ "base_step": {
98
+ "description": "Base geodesic step distance for hyperbolic tree embedding (default 1.0).",
99
+ "type": "number"
100
+ },
101
+ "c_preferences": {
102
+ "description": "Prior preference distribution C over observations for Active Inference.",
103
+ "type": ["array", "string"]
104
+ },
105
+ "cas_ref": {
106
+ "description": "CAS reference URI (cas://<sha256_hex>) or 64-char hash to retrieve, slice, or decompress.",
107
+ "type": "string"
108
+ },
109
+ "claim": {
110
+ "description": "Fact, hypothesis statement, or unknown parameter to track in epistemic ledger / proof oracle.",
111
+ "type": "string"
112
+ },
113
+ "content": {
114
+ "description": "Raw text content or payload to store/compress into Content-Addressed Storage (CAS).",
115
+ "type": "string"
116
+ },
117
+ "context": {
118
+ "description": "Hypothesis typing context dictionary {name: type} for proof oracle.",
119
+ "type": ["object", "string"]
120
+ },
121
+ "contradiction_density": {
122
+ "description": "Contradiction density index [0.0, 1.0] for System 3 cognitive gear shifting.",
123
+ "type": "number"
124
+ },
125
+ "contradictions": {
126
+ "description": "List of parameter trade-offs / contradictions to resolve with TRIZ principles.",
127
+ "type": ["array", "string"]
128
+ },
129
+ "critique_or_bottleneck": {
130
+ "description": "Critical flaw, vulnerability, edge case, memory/latency bottleneck, or assumption scrutinized.",
131
+ "type": "string"
132
+ },
133
+ "crossover_rate": {
134
+ "description": "Genetic crossover rate probability for evolutionary engine (default 0.80).",
135
+ "type": "number"
136
+ },
137
+ "curvature": {
138
+ "description": "Sectional curvature c > 0 of Poincaré manifold (default 1.0).",
139
+ "type": "number"
140
+ },
141
+ "d_prior": {
142
+ "description": "Prior initial state belief distribution D for Active Inference.",
143
+ "type": ["array", "string"]
144
+ },
145
+ "dimension": {
146
+ "description": "Dimension of Poincaré ball manifold (default 2).",
147
+ "type": "integer"
148
+ },
149
+ "domain": {
150
+ "description": "Domain boundary for the invariant or cortical plasticity consolidation.",
151
+ "type": "string"
152
+ },
153
+ "edges": {
154
+ "description": "List of directed edge dictionaries for Causal DAG construction.",
155
+ "type": ["array", "string"]
156
+ },
157
+ "end_line": {
158
+ "description": "Ending line number (1-indexed inclusive) for windowed line slice viewing.",
159
+ "type": "integer"
160
+ },
161
+ "epistemic_uncertainty": {
162
+ "description": "Epistemic uncertainty index [0.0, 1.0] for System 3 arbitration.",
163
+ "type": "number"
164
+ },
165
+ "evidence": {
166
+ "description": "Source file, command output, line number, or URL supporting the claim.",
167
+ "type": "string"
168
+ },
169
+ "failure_count": {
170
+ "description": "Historical failure count for tri-level cognitive gear arbitration.",
171
+ "type": "integer"
172
+ },
173
+ "failure_modes": {
174
+ "description": "List of adversarial failure modes identified in critique.",
175
+ "type": ["array", "string"]
176
+ },
177
+ "focus_area": {
178
+ "description": "Specific subsystem, component, algorithm, or interface being critically re-evaluated.",
179
+ "type": "string"
180
+ },
181
+ "force_flush": {
182
+ "description": "Force flush buffered micro-payloads immediately into a composite frame.",
183
+ "type": "boolean"
184
+ },
185
+ "formal_statement": {
186
+ "description": "Mathematical or formal contract specification that must never be violated.",
187
+ "type": "string"
188
+ },
189
+ "formula": {
190
+ "description": "CTL / modal formula string to verify against Kripke structure (e.g. 'AG(safe)', 'EF(goal)').",
191
+ "type": "string"
192
+ },
193
+ "gamma": {
194
+ "description": "Policy precision inverse temperature gamma for Active Inference softmax (default 16.0).",
195
+ "type": "number"
196
+ },
197
+ "generations": {
198
+ "description": "Number of evolutionary generations to run (default 3).",
199
+ "type": "integer"
200
+ },
201
+ "include_line_numbers": {
202
+ "description": "Whether to format line slice with line numbers.",
203
+ "type": "boolean"
204
+ },
205
+ "initial_world": {
206
+ "description": "Initial world ID for Kripke model checking.",
207
+ "type": "string"
208
+ },
209
+ "interventions": {
210
+ "description": "Dictionary of Pearl's do-operator interventions: {node_id: value}.",
211
+ "type": ["object", "string"]
212
+ },
213
+ "invariant_name": {
214
+ "description": "Identifier or title of the formal invariant (e.g., 'INV-01: Zero-Deadlock Ring Buffer').",
215
+ "type": "string"
216
+ },
217
+ "label": {
218
+ "description": "Optional label or description for compressed CAS node.",
219
+ "type": "string"
220
+ },
221
+ "max_debate_rounds": {
222
+ "description": "Maximum number of dialectical debate rounds for synthesis (default 4).",
223
+ "type": "integer"
224
+ },
225
+ "metadata": {
226
+ "description": "Optional metadata dictionary attached to accumulated micro-payload.",
227
+ "type": "object"
228
+ },
229
+ "model_name": {
230
+ "description": "Name for the causal DAG / Kripke model in System 3 simulation.",
231
+ "type": "string"
232
+ },
233
+ "mutation_rate": {
234
+ "description": "Genetic mutation rate probability for evolutionary engine (default 0.15).",
235
+ "type": "number"
236
+ },
237
+ "next_phase": {
238
+ "description": "Target phase to advance the session into.",
239
+ "enum": [
240
+ "Phase 1: Epistemic Grounding & Live Research",
241
+ "Phase 2: Invariant Specification & Blueprint",
242
+ "Phase 3: Adversarial Red-Teaming & Falsification",
243
+ "Phase 4: Subagent Fleet Delegation",
244
+ "Phase 5: Multi-Tier Verification & Gatekeeping",
245
+ "Phase 6: Final Walkthrough & Reporting"
246
+ ],
247
+ "type": "string"
248
+ },
249
+ "node_labels": {
250
+ "description": "Optional mapping of node IDs to readable labels.",
251
+ "type": ["object", "string"]
252
+ },
253
+ "nodes": {
254
+ "description": "List of node dictionaries for Causal DAG construction.",
255
+ "type": ["array", "string"]
256
+ },
257
+ "objective": {
258
+ "description": "High-level goal or problem statement for the reasoning session.",
259
+ "type": "string"
260
+ },
261
+ "objective_weights": {
262
+ "description": "Optional dictionary of weights across the 10 Pareto dimensions.",
263
+ "type": ["object", "string"]
264
+ },
265
+ "observation": {
266
+ "description": "Current sensory observation for Active Inference belief updating.",
267
+ "type": "string"
268
+ },
269
+ "observations": {
270
+ "description": "List of observation identifiers for Active Inference POMDP.",
271
+ "type": ["array", "string"]
272
+ },
273
+ "payload": {
274
+ "description": "Micro-payload text for adaptive batch accumulator or CAS storage.",
275
+ "type": "string"
276
+ },
277
+ "phase_summary": {
278
+ "description": "Concise summary of findings or deliverables completed in the previous phase.",
279
+ "type": "string"
280
+ },
281
+ "policies": {
282
+ "description": "List of candidate action sequence policies for Expected Free Energy evaluation.",
283
+ "type": ["array", "string"]
284
+ },
285
+ "population_size": {
286
+ "description": "Population size for evolutionary gene pool (default 12).",
287
+ "type": "integer"
288
+ },
289
+ "proof_or_rationale": {
290
+ "description": "Proof sketch, rationale, or inductive argument establishing the invariant.",
291
+ "type": "string"
292
+ },
293
+ "rationale": {
294
+ "description": "Justification for unlocking code execution after satisfying cognitive gates.",
295
+ "type": "string"
296
+ },
297
+ "refinement_type": {
298
+ "description": "Type of rethink-refine cycle (e.g. 'archetype_exploration', 'triz_resolution', 'adversarial_falsification', 'benchmark_probe', 'failure_mode_analysis').",
299
+ "type": "string"
300
+ },
301
+ "root_id": {
302
+ "description": "Root node ID for hyperbolic tree embedding or initial world.",
303
+ "type": "string"
304
+ },
305
+ "seed_paradigms": {
306
+ "description": "Optional list of initial paradigm definitions to seed the gene pool.",
307
+ "type": ["array", "string"]
308
+ },
309
+ "session_name": {
310
+ "description": "Unique identifier / name for the Fable session.",
311
+ "type": "string"
312
+ },
313
+ "start_line": {
314
+ "description": "Starting line number (1-indexed inclusive) for windowed line slice viewing.",
315
+ "type": "integer"
316
+ },
317
+ "states": {
318
+ "description": "List of hidden state identifiers for Active Inference POMDP.",
319
+ "type": ["array", "string"]
320
+ },
321
+ "subagent_prompt": {
322
+ "description": "The delegation prompt or contract text for the subagent to validate.",
323
+ "type": "string"
324
+ },
325
+ "tag": {
326
+ "description": "Epistemic classification tag for truth calibration.",
327
+ "enum": [
328
+ "PROVEN",
329
+ "HYPOTHESIS",
330
+ "UNKNOWN"
331
+ ],
332
+ "type": "string"
333
+ },
334
+ "target_metric": {
335
+ "description": "Target KPI node ID for sensitivity and structural brittleness analysis.",
336
+ "type": "string"
337
+ },
338
+ "target_residual_threshold": {
339
+ "description": "Target residual contradiction score threshold for convergence (default 0.15).",
340
+ "type": "number"
341
+ },
342
+ "task_complexity": {
343
+ "description": "Task complexity index [0.0, 1.0] for tri-level cognitive arbitration.",
344
+ "type": "number"
345
+ },
346
+ "terminal_probe_results": {
347
+ "description": "Live empirical probe output, benchmark figures, latency numbers, or profiling stats supporting the refinement.",
348
+ "type": "string"
349
+ },
350
+ "thesis_description": {
351
+ "description": "Core architecture description and assumptions for the thesis candidate.",
352
+ "type": "string"
353
+ },
354
+ "thesis_title": {
355
+ "description": "Title of the thesis paradigm for System 3 dialectical synthesis.",
356
+ "type": "string"
357
+ },
358
+ "time_budget_minutes": {
359
+ "description": "Immutable outer authority budget in minutes; set_timer only changes internal pacing.",
360
+ "type": "number"
361
+ },
362
+ "transitions": {
363
+ "description": "List of transitions or adjacency dictionary for Kripke structure.",
364
+ "type": ["array", "object", "string"]
365
+ },
366
+ "tree": {
367
+ "description": "Tree hierarchy adjacency list or nested dict for hyperbolic embedding.",
368
+ "type": ["object", "array", "string"]
369
+ },
370
+ "worlds": {
371
+ "description": "List of world/state definitions for Kripke structure.",
372
+ "type": ["array", "string"]
373
+ },
374
+ "affected_invariants": {
375
+ "description": "List or string of invariant names affected by this file change.",
376
+ "type": ["array", "string"]
377
+ },
378
+ "change_type": {
379
+ "description": "Classification of file change ('modified', 'created', 'deleted', 'slated').",
380
+ "enum": ["modified", "created", "deleted", "slated"],
381
+ "type": "string"
382
+ },
383
+ "diff_summary": {
384
+ "description": "Concise summary of file changes, diff, or slated edits.",
385
+ "type": "string"
386
+ },
387
+ "file_path": {
388
+ "description": "Target file path for file change tracking or proof verification.",
389
+ "type": "string"
390
+ },
391
+ "mockups": {
392
+ "description": "List of concept dictionaries for visual mockup recording.",
393
+ "type": ["array", "string"]
394
+ },
395
+ "proof_type": {
396
+ "description": "Deterministic proof type ('ast', 'receipt', 'file_sha256', 'formal_logic', 'vector_coordinates').",
397
+ "enum": ["ast", "receipt", "file_sha256", "formal_logic", "vector_coordinates"],
398
+ "type": "string"
399
+ },
400
+ "selected_concept": {
401
+ "description": "Identifier of the selected visual concept archetype.",
402
+ "type": "string"
403
+ },
404
+ "target_resource": {
405
+ "description": "Target resource (file path, receipt ID) for proof verification.",
406
+ "type": "string"
407
+ },
408
+ "criteria": {
409
+ "description": "List of criteria dictionaries or pointer strings for goal scoring rubric.",
410
+ "type": ["array", "string"]
411
+ },
412
+ "rubric_id": {
413
+ "description": "Identifier for the goal scoring rubric contract.",
414
+ "type": "string"
415
+ },
416
+ "target_score": {
417
+ "description": "Target composite goal attainment score threshold (default 0.95 for >= 95%).",
418
+ "type": "number"
419
+ },
420
+ "evaluations": {
421
+ "description": "List of criterion evaluation dictionaries or score updates for evaluate_goal_rubric.",
422
+ "type": ["array", "string"]
423
+ },
424
+ "pipeline_name": {
425
+ "description": "Name or identifier of the autonomous closed-loop pipeline.",
426
+ "type": "string"
427
+ },
428
+ "pipeline_type": {
429
+ "description": "Type classification of the autonomous pipeline (e.g. 'closed_loop', 'fuzzing', 'verification').",
430
+ "type": "string"
431
+ },
432
+ "generator_cmd": {
433
+ "description": "Shell command or executable script for the pipeline generator phase.",
434
+ "type": "string"
435
+ },
436
+ "evaluator_cmd": {
437
+ "description": "Shell command or executable script for the pipeline evaluator phase.",
438
+ "type": "string"
439
+ },
440
+ "max_iterations": {
441
+ "description": "Maximum number of autonomous generator-evaluator iterations before halting.",
442
+ "type": "integer"
443
+ },
444
+ "preserve_cortex": {
445
+ "description": "Whether to preserve local cortical experience (antibodies, synaptic weights, custom lobes) during auto-update. Defaults to true.",
446
+ "type": "boolean"
447
+ },
448
+ "target_name": {
449
+ "description": "Identifier or name of the target module, class, or function for red-team review.",
450
+ "type": "string"
451
+ },
452
+ "target_code": {
453
+ "description": "Target source code under test for adversarial red-teaming.",
454
+ "type": "string"
455
+ },
456
+ "custom_hypotheses": {
457
+ "description": "List or JSON string of custom adversarial hypotheses / attack vectors.",
458
+ "type": ["array", "string"]
459
+ },
460
+ "broken_scenarios": {
461
+ "description": "List or JSON string of broken attack scenarios found during red-team review.",
462
+ "type": ["array", "string"]
463
+ },
464
+ "remediated_code": {
465
+ "description": "Remediated code submitted to verify against broken scenarios.",
466
+ "type": "string"
467
+ },
468
+ "prior_report": {
469
+ "description": "Prior red-team breakage report dictionary or JSON string to verify remediation against.",
470
+ "type": ["object", "string"]
471
+ },
472
+ "task_id": {
473
+ "description": "Task identifier for cortical plasticity consolidation or session lineage.",
474
+ "type": "string"
475
+ },
476
+ "code": {
477
+ "description": "Source code content (HTML, JSX, CSS, or TSX) to audit or validate against anti-slop gates.",
478
+ "type": "string"
479
+ },
480
+ "archetype": {
481
+ "description": "Haute aesthetic archetype identifier for design tokens or scaffolding.",
482
+ "enum": [
483
+ "cyber_obsidian_monolith",
484
+ "haute_editorial_modernism",
485
+ "swiss_precision_vignelli",
486
+ "kinetic_spatial_hud",
487
+ "neo_nordic_warmth",
488
+ "cold_chromatic_luxury"
489
+ ],
490
+ "type": "string"
491
+ },
492
+ "archetype_override": {
493
+ "description": "Optional override for Haute aesthetic archetype.",
494
+ "type": "string"
495
+ },
496
+ "dials_override": {
497
+ "description": "Optional discrete dials override: variance (1-10), motion (1-10), density (1-10).",
498
+ "type": "object"
499
+ },
500
+ "user_prompt": {
501
+ "description": "Alias for prompt: high-level design prompt describing desired web experience.",
502
+ "type": "string"
503
+ }
504
+ },
505
+ "required": [
506
+ "action"
507
+ ],
508
+ "type": "object"
509
+ }
510
+ }