Skip to content

Commit 1529852

Browse files
Jonathan D.A. Jewellclaude
andcommitted
refactor: consolidate SCM files to .machine_readable/ directory
- Move all 6 SCM files (STATE, META, ECOSYSTEM, AGENTIC, NEUROSYM, PLAYBOOK) from root to .machine_readable/ - Add LANGUAGES.scm to .machine_readable/ - Create AI.a2ml pointer file documenting structure - Remove root duplicates (old stubs in .machine_readable/ replaced with full content) All SCM files now in canonical location: .machine_readable/ Eliminates confusion about which version is authoritative. Structure documented in AI.a2ml: - 10 core languages (submodules) - 4 DSL repos (external links) - Companion tools Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 81db44c commit 1529852

8 files changed

Lines changed: 1709 additions & 106 deletions

File tree

.machine_readable/AGENTIC.scm

Lines changed: 179 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,181 @@
11
;; SPDX-License-Identifier: PMPL-1.0-or-later
2-
;; AGENTIC.scm - AI agent interaction patterns for nextgen-languages
3-
4-
(define agentic-config
5-
`((version . "1.0.0")
6-
(claude-code
7-
((model . "claude-opus-4-5-20251101")
8-
(tools . ("read" "edit" "bash" "grep" "glob"))
9-
(permissions . "read-all")))
2+
;; SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell
3+
4+
;;; AGENTIC.scm — Agent-Oriented Language Specifications
5+
;;; nextgen-languages
6+
;;; Reference: https://github.com/hyperpolymath/nextgen-languages
7+
8+
(define-module (nextgen-languages agentic)
9+
#:export (agent-languages
10+
agent-capabilities
11+
safety-constraints
12+
interaction-patterns))
13+
14+
;;;============================================================================
15+
;;; AGENT LANGUAGES
16+
;;; Languages designed for AI agent development
17+
;;;============================================================================
18+
19+
(define agent-languages
20+
'((primary-agent-languages
21+
((Ensemble
22+
((focus . "AI as first-class language component")
23+
(agent-features
24+
((ai-model-definition . "ai_model { provider, capabilities, constraints }")
25+
(prompt-construction . "prompt { template, variables, validation }")
26+
(effect-tracking . "AI<T> effect type for AI operations")
27+
(multi-agent . "Spawn and coordinate multiple AI agents")))
28+
(safety
29+
((output-validation . "Type-checked AI outputs")
30+
(rate-limiting . "Built-in rate limiting primitives")
31+
(fallback-chains . "Graceful degradation patterns")))))
32+
33+
(Phronesis
34+
((focus . "Ethical framework specification for agents")
35+
(agent-features
36+
((value-declaration . "Explicit value hierarchies")
37+
(constraint-specification . "Deontic logic constraints")
38+
(decision-audit . "EVALUATE() for traceable decisions")
39+
(constitutional-ai . "Formal constitutional specifications")))
40+
(safety
41+
((transparency . "All decisions traceable to values")
42+
(override-prevention . "Formal proofs against value override")
43+
(audit-trail . "Complete decision logging")))))))
44+
45+
(agent-support-languages
46+
((Duet
47+
((role . "AI-assisted development")
48+
(features
49+
((@synth . "AI synthesis with verification")
50+
(@verify . "Formal verification of AI output")
51+
(intent . "Natural language intent specification")))
52+
(agent-interaction . "Human-AI pair programming")))
53+
54+
(WokeLang
55+
((role . "Human-agent interaction")
56+
(features
57+
((consent . "Explicit consent for agent actions")
58+
(reassurance . "Supportive agent communication")
59+
(accessibility . "Inclusive agent interfaces")))
60+
(agent-interaction . "User-friendly agent UX")))))))
61+
62+
;;;============================================================================
63+
;;; AGENT CAPABILITIES
64+
;;; Standardized agent capability definitions
65+
;;;============================================================================
66+
67+
(define agent-capabilities
68+
'((capability-taxonomy
69+
((perception
70+
((text-understanding . "Process and understand text input")
71+
(code-analysis . "Analyze and understand code")
72+
(multimodal . "Process images, audio, other modalities")))
73+
74+
(reasoning
75+
((logical-inference . "Formal logical reasoning")
76+
(planning . "Multi-step plan generation")
77+
(verification . "Verify correctness of solutions")))
78+
79+
(action
80+
((code-generation . "Generate correct code")
81+
(code-modification . "Safely modify existing code")
82+
(tool-use . "Invoke external tools and APIs")))
83+
84+
(communication
85+
((explanation . "Explain reasoning clearly")
86+
(teaching . "Adapt to user's level")
87+
(collaboration . "Work alongside humans")))))
88+
89+
(capability-levels
90+
((L0-reactive . "Stimulus-response only")
91+
(L1-deliberative . "Single-step reasoning")
92+
(L2-planning . "Multi-step planning")
93+
(L3-learning . "Learn from interaction")
94+
(L4-autonomous . "Self-directed goal pursuit")))))
95+
96+
;;;============================================================================
97+
;;; SAFETY CONSTRAINTS
98+
;;; Safety requirements for agent-oriented languages
99+
;;;============================================================================
100+
101+
(define safety-constraints
102+
'((hard-constraints
103+
((no-harm . "Agent must not cause harm to users or systems")
104+
(transparency . "Agent actions must be explainable")
105+
(consent . "Agent must respect user consent")
106+
(reversibility . "Prefer reversible actions")
107+
(human-override . "Human can always interrupt/override")))
108+
109+
(language-enforced
110+
((Ensemble
111+
((constraint . "AI effects are tracked in type system")
112+
(enforcement . "Compile-time verification of AI boundaries")))
113+
(Phronesis
114+
((constraint . "All decisions trace to declared values")
115+
(enforcement . "Formal proof of value alignment")))
116+
(Oblíbený
117+
((constraint . "Guaranteed termination")
118+
(enforcement . "Turing-incomplete by design")))))
119+
10120
(patterns
11-
((code-review . "thorough")
12-
(refactoring . "conservative")
13-
(testing . "comprehensive")))
14-
(constraints
15-
((languages . ())
16-
(banned . ("typescript" "go" "python" "makefile"))))))
121+
((sandbox-execution
122+
((description . "Run agent code in isolated sandbox")
123+
(implementation . "WASM isolation, capability-based security")))
124+
125+
(capability-tokens
126+
((description . "Explicit capability grants for agent actions")
127+
(implementation . "Linear types for one-time permissions")))
128+
129+
(audit-logging
130+
((description . "Complete log of agent decisions")
131+
(implementation . "Append-only log with cryptographic integrity")))))))
132+
133+
;;;============================================================================
134+
;;; INTERACTION PATTERNS
135+
;;; Standard patterns for agent interaction
136+
;;;============================================================================
137+
138+
(define interaction-patterns
139+
'((human-agent
140+
((pair-programming
141+
((description . "Human and AI collaborate on code")
142+
(language . Duet)
143+
(pattern . "Human provides intent, AI synthesizes, human verifies")))
144+
145+
(guided-exploration
146+
((description . "Agent guides user through learning")
147+
(language . WokeLang)
148+
(pattern . "Agent suggests, asks consent, explains outcomes")))
149+
150+
(ethical-consultation
151+
((description . "Human queries agent's ethical reasoning")
152+
(language . Phronesis)
153+
(pattern . "Human poses scenario, agent explains value application")))))
154+
155+
(agent-agent
156+
((orchestration
157+
((description . "One agent coordinates others")
158+
(language . Ensemble)
159+
(pattern . "Orchestrator dispatches tasks, aggregates results")))
160+
161+
(verification-chain
162+
((description . "Agents verify each other's work")
163+
(language . Duet)
164+
(pattern . "Generator → Verifier → Arbiter")))
165+
166+
(consensus
167+
((description . "Multiple agents reach agreement")
168+
(language . Phronesis)
169+
(pattern . "Propose → Evaluate → Vote → Commit")))))
170+
171+
(agent-system
172+
((tool-invocation
173+
((description . "Agent uses external tools")
174+
(pattern . "Request → Permission check → Execute → Validate result")))
175+
176+
(resource-management
177+
((description . "Agent manages system resources")
178+
(language . Eclexia)
179+
(pattern . "Budget → Allocate → Use → Release → Account")))))))
180+
181+
;;; End of AGENTIC.scm

0 commit comments

Comments
 (0)