-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsurface.json
More file actions
1638 lines (1638 loc) · 62.8 KB
/
surface.json
File metadata and controls
1638 lines (1638 loc) · 62.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"generated_at_utc": "2026-05-10T00:21:01+00:00",
"legacy_endpoint_map": {
"adapt_plan": "plan",
"audit_list": "explore",
"auto": "transmute",
"auto_apply": "plan",
"auto_plan": "plan",
"auto_step": "plan",
"call_graph": "explore",
"certify": "audit",
"change_review": "audit",
"cherry": "transmute",
"cna_check": "audit",
"code_intel": "explore",
"commit_compose": "plan",
"compose_tools": "plan",
"context_pack": "plan",
"discover": "explore",
"doctor": "audit",
"emergent": "explore",
"emergent_scan": "explore",
"emergent_swarm": "explore",
"enforce": "audit",
"enhancement": "hive",
"evolve": "loop",
"explain_repo": "explore",
"exported_api_check": "audit",
"finalize": "transmute",
"forge_locate": "plan",
"forge_util": "plan",
"get_recipe": "plan",
"guard_install": "audit",
"handoff": "hive",
"harvest": "explore",
"hive_agent": "hive",
"hive_consensus": "hive",
"iterate": "loop",
"lineage": "explore",
"list_recipes": "plan",
"load_policy": "plan",
"maintain": "audit",
"manifest_diff": "audit",
"plan_apply": "plan",
"preflight": "audit",
"preflight_change": "audit",
"recipes": "plan",
"recon": "explore",
"rollback_plan": "audit",
"score_patch": "audit",
"select_tests": "audit",
"session": "hive",
"sidecar_validate": "audit",
"smell_scan": "explore",
"synergy": "explore",
"synergy_scan": "explore",
"tool_factory": "plan",
"trust_gate_response": "audit",
"verify": "audit",
"what_failed_last_time": "explore",
"why_did_this_change": "explore",
"wire": "audit",
"workflow": "plan",
"worktree_status": "audit"
},
"package_version": "0.87.0",
"recipes": [
{
"checklist_steps": 5,
"description": "Add a new top-level Forge verb (or sibling-tool verb) with tier-clean wiring.",
"name": "add_cli_command",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 2
},
{
"checklist_steps": 5,
"description": "Implement a feature that combines existing a1 helpers and a2 composites under an a3 module.",
"name": "add_feature",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 3
},
{
"checklist_steps": 7,
"description": "Bump the package version in pyproject.toml, add a CHANGELOG entry, and create a git tag.",
"name": "bump_version",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 3
},
{
"checklist_steps": 17,
"description": "Complete agent development cycle: orient \u2192 preflight \u2192 edit \u2192 validate \u2192 end-of-cycle scan. Enforces monadic tier law, CNA naming conventions, and closes with emergent/synergy/certify.",
"name": "dev_cycle",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 5
},
{
"checklist_steps": 5,
"description": "Debug and fix when forge certify reports ran=False or pass_ratio=0 despite pytest passing locally.",
"name": "fix_test_detection",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 2
},
{
"checklist_steps": 5,
"description": "Resolve a tier upward-import violation surfaced by forge wire (F0040\u2013F0049).",
"name": "fix_wire_violation",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 3
},
{
"checklist_steps": 11,
"description": "Golden path for agents working ON the Forge itself. Enforces session-start health gates, per-edit verification, and a strict session-end commit gate. Prevents metric drift, undocumented dispatch routes, and test-gate bypass \u2014 the failure modes documented in v0.86.0 stabilisation.",
"name": "forge_self",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 3
},
{
"checklist_steps": 9,
"description": "Audit every source file's name against the CNA (Convention Naming Adherence) rules for its tier. Files that don't follow the convention are flagged; rename them or move them to the correct tier.",
"name": "naming_check",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 2
},
{
"checklist_steps": 5,
"description": "Register Forge as an MCP server in a coding-agent client (Cursor / Claude Code / Aider / Devin).",
"name": "publish_mcp",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 1
},
{
"checklist_steps": 6,
"description": "Add CI + CHANGELOG entry + version bump + signed Receipt before tagging a release.",
"name": "release_hardening",
"schema_version": "atomadic-forge.recipe/v1",
"validation_gate_steps": 4
}
],
"recipes_count": 10,
"redaction_hooks": [],
"schema_version": "atomadic-forge.surface/v1",
"schema_version_registry": {
"audit": "atomadic-forge.audit/v4",
"create": "atomadic-forge.create/v1",
"explore": "atomadic-forge.explore/v5",
"hive": "atomadic-forge.hive/v4",
"inspect": "atomadic-forge.inspect/v1",
"loop": "atomadic-forge.loop/v2",
"nexus": "atomadic-forge.nexus_call/v2",
"plan": "atomadic-forge.agent_plan/v5",
"transmute": "atomadic-forge.transmute/v2",
"welcome": "atomadic-forge.welcome/v1",
"wisdom": "atomadic-forge.wisdom/v2"
},
"tools": [
{
"description": "Use this when: you need to check, fix, verify, or safely change a repo. action='certify': 0-100 quality score (docs, tests, tier layout, import discipline). emit_receipt=true produces Forge Receipt v1 JSON. skip_tests=true for fast mode (~500ms). action='wire': finds every upward-import violation. suggest_repairs=true adds fix hints. action='enforce': apply mechanical fixes for wire violations (apply=false=dry-run). action='validate': validates a .forge sidecar TOML \u2014 required fields + types. action='guard': installs four enforcement layers (pre-commit hook, GHA workflow, pyproject contract, CONTRIBUTING block). apply=false returns planned writes. action='composite': single go/no-go verdict \u2014 wire+certify always, score_patch+preflight_change when diff/intent supplied; returns PASS/REFINE/FAIL. action='gate': deterministic hallucination detector for LLM responses \u2014 catches unresolved imports, syntax errors, stubs, false capability claims. action='health': Forge env diagnostic \u2014 version, Python, platform, optional deps. action='check': pre-edit guardrail \u2014 given intent + proposed_files, returns each file's tier, forbidden imports, affected tests, scope verdict. action='score': patch risk scorer \u2014 submit a unified diff, get architecture/test/public_API/release risk scores and needs_human_review. action='tests': minimum + full-confidence test set selection per intent. action='cna': Compose-Not-Add check \u2014 verify a proposed symbol is not duplicating an existing one (name + body-hash similarity). Returns PASS/REFINE/REJECT. action='rollback': structured undo plan \u2014 files to remove, caches to clean, docs to restore, tests to rerun, risk level. action='diff': compares two Forge manifests side-by-side. action='ast_scope': multi-repo AST blueprint + deterministic edit locks; attest_nexus=true mirrors locks to AAAA-Nexus lineage when a key is present, and otherwise returns a premium/x402 hint without failing. action='surface_gaps': find a1 entry points missing MCP or CLI coverage. action='wire_stubs': generate MCP handler + CLI stub + test skeleton for an unwired a1 function. action='dead_code': find defined-but-unreferenced symbols. action='maintainability': Maintainability Index per module (A/B/C/D). action='concept_bridge': synthesis plans from harvest candidates below TAU_TRUST. action='doc_update': regenerate README/CHANGELOG and extended docs (IDE_INTEGRATION.md, WHITEPAPER.md, AGENTS_GUIDE.md) from forge_metrics.json \u2014 zero LLM tokens. sections param: comma-separated readme,changelog,extended_docs. action='doc_drift': detect stale MCP tool/action/test counts across all key doc files before running doc_update. Returns drift_items list with file+line+found/expected.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_audit",
"input_schema": {
"additionalProperties": false,
"properties": {
"action": {
"description": "'certify' \u2014 quality score; 'wire' \u2014 import violations; 'enforce' \u2014 fix wire violations; 'validate' \u2014 check sidecar TOML; 'guard' \u2014 install enforcement layers; 'composite' \u2014 go/no-go verdict; 'gate' \u2014 LLM hallucination check; 'health' \u2014 env diagnostic; 'check' \u2014 pre-edit guardrail; 'score' \u2014 patch risk scoring; 'tests' \u2014 select affected tests; 'cna' \u2014 Compose-Not-Add dedup check; 'rollback' \u2014 undo plan; 'diff' \u2014 compare two manifests; 'ast_scope' \u2014 AST blueprint + local locks + optional Nexus attestation; 'dead_code' \u2014 unreferenced symbols; 'maintainability' \u2014 MI per module; 'concept_bridge' \u2014 synthesis plans; 'surface_gaps' \u2014 find unwired a1 functions; 'wire_stubs' \u2014 generate MCP+CLI+test stubs; 'doc_update' \u2014 regenerate README/CHANGELOG/extended docs from metrics; 'doc_drift' \u2014 detect stale MCP/test counts across all doc files.",
"enum": [
"certify",
"wire",
"enforce",
"validate",
"guard",
"composite",
"gate",
"health",
"check",
"score",
"tests",
"cna",
"rollback",
"diff",
"ast_scope",
"surface_gaps",
"wire_stubs",
"dead_code",
"maintainability",
"concept_bridge",
"auto_wire",
"doc_update",
"doc_drift"
],
"type": "string"
},
"agent_ids": {
"description": "[ast_scope] Agent ids for round-robin locks.",
"items": {
"type": "string"
},
"type": "array"
},
"apply": {
"default": false,
"description": "[enforce/guard] false=dry-run, true=write.",
"type": "boolean"
},
"attest_nexus": {
"default": false,
"description": "[ast_scope] Mirror locks to Nexus lineage if configured.",
"type": "boolean"
},
"changed_files": {
"description": "[tests/rollback] Files that were changed.",
"items": {
"type": "string"
},
"type": "array"
},
"diff": {
"description": "[composite/score] Unified diff (git diff format).",
"type": "string"
},
"emit_receipt": {
"default": false,
"type": "boolean"
},
"fail_under": {
"default": 75.0,
"description": "[composite] Certify score below this \u2192 FAIL.",
"type": "number"
},
"function": {
"description": "[wire_stubs] Public function name (e.g. 'compute_git_churn').",
"type": "string"
},
"intent": {
"description": "[composite/check/tests] Change intent.",
"type": "string"
},
"known_capabilities": {
"description": "[gate] Capability ids the project ships.",
"items": {
"type": "string"
},
"type": "array"
},
"left": {
"description": "[diff] First manifest as JSON string.",
"type": "string"
},
"left_path": {
"description": "[diff] Path to first manifest file.",
"type": "string"
},
"local_pkg_prefix": {
"description": "[gate] Dotted prefix for local packages.",
"type": "string"
},
"max_cyclomatic": {
"default": 10,
"description": "[guard] Max cyclomatic complexity.",
"minimum": 1,
"type": "integer"
},
"max_nodes": {
"default": 200,
"description": "[ast_scope] Maximum AST nodes to include.",
"type": "integer"
},
"min_certify_score": {
"default": 90,
"description": "[guard] Min certify score threshold.",
"maximum": 100,
"minimum": 0,
"type": "integer"
},
"module": {
"description": "[wire_stubs] a1 module stem (e.g. 'git_churn').",
"type": "string"
},
"name_top_n": {
"default": 10,
"description": "[cna] Top-N name matches.",
"type": "integer"
},
"nexus_intent": {
"description": "[ast_scope] Nexus lineage intent.",
"type": "string"
},
"overwrite": {
"default": false,
"description": "[guard] Overwrite existing guard files.",
"type": "boolean"
},
"package": {
"type": [
"string",
"null"
]
},
"package_subdir": {
"description": "[cna] Package subdirectory.",
"type": "string"
},
"project_root": {
"type": "string"
},
"project_roots": {
"description": "[ast_scope] One or more repo roots.",
"items": {
"type": "string"
},
"type": "array"
},
"proposed_body": {
"description": "[cna] Optional Python source for body-hash overlap.",
"type": "string"
},
"proposed_files": {
"description": "[composite/check] Files to change.",
"items": {
"type": "string"
},
"type": "array"
},
"proposed_name": {
"description": "[cna] Bare or dotted name of the proposed symbol.",
"type": "string"
},
"response": {
"description": "[gate] LLM response text to check.",
"type": "string"
},
"right": {
"description": "[diff] Second manifest as JSON string.",
"type": "string"
},
"right_path": {
"description": "[diff] Path to second manifest file.",
"type": "string"
},
"scope_threshold": {
"default": 8,
"description": "[check] Max files before scope warning.",
"type": "integer"
},
"skip_tests": {
"default": false,
"description": "[certify] Fast structural-only mode.",
"type": "boolean"
},
"source": {
"type": "string"
},
"source_file": {
"description": "[validate] Source file whose sidecar to validate.",
"type": "string"
},
"strict_mode": {
"default": false,
"description": "[guard] Block on ANY score drop.",
"type": "boolean"
},
"suggest_repairs": {
"default": false,
"type": "boolean"
},
"targets": {
"description": "[ast_scope] Full qualnames or suffixes to lock.",
"items": {
"type": "string"
},
"type": "array"
},
"ttl_secs": {
"default": 3600,
"description": "[ast_scope] Lock TTL in seconds.",
"type": "integer"
}
},
"required": [
"action"
],
"type": "object"
},
"name": "audit",
"schema_version": "atomadic-forge.audit/v4"
},
{
"description": "Use this when: you have an INTENT (one-line description of a new package) plus one or more SEED REPOS to harvest from, and want a shippable pip-installable package as output. Runs the full Phase 1 pipeline: emergent_swarm cross-repo composition discovery -> materialize top-N candidates into a tier-organized package -> optional certify run on the new package. Returns the create receipt (intent, seed_repos, scan_summary, materialize report, scan_report_path). The scan_report_path lets callers re-run materialize with different selections without re-scanning.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_create",
"input_schema": {
"additionalProperties": false,
"properties": {
"corroborate_with_call_graph": {
"default": true,
"description": "Corroborate candidates via AST call graph.",
"type": "boolean"
},
"cross_repo_bonus": {
"default": 15.0,
"description": "Score bonus for cross-repo compositions.",
"type": "number"
},
"domain_jump_required": {
"default": true,
"description": "Require cross-domain composition (default true).",
"type": "boolean"
},
"intent": {
"description": "One-line description of the package to assemble.",
"type": "string"
},
"out_dir": {
"description": "Where to write the new package (created if missing).",
"type": "string"
},
"package": {
"description": "Importable name of the new package (Python identifier).",
"type": "string"
},
"project_root": {
"type": "string"
},
"require_pure": {
"default": false,
"description": "Require pure functions only (no I/O).",
"type": "boolean"
},
"run_certify": {
"default": true,
"description": "Run certify on the new package after materialize.",
"type": "boolean"
},
"seed_repos": {
"description": "Paths to repos to scan as composition sources.",
"items": {
"type": "string"
},
"type": "array"
},
"swarm_max_depth": {
"default": 3,
"description": "emergent_swarm max composition depth (cap=23).",
"maximum": 23,
"minimum": 1,
"type": "integer"
},
"top_n": {
"default": 5,
"description": "Materialize the top-N candidates (default 5).",
"maximum": 50,
"minimum": 1,
"type": "integer"
}
},
"required": [
"intent",
"seed_repos",
"out_dir",
"package"
],
"type": "object"
},
"name": "create",
"schema_version": "atomadic-forge.create/v1"
},
{
"description": "Use this when: you need to understand, analyze, or discover patterns in a repo. action='recon' (default): maps every public symbol into the 5 monadic tiers. action='explain': plain-English orientation \u2014 one-liner, core flow, do_not_break. action='call_graph': AST BFS walk \u2014 callers/callees of a target symbol. action='call_graph_summary': whole-package portfolio \u2014 orphans, hotspots, max depth. action='smell_scan': CC monsters, long functions, dup bodies (smell_score 0-100). action='churn': file-level git churn \u2014 hotspot/stable files, avg/median commits. action='surface_gaps': find a1 entry points missing MCP or CLI wiring (the gap punch-list). action='capability_scout': search GitHub for repos matching capability queries. action='dead_code': find defined-but-unreferenced symbols (vulture synthesis). action='maintainability': compute Maintainability Index per module (radon MI). action='concept_bridge': convert harvest candidates below TAU_TRUST into synthesis plans. action='lineage': query the .atomadic-forge lineage log (mode=all/by_file/failed_for_area). action='harvest': cross-repo cherry-hunter \u2014 diffs target vs source repos, ranks graft candidates by trust-gated confidence (max-depth 23, no LLM). action='synergy': intra-repo scanner \u2014 finds CLI verbs / a3 features that compose well. action='scan': single-repo emergent compositions (top_n, include_chains). action='swarm': multi-repo portfolio emergent scan (N\u226423) \u2014 cross-repo bonus. All actions: no LLM invoked.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_explore",
"input_schema": {
"additionalProperties": false,
"properties": {
"action": {
"default": "recon",
"description": "'recon' \u2014 tier map; 'explain' \u2014 narrative; 'call_graph' \u2014 symbol graph; 'call_graph_summary' \u2014 package portfolio; 'smell_scan' \u2014 code smell; 'churn' \u2014 git file churn; 'surface_gaps' \u2014 wiring gap list; 'capability_scout' \u2014 find harvest targets; 'dead_code' \u2014 unreferenced symbols; 'maintainability' \u2014 MI per module; 'concept_bridge' \u2014 synthesis plans from harvest candidates; 'lineage' \u2014 audit log; 'harvest' \u2014 cross-repo grafts; 'synergy' \u2014 composition patterns; 'scan' \u2014 single-repo emergent; 'swarm' \u2014 multi-repo emergent.",
"enum": [
"recon",
"explain",
"call_graph",
"call_graph_summary",
"smell_scan",
"churn",
"surface_gaps",
"capability_scout",
"dead_code",
"maintainability",
"concept_bridge",
"lineage",
"harvest",
"synergy",
"scan",
"swarm",
"agent_plan"
],
"type": "string"
},
"area": {
"description": "[lineage] Required when mode='failed_for_area'.",
"type": "string"
},
"cc_threshold": {
"default": 10,
"description": "[smell_scan] Flag functions with CC > this.",
"type": "integer"
},
"corroborate_with_call_graph": {
"default": true,
"description": "[swarm] Cross-validate edges against call_graph.",
"type": "boolean"
},
"cross_repo_bonus": {
"default": 15.0,
"description": "[swarm] Score bonus per extra origin_repo.",
"type": "number"
},
"depth": {
"default": "agent",
"type": "string"
},
"direction": {
"default": "both",
"description": "[call_graph] Walk direction.",
"enum": [
"callers",
"callees",
"both"
],
"type": "string"
},
"domain_jump_required": {
"default": true,
"description": "[swarm] Require domain jump.",
"type": "boolean"
},
"file": {
"description": "[lineage] Required when mode='by_file'.",
"type": "string"
},
"include_chains": {
"default": false,
"description": "[scan] Include full chain + score_breakdown.",
"type": "boolean"
},
"include_details": {
"default": false,
"description": "[synergy] Include full detail blocks.",
"type": "boolean"
},
"loc_threshold": {
"default": 50,
"description": "[smell_scan] Flag functions with body LOC > this.",
"type": "integer"
},
"max_chains": {
"default": 5000,
"description": "[swarm] Max chains to evaluate.",
"type": "integer"
},
"max_depth": {
"default": 3,
"description": "[call_graph] BFS depth cap; [scan/swarm] chain depth cap.",
"maximum": 10,
"minimum": 1,
"type": "integer"
},
"min_score": {
"default": 30.0,
"description": "[capability_scout] Min harvest-confidence score to include.",
"type": "number"
},
"mode": {
"default": "all",
"description": "[lineage] Query mode.",
"enum": [
"all",
"by_file",
"failed_for_area"
],
"type": "string"
},
"package": {
"description": "[call_graph/smell_scan/synergy/scan] Package name.",
"type": "string"
},
"package_subdir": {
"description": "[smell_scan] Optional subdir under project_root.",
"type": "string"
},
"per_query": {
"default": 8,
"description": "[capability_scout] Max GitHub results per query (\u226430).",
"type": "integer"
},
"project_root": {
"type": "string"
},
"qualname": {
"description": "[call_graph] Target symbol qualname.",
"type": "string"
},
"queries": {
"description": "[capability_scout] Comma-separated or list of capability search queries.",
"items": {
"type": "string"
},
"type": [
"string",
"array"
]
},
"repos": {
"description": "[recon] list of repo paths (max 23); [swarm] list of {src_root, package} objects.",
"items": {
"type": "string"
},
"maxItems": 23,
"minItems": 1,
"type": "array"
},
"require_pure": {
"default": false,
"description": "[swarm] Require all symbols to be pure.",
"type": "boolean"
},
"since": {
"default": "",
"description": "[churn] Git date filter (e.g. '6 months ago'). Empty = all time.",
"type": "string"
},
"sources": {
"description": "[harvest] Source repos. Max 23.",
"items": {
"type": "string"
},
"maxItems": 23,
"minItems": 1,
"type": "array"
},
"src_only": {
"default": true,
"description": "[churn/call_graph_summary] Restrict to src/ files only.",
"type": "boolean"
},
"target": {
"description": "[recon/harvest] Repo path.",
"type": "string"
},
"top_n": {
"default": 10,
"description": "[synergy/scan/swarm] Max candidates returned.",
"type": "integer"
},
"top_n_findings": {
"default": 20,
"description": "[smell_scan] Cap findings per category (0=unlimited).",
"type": "integer"
}
},
"type": "object"
},
"name": "explore",
"schema_version": "atomadic-forge.explore/v5"
},
{
"description": "Use this when: managing the multi-agent hive, coordinating consensus, or recording agent handoffs and enhancement proposals. Lifecycle: action='register' \u2014 declare an agent's lane (role, capabilities, write_lanes, subscribes_to), max-depth 23. action='list' \u2014 see all agents. action='deactivate' \u2014 graceful shutdown. action='observe' \u2014 pull events since cursors. Consensus: action='propose' \u2014 open a cross-agent proposal (returns consensus_id). action='vote' \u2014 cast a vote (approve|reject|refine|abstain). action='needs_vote' \u2014 proposals awaiting your vote. action='result' \u2014 current verdict; record=true freezes it. action='recap' \u2014 full lifecycle of one consensus. Session: action='handoff_create' \u2014 write a structured agent-to-agent transfer; axiom_guard_status must be PASS|QUARANTINE. action='handoff_list' \u2014 recent handoffs. action='enhance_propose' \u2014 record a tool/feature proposal for human review. action='enhance_list' \u2014 read prior proposals. All actions are pure: no LLM.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_hive",
"input_schema": {
"additionalProperties": false,
"properties": {
"action": {
"description": "Lifecycle: register|list|deactivate|observe. Consensus: propose|vote|needs_vote|result|recap. Session: handoff_create|handoff_list|enhance_propose|enhance_list.",
"enum": [
"register",
"list",
"deactivate",
"observe",
"propose",
"vote",
"needs_vote",
"result",
"recap",
"handoff_create",
"handoff_list",
"enhance_propose",
"enhance_list"
],
"type": "string"
},
"agent_name": {
"description": "[register/deactivate/observe/needs_vote/handoff] Agent name.",
"type": "string"
},
"axiom_guard_status": {
"default": "PASS",
"enum": [
"PASS",
"QUARANTINE"
],
"type": "string"
},
"capabilities": {
"items": {
"type": "string"
},
"type": "array"
},
"consensus_id": {
"description": "[vote/result/recap] Target consensus id.",
"type": "string"
},
"description": {
"description": "[enhance_propose] Description.",
"type": "string"
},
"evidence": {
"items": {
"type": "string"
},
"type": "array"
},
"files_created": {
"items": {
"type": "string"
},
"type": "array"
},
"files_modified": {
"items": {
"type": "string"
},
"type": "array"
},
"identity_claim": {
"type": [
"string",
"null"
]
},
"include_deactivated": {
"default": false,
"type": "boolean"
},
"intent": {
"description": "[propose/enhance_propose] Intent.",
"type": "string"
},
"key_context": {
"type": "string"
},
"limit": {
"default": 50,
"maximum": 500,
"minimum": 1,
"type": "integer"
},
"notes": {
"type": [
"string",
"null"
]
},
"payload": {
"description": "[propose] Optional payload.",
"type": "object"
},
"pending_tasks": {
"items": {
"type": "string"
},
"type": "array"
},
"project_root": {
"type": "string"
},
"proposer": {
"description": "[propose] Proposing agent name.",
"type": "string"
},
"rationale": {
"description": "[vote] Optional rationale.",
"type": [
"string",
"null"
]
},
"record": {
"default": false,
"description": "[result] Freeze the verdict when true.",
"type": "boolean"
},
"role": {
"description": "[register] forge|cognition|doc|research|<custom>",
"type": "string"
},
"session_id": {
"type": [
"string",
"null"
]
},
"since_consensus_id": {
"type": [
"string",
"null"
]
},
"since_wisdom_id": {
"type": [
"string",
"null"
]
},
"subscribes_to": {
"items": {
"type": "string"
},
"type": "array"
},
"test_results": {
"additionalProperties": false,
"properties": {
"failed": {
"minimum": 0,
"type": "integer"
},
"passed": {
"minimum": 0,
"type": "integer"
},
"skipped": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"title": {
"description": "[enhance_propose] Proposal title.",
"type": "string"
},
"trust_threshold": {
"default": 0.75,
"maximum": 1.0,
"minimum": 0.0,
"type": "number"
},
"vote": {
"description": "[vote] Vote value.",
"enum": [
"approve",
"reject",
"refine",
"abstain"
],
"type": "string"
},
"voter": {
"description": "[vote] Voting agent name.",
"type": "string"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
},
"work_completed": {
"items": {
"type": "string"
},
"type": "array"
},
"write_lanes": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"action"
],
"type": "object"
},
"name": "hive",
"schema_version": "atomadic-forge.hive/v4"
},
{
"description": "Use this when: you need low-level AST inspection or repo-structure reads that are too fine-grained for explore or audit. action='body': extract the full source body of a named function or class. action='symbol': extract a named symbol (with its imports) from a source file. action='class_signals': detect class-level signals (abstract, dataclass, protocol, etc.). action='ast_scope_blueprint': build a multi-repo AST scope blueprint (node set + import graph) for deterministic edit planning. action='mint_ast_locks': mint time-bounded edit locks from an existing blueprint. action='add_node': add a node to an existing AST scope (returns updated blueprint). action='classify_repo_layout': detect how a repo is organized (monadic, src-layout, flat, poetry, etc.). action='fingerprint_repo': SHA-256 normalized-AST fingerprint per a1 module (idempotent content hash, not file hash). action='synthesis_plan': extract an actionable synthesis plan from harvest candidates below TAU_TRUST. action='swarm_repo_specs': build batch repo-spec list for multi-repo operations (input to emergent_swarm / harvest). All actions: no LLM invoked.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_inspect",
"input_schema": {
"additionalProperties": false,
"properties": {
"action": {
"description": "'body' \u2014 extract function/class source; 'symbol' \u2014 extract named symbol + imports; 'class_signals' \u2014 detect abstract/dataclass/protocol; 'ast_scope_blueprint' \u2014 multi-repo AST scope for edit planning; 'mint_ast_locks' \u2014 time-bounded edit locks from blueprint; 'add_node' \u2014 add node to existing AST scope; 'classify_repo_layout' \u2014 detect repo layout style; 'fingerprint_repo' \u2014 SHA-256 AST fingerprint per module; 'synthesis_plan' \u2014 synthesis plan from harvest candidates; 'swarm_repo_specs' \u2014 build batch repo specs.",
"enum": [
"body",
"symbol",
"class_signals",
"ast_scope_blueprint",
"mint_ast_locks",
"add_node",
"classify_repo_layout",
"fingerprint_repo",
"synthesis_plan",
"swarm_repo_specs"
],
"type": "string"
},
"agent_ids": {
"description": "[ast_scope_blueprint/mint_ast_locks] Agent ids.",
"items": {
"type": "string"
},
"type": "array"
},
"blueprint": {
"description": "[mint_ast_locks] Serialized blueprint (JSON string).",
"type": "string"
},
"candidates": {
"description": "[synthesis_plan] Harvest candidate objects.",
"items": {
"type": "object"
},
"type": "array"
},
"language": {
"description": "[body] Source language.",
"enum": [
"python",
"javascript",
"typescript"
],
"type": "string"
},
"max_nodes": {
"default": 200,
"description": "[ast_scope_blueprint] Max AST nodes to include.",
"type": "integer"
},
"node": {
"description": "[add_node] Node dict to add to scope.",
"type": "object"
},
"project_root": {
"type": "string"
},
"project_roots": {
"description": "[ast_scope_blueprint] Repo root paths.",
"items": {
"type": "string"
},
"type": "array"
},
"repo_paths": {
"description": "[swarm_repo_specs] Comma-separated repo paths.",
"type": "string"
},
"source_file": {
"description": "[symbol] Path to source file.",
"type": "string"
},
"source_path": {
"description": "[body] Absolute path to source file.",
"type": "string"
},
"symbol_name": {
"description": "[body/symbol] Name of the function or class.",
"type": "string"
},
"target": {
"description": "[class_signals] Path or module to inspect.",
"type": "string"
},
"targets": {
"description": "[ast_scope_blueprint/mint_ast_locks] Qualnames to lock.",
"items": {
"type": "string"
},
"type": "array"
},
"ttl_secs": {
"default": 3600,
"description": "[ast_scope_blueprint/mint_ast_locks] Lock TTL (seconds).",
"type": "integer"
}
},
"required": [
"action"
],
"type": "object"
},
"name": "inspect",
"schema_version": "atomadic-forge.inspect/v1"
},
{
"description": "Use this when: driving an LLM-guided iteration session against the repo. Forge has no embedded LLM \u2014 these actions return prompts you feed to your own LLM, then the response comes back here for the next round. action='iterate': scaffold a package and emit the first LLM prompt; returns session_id for resume. action='resume': feed the LLM's response back; advances the session and returns either the next prompt or the final result. action='evolve': start a recursive multi-round session (rounds, max-depth 23 system cap, stop_on_regression). action='evolve_step': advance the active evolve round.",
"handler_qualname": "atomadic_forge.a1_at_functions.mcp_protocol._tool_loop",
"input_schema": {
"additionalProperties": false,
"properties": {
"action": {