Skip to content

Commit b80cb49

Browse files
hyperpolymathclaude
andcommitted
FAQs + grammar v0.3.0: design archaeology from 2026-03-24 session
7 FAQ documents capturing design decisions with attribution: - architecture.adoc — Harvard, Six Pillars, Layer model, given/traces - type-system.adoc — Kategoria levels, why Idris2/not Agda/not ATS2, OCaml - token-economics.adoc — Five Facets, @Budget, @neural, reversible tokens - verification.adoc — ECHIDNA micro/full via Groove, proof caching, echidnabot - landscape.adoc — Quasar, LMQL, DSPy, MCP, Ronacher analysis - language-family.adoc — 007/Eclexia/Ephapax/JTV/Oblibeny convergence - meta.adoc — VeriSimDB migration plan, attribution methodology Each FAQ tracks: who proposed, who decided, course changes and why. The FAQs themselves are a Layer 4 decision trace of the design process. Grammar v0.3.0 (spec/grammar.ebnf) also in this commit: - Sections 18-19 (token economics + Kategoria types) - Invariants 4 (Economic) and 5 (Kategoria Harvard separation) - Duplicate productions resolved with section cross-references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5fbf601 commit b80cb49

8 files changed

Lines changed: 718 additions & 0 deletions

File tree

docs/faq/README.adoc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
2+
// Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath)
3+
4+
= 007 Design FAQs
5+
:toc: macro
6+
7+
[.lead]
8+
Frequently asked questions arising from design conversations between
9+
Jonathan D.A. Jewell and Claude (Opus 4.6). These capture not just answers
10+
but *who proposed what*, *when we changed course*, and *why*.
11+
12+
Intended to migrate to a dedicated private VeriSimDB instance for
13+
queryable design archaeology.
14+
15+
toc::[]
16+
17+
== Index
18+
19+
[cols="1,3,1"]
20+
|===
21+
| File | Topic | Date
22+
23+
| link:architecture.adoc[architecture.adoc]
24+
| Harvard Architecture, Six Pillars, Layer model
25+
| 2026-03-22 → 2026-03-24
26+
27+
| link:type-system.adoc[type-system.adoc]
28+
| Kategoria levels, TypeLL, why Idris2 not Agda/ATS2, OCaml role
29+
| 2026-03-24
30+
31+
| link:token-economics.adoc[token-economics.adoc]
32+
| Five Facets, @budget, @neural, speculative, cached, reversible tokens
33+
| 2026-03-24
34+
35+
| link:verification.adoc[verification.adoc]
36+
| ECHIDNA micro/full, Groove routing, Agda as proof oracle, proof caching
37+
| 2026-03-24
38+
39+
| link:landscape.adoc[landscape.adoc]
40+
| Quasar, LMQL, DSPy, MCP, Ronacher — what exists, what doesn't
41+
| 2026-03-24
42+
43+
| link:language-family.adoc[language-family.adoc]
44+
| 007/Eclexia/Ephapax/JTV/Oblibeny convergence, computation-as-X thesis
45+
| 2026-03-24
46+
47+
| link:meta.adoc[meta.adoc]
48+
| About these FAQs, VeriSimDB migration plan, decision attribution methodology
49+
| 2026-03-24
50+
|===

docs/faq/architecture.adoc

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
2+
= Architecture FAQs
3+
4+
== Q: What is the Harvard Architecture in 007?
5+
6+
*Origin:* JTV (Julia-the-Viper), designed by Jewell.
7+
*Adopted into 007:* 2026-03-22, during genesis session.
8+
9+
The grammar separates computation into two sublanguages:
10+
11+
- **Data Language** — total, pure, addition-only. Guaranteed to terminate.
12+
Cannot contain control flow. Evaluated deterministically by CPU.
13+
- **Control Language** — Turing-complete, effectful. Where agent behaviour
14+
lives. Evaluated by LLM inference (costs tokens).
15+
16+
The grammar itself prevents crossing the boundary. Agent injection is a
17+
parse error, not a runtime check.
18+
19+
*Decision by:* Jewell (proposed JTV's architecture as foundation).
20+
Claude (identified dual role: safety + epistemological).
21+
22+
== Q: Why does the Harvard Architecture have two roles?
23+
24+
*Discovered:* 2026-03-22, hermeneutic dimension entry.
25+
*Proposed by:* Claude.
26+
27+
1. **Safety** — prevents injection (original JTV purpose)
28+
2. **Epistemological** — structures the hermeneutic act by separating what
29+
agents KNOW (Data) from what agents DO (Control), making interpretation
30+
observable
31+
32+
You can only study how agents interpret data if data and control are cleanly
33+
separated. Otherwise, interpretation and execution blur and become
34+
unobservable. The Harvard Architecture is the precondition for Layer 4.
35+
36+
*Course change:* Initially seen only as a security mechanism. Reframed as
37+
the epistemological foundation when Layer 4 was identified.
38+
39+
== Q: What are the six pillars?
40+
41+
*Proposed by:* Jewell and Claude collaboratively, 2026-03-22.
42+
43+
1. **Harvard Architecture** (JTV) — data/control separation
44+
2. **Actor Model** (Elixir/BEAM) — agents as supervised processes
45+
3. **Capability Security** (Pony/E) — compile-time permissions
46+
4. **Session Types** (academic PLT) — typed communication protocols
47+
5. **Linear Handles** (Ephapax) — no leaked or duplicated agents
48+
6. **Choreographic Compilation** (Chor-lambda) — global→local projection
49+
50+
Each addresses a specific failure mode. None is individually novel; the
51+
synthesis is.
52+
53+
== Q: What is the Layer model?
54+
55+
[cols="1,2,3"]
56+
|===
57+
| Layer | Formalism | Status
58+
59+
| 1. Grammar | EBNF | Specified (v0.3.0)
60+
| 2. Types | 10-layer TypeLL + Kategoria | Specified (outline)
61+
| 3. Operational Semantics | Small-step reduction | Specified
62+
| 4. Interpretive Semantics | _(Novel — no existing formalism)_ | Provisional by design
63+
|===
64+
65+
*Key discovery:* `branch` is the ONLY nondeterministic construct. Layer 4
66+
has a small, precise surface area. Discovered while writing Layer 3 spec.
67+
68+
*Proposed by:* Layer 4 concept — Jewell (de Man parabasis, Wittgenstein
69+
ladder). Layer 4 localisation to `branch` — Claude (during operational
70+
semantics drafting).
71+
72+
== Q: What is the `given` clause?
73+
74+
*Proposed by:* Jewell (Position C in telescope entry, 2026-03-22).
75+
76+
The `given` clause declares what information is RELEVANT to a branch choice.
77+
Properties:
78+
79+
- Data expressions only (Harvard-separated, cannot contain control flow)
80+
- May overlap between branches (shared evidence)
81+
- Not exhaustive (agent may consider unlisted information)
82+
- Part of the branch's TYPE (changing what's given changes the type)
83+
- Predicates are SUGGESTIONS, not guards — agent may override
84+
85+
The agent reads the `given` and interprets. The `given` structures
86+
interpretation without determining it. This is de Man's parabasis — the
87+
ability to turn away from the suggested reading.
88+
89+
== Q: What are decision traces?
90+
91+
*Proposed by:* Jewell (telescope metaphor). Formalised by Claude.
92+
93+
Every `traced` branch produces an immutable Data record:
94+
- Branch options available
95+
- `given` context for each arm
96+
- Which arm was chosen
97+
- The `trace` self-report (agent's stated reasoning)
98+
- Timestamp, agent ID, full hermeneutic context
99+
100+
Traces are Data (Harvard-separated). Cannot be tampered with after creation.
101+
The observation must not disturb the phenomenon.
102+
103+
*Purpose:* Not logging. Scientific instrumentation for discovering Layer 4.
104+
Decision traces are the raw dataset through which the structure of agent
105+
interpretive acts might become visible. The telescope.

docs/faq/landscape.adoc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
2+
= Landscape FAQs — Who Else Is Working on This?
3+
4+
== Q: Are Quasar and LMQL "agent-first" languages?
5+
6+
*Question by:* Jewell (2026-03-24).
7+
*Answer:* No. They're designed for agents as *users of tools*, not as
8+
*participants in a computational economy*.
9+
10+
**Quasar** (Mell et al., arXiv 2506.12202): Agents write Python, it
11+
transpiles to Quasar for faster/safer execution. The agent is the *writer*,
12+
Quasar is the *runtime target*. No theory of what agents need — just
13+
pragmatic parallelism + uncertainty quantification.
14+
15+
**LMQL** (ETH Zurich): Steers LLM *generation* with constraints. The agent
16+
is being *controlled*, not programming other agents. About output quality,
17+
not agent-to-agent interaction.
18+
19+
Neither has session types, choreographies, Harvard separation, hermeneutic
20+
traces, or any theory of WHY agent computation is fundamentally different.
21+
They're tools for agents. 007 is a language *of* agents.
22+
23+
== Q: What does the competitive landscape look like?
24+
25+
*Researched by:* Claude (2026-03-24, web search).
26+
27+
[cols="1,1,1,1,1,1,1"]
28+
|===
29+
| | Grammar | Types | Harvard | Traces | Choreo | Token Econ
30+
31+
| Quasar | No | No | No | No | No | Parallelism
32+
| LMQL | Partial | Constraints | No | No | No | Constraint masking
33+
| DSPy | No | No | No | Logging | No | Prompt compilation
34+
| MCP | No | Schema | No | No | No | No
35+
| LangGraph | No | No | No | No | No | No
36+
| **007** | **Full EBNF** | **10-level** | **Core** | **Hermeneutic** | **Choreo-lambda** | **Five Facets**
37+
|===
38+
39+
Nobody has the full synthesis.
40+
41+
== Q: What did Armin Ronacher observe?
42+
43+
*Source:* Blog post "A Language For Agents" (February 2026).
44+
45+
Key points:
46+
- Agents struggle with type inference — need explicit types
47+
- Whitespace-based indentation is token-hostile
48+
- Languages in LLM training weights are easier for agents to write
49+
- New languages CAN succeed if designed for agent ergonomics
50+
51+
He asked the right question without building a language. 007 answers it.
52+
53+
== Q: Is anyone else combining formal PL design with token economics?
54+
55+
*Searched by:* Claude (2026-03-24).
56+
*Result:* Nothing found.
57+
58+
The economics literature discusses token pricing for platforms. The PL
59+
literature discusses resource types. Nobody appears to have connected
60+
them — treating inference tokens as a linear resource governed by a type
61+
system within a formally specified agent language.
62+
63+
If this synthesis exists elsewhere, we haven't found it.

docs/faq/language-family.adoc

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
2+
= Language Family FAQs
3+
4+
== Q: How do the five languages converge?
5+
6+
*Observed by:* Jewell (2026-03-24, "this is the aggregation of my
7+
thinking more generally on languages").
8+
*Mapped by:* Claude (Five Facets table).
9+
10+
Each language was designed independently for a different purpose. They
11+
converge on one question: what is computation when agents consume it?
12+
13+
- **007** — agents interpret, choose, trace decisions
14+
- **Eclexia** — computation has measurable cost (energy, time, carbon, tokens)
15+
- **Ephapax** — computation is physical matter (consumed once, linear)
16+
- **JTV** — some computation is free (total, deterministic, governed)
17+
- **Oblibeny** — computation is reversible (undo, reduce, minimize)
18+
19+
Each maps to a 007 grammar construct:
20+
21+
- 007 → `branch` / `given` / `traced`
22+
- Eclexia → `@budget(N)` / model-routing locales
23+
- Ephapax → `linear` / `@graded(N)` / `@focus(N)`
24+
- JTV → Data Language (free) vs Control Language (costs tokens)
25+
- Oblibeny → `reversible` / `cached` / `reverse`
26+
27+
== Q: Why is 007 a standalone repo, not in nextgen-languages?
28+
29+
*Decision by:* Jewell (2026-03-22).
30+
31+
Privacy requirement. Other AI models (Gemini, etc.) might scrape the spec
32+
and generate low-quality agent swarms from a half-understood design. The
33+
Harvard Architecture safety guarantees need to be inextricable from the
34+
language before public exposure.
35+
36+
Pointer card remains at `nextgen-languages/languages/007.md`.
37+
38+
== Q: What is the relationship between 007 and TypeLL?
39+
40+
TypeLL defines the 10-level type safety hierarchy. 007 implements it.
41+
42+
007's type_expr in grammar v0.3.0 maps each TypeLL level to concrete
43+
syntax. TypeLL is the theory; 007 is (one) application. Kategoria is the
44+
research project that explores multiple routes to implementing all 10 levels.
45+
46+
== Q: How did the son explain it?
47+
48+
*Date:* 2026-03-24. Jewell's son summarised the project.
49+
50+
**What he nailed (~85-90% accurate):**
51+
52+
- Syntax can be huge because agents don't care (humans are the bottleneck)
53+
- De Man parabasis — same syntax, different meanings depending on context
54+
- LLMs read hermeneutically (lawyer/engineer/four-year-old example)
55+
- Type safety as the third pillar constraining the interpretive space
56+
- 10 acknowledged levels vs ~16 with frontier research
57+
- Convergence of Ephapax, Eclexia, JTV
58+
- "Utterly INSANE if it works"
59+
60+
**Slight imprecisions:**
61+
62+
- Said "Eclexia as code as matter" — Eclexia is economics, Ephapax is
63+
matter (adjacent facets, easy to confuse)
64+
- "Tokens no longer cost anything" — overstated but directionally correct
65+
for reversible + cached computation (bounded total cost, not zero)
66+
- TypeScript level count slightly compressed
67+
68+
**Assessment by Claude:** "The fact that he's tracking the de Man reference
69+
and connecting it to type theory is genuinely impressive."

docs/faq/meta.adoc

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
// SPDX-License-Identifier: PMPL-1.0-or-later
2+
= Meta FAQs — About These FAQs
3+
4+
== Q: What is the purpose of these FAQs?
5+
6+
Three purposes:
7+
8+
1. **Design archaeology** — who proposed what, when we changed course, why
9+
we took a different route
10+
2. **Layer 4 data about our own design process** — the FAQs are themselves
11+
a decision trace of the human-AI collaboration that created 007
12+
3. **Onboarding** — if 007 ever becomes public, these explain the reasoning
13+
behind non-obvious design choices
14+
15+
== Q: How is attribution tracked?
16+
17+
Each FAQ entry notes:
18+
19+
- **Proposed by:** who first raised the idea (Jewell or Claude)
20+
- **Decision by:** who made the final call (always Jewell for design
21+
decisions; Claude for mechanical implementation choices)
22+
- **Course change:** if we changed direction, what triggered it and when
23+
24+
This is important because it answers the Frum question — "is the AI just
25+
reflecting back what the human said?" The answer is testable: if the
26+
attributions show genuinely different contributions (e.g., Jewell proposed
27+
de Man, Claude proposed Galileo's telescope — different metaphors for the
28+
same insight), then it's convergence, not reflection.
29+
30+
== Q: VeriSimDB migration plan
31+
32+
These FAQs are currently stored as AsciiDoc files in `007-lang/docs/faq/`.
33+
The plan is to migrate them to a dedicated private VeriSimDB instance:
34+
35+
**Why VeriSimDB:**
36+
37+
- Queryable — "show me all decisions where we changed course"
38+
- Temporal — "what did we believe about X on date Y"
39+
- Cross-project — can link 007 FAQs to Eclexia, Ephapax, Kategoria decisions
40+
- Versioned — VeriSimDB's octad model tracks changes over time
41+
- Machine-readable — agents can query the FAQ database programmatically
42+
43+
**Instance plan:**
44+
45+
[cols="1,2"]
46+
|===
47+
| Setting | Value
48+
49+
| Repo | `hyperpolymath/design-archaeology` (private)
50+
| Port | TBD (check PORT-REGISTRY.md)
51+
| Volume | `/mnt/eclipse/verisimdb/design-archaeology`
52+
| Scope | All hyperpolymath design decisions (not just 007)
53+
| Access | Claude-only until mature (same policy as 007 itself)
54+
|===
55+
56+
**Schema (tentative):**
57+
58+
Each FAQ entry becomes a VeriSimDB octad:
59+
- `question` — the FAQ question
60+
- `answer` — the answer text
61+
- `proposed_by` — who raised it (human / claude / collaborative)
62+
- `decided_by` — who made the call
63+
- `date` — when
64+
- `project` — which project(s) this relates to
65+
- `superseded_by` — if this decision was later changed
66+
- `tags` — searchable tags (architecture, types, economics, etc.)
67+
68+
**Timeline:** After current 007 sprint. Not urgent — the AsciiDoc files
69+
capture the content. VeriSimDB adds queryability and cross-project linking.
70+
71+
== Q: What is the decision attribution methodology?
72+
73+
When recording who proposed what:
74+
75+
1. **"Proposed by: Jewell"** — the idea originated from the human, possibly
76+
in response to a question but with substance not derivable from the question
77+
2. **"Proposed by: Claude"** — the idea originated from the AI, not directly
78+
prompted by the human's immediate statement
79+
3. **"Proposed by: collaborative"** — genuinely co-created, neither party
80+
could have reached it alone
81+
4. **"Decision by: Jewell"** — all design decisions are ultimately human
82+
decisions. Claude proposes; Jewell disposes.
83+
5. **"Course change"** — records when a prior decision was revised, who
84+
triggered the revision, and why
85+
86+
The goal is not credit — it's *traceability*. Understanding which ideas
87+
came from which source helps evaluate the quality of human-AI collaboration
88+
and may reveal patterns about when each party contributes most effectively.
89+
90+
This is itself a Layer 4 question: the FAQs are a decision trace of the
91+
design process, and analysing the attribution patterns is a form of
92+
hermeneutic analysis of that trace.

0 commit comments

Comments
 (0)