37 Commits

Author SHA1 Message Date
Claude
2a2b698fb4
ada: cut to a border-only gate; delete the wrong organ/cognition modeling
Ada is the D1 border, not the body. Removed everything that pretended otherwise
and completed the real gate so it builds, links, and passes its tests.

Deleted (wrong/defunct/superseded):
- ada_medium.adb (defunct medium, header commented 'WRONG'; replaced by Ichor)
- sockets.{ads,adb} (empty package with an illegal body)
- bbb-bludbrenburier.ads ('this is filler'); invariants-architecture.cobol ('idk cobol')
- tests/soul_tests.adb, tests/cycle_tests.adb (exercise a Soul.Tarot/State/Ada_Medium
  subsystem that does not exist -- the old 56-card/Big-3 design, superseded)

mafiabot_types -> border-only: organs aren't Ada (organs are R/Octave/Pony/Guile),
so drop Organ_Id; drop Cycle_Step (cognition) and the fixed-point Drive/Ratio/
Cost/Axis numerics (drive/affect math lives in the organs, in floats). Keep the
source/trust tag (Provenance_Tag), Operation_Status, and a bounded payload --
content is pre-digested into RAG context upstream, so the gate scans a bounded
buffer for prompt-injection rather than streaming raw input.

trust_boundary: Organ_Message -> Border_Message {Provenance, Payload} (Ada does
not route by organ -- that's Ichor); add the D1 body (blocklist scan, provenance,
rate limit, Trust_Guard) -- the unit Ichor's barrier FFI targets.
Add mafiabot_types.adb. Fix mafiabot_core.gpr (drop phantom dirs + nonexistent
mafiabot.adb main). alire.toml: drop unused gnat_sockets/spark_lemmas.

Builds clean on GNAT 13.3/Alire; trust + config tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015hmgREHNsxYCuim33yUF2c
2026-06-18 14:58:27 +00:00
614e6d66d3
Delete mafiabot.adb 2026-06-18 05:14:52 -07:00
03360c761a
Create what was this.md 2026-06-18 05:14:28 -07:00
a0d7e52a22
Delete mafiabot_types.adb 2026-06-18 05:13:54 -07:00
9c71e7fb19
Create invariants-architecture.cobol 2026-06-18 05:13:37 -07:00
63d0c79b30
Delete trust_boundary.adb 2026-06-18 05:13:02 -07:00
dadd786186
Update hermes_protocol.adb 2026-06-18 05:12:19 -07:00
18e7e84fbc
Delete exploits.ads 2026-06-18 05:10:52 -07:00
a97bc32147
Create rename this folder.md 2026-06-18 05:10:43 -07:00
1d9f0debbc
Delete exploits.adb 2026-06-18 05:10:19 -07:00
142e343b29
Delete ada_medium.ads 2026-06-18 05:10:00 -07:00
bf87e02aad
Update ada_medium.adb 2026-06-18 05:09:41 -07:00
e904670763
Create bbb-bludbrenburier.ads 2026-06-18 05:03:08 -07:00
77c09480a0
Create big3.yaml 2026-06-18 05:02:30 -07:00
fca6c6c49e
Create soul.md 2026-06-18 05:02:04 -07:00
c6e1ea3d7e
Delete soul.ads 2026-06-18 05:01:32 -07:00
c0f53b993d
Delete soul-tarot.ads 2026-06-18 05:01:14 -07:00
e6204218c5
Delete soul-tarot.adb 2026-06-18 05:00:59 -07:00
bd7e7ddaf8
Delete soul-state.ads 2026-06-18 05:00:51 -07:00
5fa989e2ff
Delete soul-state.adb 2026-06-18 05:00:37 -07:00
842320d0ff
Delete soul-celtic_cross.ads 2026-06-18 05:00:30 -07:00
6aeb7dc387
Delete soul-celtic_cross.adb 2026-06-18 05:00:22 -07:00
91c38324a3
Update README-1ST.MD 2026-06-18 05:00:08 -07:00
487b2346f5
Delete economy.ads 2026-06-18 04:58:53 -07:00
d5db764d2f
Delete economy.adb 2026-06-18 04:58:39 -07:00
64dd1fa8f3
Create note.md 2026-06-18 04:58:27 -07:00
gravermistakes
0cb0323b13
Create README-1ST.MD 2026-06-10 19:46:03 -07:00
gravermistakes
a447725e9f
Create README-1ST.MD 2026-06-10 19:45:22 -07:00
gravermistakes
91e739b6f4
Create README-1ST.MD 2026-06-10 19:44:47 -07:00
gravermistakes
aed2b0008a
Create README-1ST.MD 2026-06-10 19:43:40 -07:00
Claude
14648e484f
Fix alire.toml: drop invalid SPDX license expression
'Proprietary TBD' is not a valid SPDX expression and Alire 2.x rejects it
(LicenseRef- custom ids are also rejected by the pinned version), aborting
manifest load before build. licenses is optional, so omit it until a license
is chosen. Verified locally with alr 2.0.2 + GNAT 14.2.1: 'alr build' succeeds
and all five test executables pass. (gnat_sockets/spark_lemmas remain declared
but unused -> a non-fatal incomplete-solution warning; build still exits 0.)
2026-06-10 04:06:41 +00:00
Claude
80fe7a06a7
Fix alire.toml: style_checks selector Max -> Yes
Alire 2.x only accepts no/yes for the style_checks build-switch category;
"Max" failed manifest loading so 'alr build' aborted before compiling.
"Yes" enables GNAT style checks (warnings, non-fatal) -- the valid selector
closest to the intended Max. Local gprbuild bypassed alire.toml which is why
this only surfaced in CI (alr build).
2026-06-10 04:03:34 +00:00
gravermistakes
71c82526d4
Fix compile errors so Gen.03 core builds and tests pass
Built locally with GNAT 13.3 (gprbuild, -gnat2022). All four test suites
(soul/trust/cycle/config) pass and the MCP server responds correctly to
initialize / tools/list / tools/call over stdio.

Fixes:
- soul-state.ads: move session storage types (Session_Key/Slot/Table) out of
  the protected definition's private part (only data components are legal
  there) into the package visible part.
- soul-state.ads: drop pre/postconditions that call the object's own
  protected function Is_Initialized (illegal internal call in a contract);
  the guards already live in the bodies.
- mafiabot_types.ads: pin Axis_Value'Small to 0.01 so 1.0 doesn't land one
  past the signed-8-bit base range (GNAT default 2**-7 small).
- config_loader.ads: name the Entries array type (anonymous arrays may not be
  record components).
- ada_medium.adb: qualify Mafiabot_Types.Ada_Medium (the package name shadows
  the Organ_Id literal); fix a malformed Bounded_Text aggregate.
- soul-state.adb: fix Bounded_Text aggregate and the single-Character Footer.
- soul-celtic_cross.adb / soul_tests.adb: 'use type' for Slot_State equality.
- hermes_protocol.adb: qualify a single-char String aggregate to disambiguate
  the Append overloads.
- Remove soul.adb (empty body for a spec that does not allow one).
- Add .gitignore for build artifacts and the Alire-generated config project.
2026-06-10 02:27:33 +00:00
gravermistakes
42ef321c4c
Add Gen.03 organ-systems core: Ada Medium, Soul/Tarot, trust boundary, Hermes MCP bridge
Implements the Gen.03 organ-systems body in SPARK/Ada (Jorvik, No_Exceptions):

- Shared types (mafiabot_types): Bounded_Text, Operation_Status, Organ_Id,
  Provenance_Tag, fixed-point drive/ratio/cost/axis types.
- Config loader: SPARK-safe flat key-value parser (no heap/exceptions/finalization).
- Trust boundary: blocklist substring matching, provenance enforcement,
  tick-based rate limiting, Trust_Guard protected object.
- Soul / Silicon Dawn Tarot: 56-card alphabet, Celtic Cross spread, Big-3
  identity anchors. The cross accretes from the cognitive loops (2 cards per
  layer at steps 6/9/13, stave of 4 at step 17) rather than being drawn whole.
- Sessions: Soul_State is now keyed by (uid, channel, server). Each session
  has its own card pool, cross, and output counter; the Big-3 identity is
  global. A formed cross is held for the session (or 17 outputs, whichever is
  longer). Two users on two channels never share a deck or a cross.
- Ada Medium: 23-step forward-only inference cycle wiring the cognitive loops,
  Celtic Cross injection, and outbound trust screening per session.
- Hermes MCP stdio bridge: JSON-RPC over stdin/stdout (initialize, tools/list,
  tools/call), SOUL.md generation, verbatim id echo. SPARK_Mode Off for I/O;
  trust checks run in proven code first.
- Main driver: organ init -> SOUL.md publish -> MCP serve loop.
- Tests: soul, trust, cycle (session formation/isolation), config.

Fixes an orchestrator bug where step 1 advanced onto Phase_Input after Reset,
failing every cycle.

Note: requires GNAT/Alire to build; no Ada toolchain in this environment, so
compilation and gnatprove must run in CI.
2026-06-09 21:50:50 +00:00
gravermistakes
ca3e1c4441
Update alire.toml
:t
2026-05-30 21:37:30 -07:00
Claude
3918ed1c1a
Add Alire build setup and populate Engine package
- alire.toml rewritten to valid schema ([[depends-on]], real build-switch
  values); restrictions moved to gnat.adc
- gnat.adc: project-wide Jorvik profile, No_Exceptions, No_Implicit_Dynamic_Code,
  SPARK_Mode On
- mafiabot_core.gpr: source dirs, mains, global config pragmas
- Engine: drop the caller-side precondition race on Transition_State; guard moved
  into the protected body with illegal transitions forcing Fault_Halt
- Empty stubs (economy/sockets/exploits): drop Elaborate_Body so they no longer
  compile until implemented
2026-05-31 00:25:30 +00:00
Claude
d1e4eec578
Scaffold mafiabot_core module stubs
Add assumption-free skeletons for the modules documented in the README:
empty Engine/Economy/Sockets/Exploits packages, null-body Mafiabot and
Engine_Tests procedures, and a placeholder config/config.yaml.
2026-05-31 00:08:43 +00:00