Commit graph

263 commits

Author SHA1 Message Date
Brandon Schneider
e2bbb611ea devcontainer: bake Tailscale static binary into Alpine image
- Add iproute2 to apk dependencies (needed by tailscaled)
- Download latest Tailscale stable release at build time via pkgs.tailscale.com
  and install tailscale + tailscaled to /usr/local/bin
- Write a _ts_start() shell function into /home/researcher/.bashrc that:
  - starts tailscaled in userspace-networking mode (no TUN device, no root)
  - uses a per-user socket at ~/.local/share/tailscale/tailscaled.sock
  - is a no-op if the daemon is already running

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 09:18:40 +00:00
Brandon Schneider
2cc9fc8dc7 Rust ene-session-sync: complete rewrite with Python adaptation layer
- source.rs: Add ClawSource adapter that reads .claw/sessions/*.jsonl (skips
  LFS stubs), parses both full-JSON and JSONL-stream formats, normalises into
  ChatSession/ChatMessage identical to the OpenCode path.

- models.rs: Add title/agent/model fields to ChatSession; remove unused
  chrono import.

- normalize.rs: Populate title/agent/model from OpenCodeSession.

- sink.rs: Full rewrite:
  - DDL adds title/agent/model columns + ALTER TABLE IF NOT EXISTS migration
    path for existing clusters.
  - upsert_session and upsert_messages parameter counts match placeholders
    ($19 and $13 respectively).
  - FTS index uses COALESCE to handle NULL text_content.
  - sslmode= token stripped before parse so NoTls connect doesn't reject
    it; README documents the SSL upgrade path (tokio-postgres-rustls).
  - with-serde_json-1 feature added to tokio-postgres dep for JSONB params.

- main.rs:
  - Replace DefaultHasher sha256_text with FNV-1a 64-bit (correct hex digest).
  - Add ClawSync, List, Get subcommands.
  - Remove unused Context import.

- bridge.rs: Rewrite to use bridge_wrapper.py subprocess rather than inline
  -c script; resolves wrapper path relative to infra_dir or CARGO_MANIFEST_DIR;
  unwraps {"ok":true,"data":{}} envelope; health_check() tests python3 only.

- embed.rs: Remove unused OllamaEmbedRequest import.

- systemd/: Add ene-session-sync.service + .timer (5-min cadence, 2-min
  OnBootSec, Persistent=true for catch-up after suspend).

- README.md: Architecture diagram, CLI reference, schema, build/install,
  systemd install, Python bridge setup.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 09:16:19 +00:00
Brandon Schneider
4d715908fd docs: full documentation + roadmap refresh (2026-05-19)
- CHANGELOG: add 2026-05-09 through 2026-05-19 entry covering Lean
  hardening, storage stack, 20+ new gates, physics RG suite
- ROADMAP: update layer model (746 modules, 3529 jobs, 0 errors);
  mark eigensolid_convergence proven; add section 12 (Infrastructure
  & Data Layer) covering ENE RDS, Garage S3, storage agent, devcontainer
- TODO_MAP: add B11 (eigensolid convergence, DONE), Phase I (infra),
  Phase J (adversarial gates); rename old Phase I to Phase K
- README: update Lean module/build counts; add Infrastructure table
- ARCHITECTURE: update L0 row; add repository structure rows for
  ene-rds, storage, devcontainer; add sections 11-13 (Storage &
  Persistence Layer, ENE RDS Workspace, Braid Eigensolid Compressor)
- CONCEPTS: add Braid Eigensolid Compressor, Constrained Agent
  Framework, and Garage S3 Storage Stack concept entries
- 4-Infrastructure/README: rewrite to reflect ENE RDS Rust workspace,
  restic/Garage/rclone storage stack, storage agent, GPU dispatch,
  adversarial harnesses

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 09:12:16 +00:00
Brandon Schneider
8e5efbe11f Fix Dependabot vulns: update sqlx 0.7->0.8.6, add ene-rds Cargo.lock
Security fixes:
- rds_probe: bump sqlx 0.7.4 -> 0.8.6 (GHSA-xmrp-424f-vfpx MEDIUM)
  Also removes transitive rustls-webpki 0.101.7 dependency chain,
  fixing GHSA-82j2-j2ch-gfr8 (HIGH), GHSA-xgp8-3hg3-c2mh,
  GHSA-965h-392x-2mh5 (LOW) in this workspace.
- ene-rds already has rustls-webpki 0.103.13 (patched); commit its
  Cargo.lock for reproducible builds.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 08:09:34 +00:00
Brandon Schneider
95d7ac0694 Add OpenGL/X11, pkg-config, and openssl to devcontainer flake
- libglvnd, xorg.libX11, xorg.libXext, xorg.libXrender, mesa:
  enables build123d/OCP/VTK CAD dependencies inside the container
- pkg-config, openssl: enables Rust workspace builds with openssl-sys
- Update PATH and LD_LIBRARY_PATH env vars to include new packages

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 08:05:40 +00:00
Brandon Schneider
9d450756c1 Expand ene-rds Rust workspace and refine devcontainer
- Add ene-node, ene-rds-chat, ene-rds-ephemeral, ene-rds-wiki,
  ene-storage, ene-sync crates to the ene-rds workspace
- Extend ene-rds-core with shared types and cluster messaging
- Add review doc and wiki page for the RDS Rust workspace
- Fix devcontainer: custom /etc/passwd with researcher user,
  add gcc/glibc/binutils for VS Code server compatibility,
  include util-linux, gnutar, gzip; add LD_LIBRARY_PATH
- Ignore Nix build output (`result`) and Rust artifacts

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 07:52:39 +00:00
Brandon Schneider
fd863af6fd Expand devcontainer with full Python stack, add MCP servers (Notion/AWS), strengthen Lean theorems
- .devcontainer/Dockerfile: add PostgreSQL client libs, OpenSSL/libffi headers, gfortran/BLAS for scipy, rclone; install full Python dependency set (boto3, psycopg2-binary, fastapi, uvicorn, notion-client, httpx, pytest, numpy, scipy, etc.) in uv-managed venv; add rclone S3 gateway init script as ENTRYPOINT
- .devcontainer/devcontainer.json: switch from build to pre-built image (localhost/research
2026-05-19 01:52:14 -05:00
Brandon Schneider
7d574d7d3e Add Q16_16.add_pos_of_pos lemma (quarantined with TODO).
Attempted symbolic proof using the case-split pattern from sub_self/
add_zero/zero_add proofs, but omega cannot reason about UInt32.toNat
conversions through the Q16_16.toInt definition. The lemma is
quarantined with a precise blocker.

Build: 3539 jobs, exit 0.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-18 23:45:09 -05:00
Brandon Schneider
8d9ced3d29 Agent sorry-sprint: close 9 sorrys, fix SSMS sign bug, correct false theorem.
Closed with proofs:
- CostEffectiveVerification.manifoldGroupsOntologicallyDifferentSystems:
  full proof using obtain + simp + exact (added cross-domain diversity hypothesis)
- FixedPointBridge.q0ToQ16_zero: native_decide (finite UInt16→UInt32 computation)
- FixedPointBridge.q0ToQ16_one: corrected false claim (= Q16_16.infinity, not .one),
  then native_decide
- WaveformTeleport.constantWaveformAtFixedPoint_base: corrected false claim
  (value is 65535, not 0), native_decide
- GPUVerificationMetaprobe: 4 new lemmas fully proved
  - gpuVerif_foldl_add_assoc (induction)
  - gpuVerif_execBatch_length (simp)
  - gpuVerif_foldl_totalVerified (induction)
  - verificationStats_valid (simp + exact)
  - surface_preservesTotalVerified (simp + exact)
- DiffusionSNRBias.hGammaSq: gamma_t² ≤ 1 via nlinarith + Int.ediv_le_ediv

Bug fixes:
- SSMS.mlgruStep: fixed sign error — oneMf was computing fT − 1 instead of 1 − fT
  (doc comment said 1−fT but code did fT−1). This fixes the MLGRU recurrence
  formula to match the documented hₜ = f·h + (1−f)·c.

Theorem corrections:
- DiffusionSNRBias.snrBoundedByModelParams: original claim γ·s ≤ γ²·s was
  mathematically false for γ < 1, s > 0. Corrected to γ²·s ≤ γ·s with
  added signalNorm.raw ≥ 0 hypothesis.
- MMRFAMMUnification.total_causal_cost_invariant_target: added equal-size
  hypothesis h_eq (was false for unequal sizes).

Improved TODOs with exact blockers in FixedPointBridge (8 remaining), QFactor,
SSMS, HyperbolicStateSurface, MMRFAMMUnification.

Added Q16_16.add_pos_of_pos lemma (sorry — needs UInt32 automation).

lake build: 3539 jobs, exit 0.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-18 23:34:57 -05:00
Brandon Schneider
de06a85a83 Quarantine sorry blocks, fix RcloneIntegration proof, add ENE wiki re-ingest and ZFS setup.
Lean sorry audit (lake build passes, 3539 jobs):
- FixedPointBridge: 10 sorrys quarantined with TODO(lean-port) — all blocked on
  Float→Q bridge lemmas (Q0_16/Q16_16 round-trip error bounds)
- HyperbolicStateSurface: 3 sorrys quarantined — need Q16_16.sqrt error-bound
  and Q16_16.add_pos_of_pos lemmas
- CostEffectiveVerification: 1 sorry quarantined; also fixed pre-existing
  struct/structure typo, Array.Repr, Real.abs syntax, and Bool/Prop mismatch
- MMRFAMMUnification: 1 sorry quarantined — Array.foldl induction lemma missing
- WaveformTeleport: constantWaveformAtFixedPoint_base native_decide was
  numerically false; replaced with sorry + TODO(lean-port)
- RcloneIntegration: startTask_pending_non_increasing PROVED — only sorry fully
  closed, using List.partition_eq_filter_filter + List.filter_sublist
- DiffusionSNRBias, GPUVerificationMetaprobe, QFactor, SSMS: already properly
  quarantined; verified build passes

Infrastructure additions:
- ene_wiki_body_reingest.py: 5-source priority resolver for ene.wiki_revisions
  text="" gap (TiddlyWiki → filesystem → Notion → package description → stub)
- zfs-pool-setup.sh: stackcache pool (500G sparse vdev) with hot/warm/cold
  thermal-zone dataset hierarchy; requires reboot to 7.0.9-1-cachyos kernel

Docs:
- ROADMAP.md: mark Lean→Verilog/FPGA targets as LONG-TERM in Phase 6
- UNIFIED_SIGNAL_ARCHITECTURE.md: add FPGA-column deferral notice

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-18 23:01:44 -05:00
Brandon Schneider
99fc5d750b Add storage observer/optimizer agent (storage_agent.py)
Full Observe→Decide→Act→Emit loop for the restic + Garage + rclone stack:

- storage_agent.py: probes Garage health, restic snapshot count and dedup
  ratio (Q16_16), backup log staleness, cold-copy drift; triggers corrective
  actions (snap, cold-copy, verify, forget, offload, garage restart) based
  on Q16_16 threshold comparisons. Emits hash-chained receipts to both a
  local JSONL log (~/.cache/storage-agent.jsonl) and
  s3://research-stack/agent-receipts/ in Garage.

- storage-agent.service / storage-agent.timer: systemd units installed
  system-wide; timer fires every 15 min (RandomizedDelaySec=60). Includes
  PATH=/home/allaun/.local/bin:... so aws cli and restic are resolved.

- .git/hooks/post-commit updated: agent runs (--once) in the background
  after each restic snap, so post-commit state is always observed.

- 4-Infrastructure/AGENTS.md: full documentation of agent contract,
  receipt schema, trigger table, log paths, and usage examples.

Shim boundary: zero logic — pure subprocess calls to existing CLI tools.
No Float, no new dependencies. py_compile and live dry-run verified.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-18 22:32:52 -05:00
Allaun Silverfox
e9bbd83fef Add OR-Tools WASM constraint solver gate documentation 2026-05-18 18:45:52 -05:00
Allaun Silverfox
adf98dba67 Add deep-dive possible constrained-agent approaches addendum 2026-05-18 15:47:29 -05:00
Allaun Silverfox
522ed60cde Add possible constrained-agent approaches document with GLIA 2026-05-18 12:02:08 -05:00
Brandon Schneider
edab29b0d5 Fix Porkbun DNS, automate postgres backups, fix rds_probe vulns
- Porkbun API keys verified working (SUCCESS ping)
- Automated daily AppFlowy postgres backups via systemd timer
- rds_probe: switch from rustls to native-tls (fixes 3 Dependabot alerts)
- ec2-config.nix: add appflowy-backup service and timer
2026-05-18 11:52:01 -05:00
Allaun Silverfox
3d93cfab84 Add SmallCode constrained agent execution gate documentation 2026-05-18 11:42:44 -05:00
Brandon Schneider
9a97983a64 Add apiProvider service kind, credential gateway, and cupfox routing
- TopologyNode.lean: apiProvider service kind with network-only requirement
- server.py: OP_CREDENTIALS handler, RDS-backed wiki/fractal fold layers,
  /credentials HTTP endpoint via SurfaceHandler
- cupfox-config.nix: Caddy routes for /api/credentials/ -> EC2 (100.69.1.43)
  and /git/ -> local Forgejo
2026-05-18 10:58:35 -05:00
Brandon Schneider
c957fac96e Add EC2 recovery backup: NixOS config, AppFlowy compose/env template, credential server bootstrap, recovery guide
- ec2-configuration.nix: full NixOS config for aws-nixos-node-1
- docker-compose.minimal.yml: AppFlowy Cloud compose with search_path fix
- .env.example: sanitized AppFlowy env template
- nixos-setup-cred-server.sh: credential server bootstrap
- RECOVERY.md: step-by-step rebuild instructions
- .gitignore: secrets dir excluded
- credential_provider.py reverted to repo HEAD (EC2 had hardcoded AWS creds)
- racknerd_root.txt removed from working tree
2026-05-18 10:44:23 -05:00
Brandon Schneider
c5b6a31a8b feat: add RDS probe tool, credential server, and Notion/Linear ingestion pipeline
New infrastructure components:
- rds_probe: Rust database inspection tool with IAM auth
- credential_server.py: REST credential provider server
- credential_provider.py: credential resolution chain
- ene_rds_fractal_fold.py / ene_rds_wiki_layer.py: RDS-backed ENE layers
- import_dumps_to_rds.py / export_linear_from_rds.py: ingestion pipeline
- recover_credential_server.sh: deployment script (sanitized)

Sanitize hardcoded secrets across codebase:
- Strip API keys from recover_credential_server.sh → env var lookups
- Replace hardcoded Wolfram appid (HYJE3R3R63) → env var in 5 scripts
- Strip fallback key values from config/index.js
- Add .claude/ and optimized_basis_v3.bin to .gitignore

Ingested 2,685 records into RDS: 2,421 Linear issues + 264 wiki pages
2026-05-18 00:31:44 -05:00
Brandon Schneider
10d4c65ee7 fix: correct Q16_16 add/sub signed/unsigned bug, add missing lemmas
- FixedPoint.lean: rewrite add/sub with two's-complement overflow
  detection on UInt32 (replaces Int.ofNat approach that broke
  negative Q16_16 values). Both positive and negative inputs now
  correctly saturate at the representable bounds.
- FixedPoint.lean: add add_zero, zero_add, sub_self, sqrt_zero,
  sqrt_one theorems with proofs for the corrected add/sub.
- FixedPoint.lean: fix Q0_16 doc (0x7FFF = 1.0, not 0x8000)
  and div-by-zero (returns zero, not max).
- TorsionalPIST.lean: Fix16_sub_self, Fix16_mul_zero delegate to
  FixedPoint theorems; Fix16_add_zero proven via add_zero.
2026-05-18 00:31:44 -05:00
Allaun Silverfox
121d517851 Add citations to Möbius-Apollonius gate 2026-05-18 00:05:53 -05:00
Allaun Silverfox
df7143aca3 Add Möbius-Apollonius chord partition gate documentation 2026-05-18 00:02:43 -05:00
Allaun Silverfox
3038781aa4 Add Chromatic Homotopy Height Spectral Gate documentation 2026-05-17 16:22:06 -05:00
Allaun Silverfox
460fcea7f0 Add Ahmed Integral scalar witness gate documentation 2026-05-17 16:18:43 -05:00
Allaun Silverfox
60fd8fbc05 Add adversarial duals 16D anchor pack 2026-05-17 15:47:38 -05:00
Allaun Silverfox
80389d3d3d Add adversarial duals example config 2026-05-17 15:45:57 -05:00
Allaun Silverfox
b553570c94 Add adversarial duals receipt schema 2026-05-17 15:11:34 -05:00
Allaun Silverfox
80a3d4f202 Add Anti-FAMM/Anti-BraidStorm adversary runner 2026-05-17 15:10:31 -05:00
Allaun Silverfox
c1cae66f38 Add adversarial duals combined documentation 2026-05-17 14:38:12 -05:00
Allaun Silverfox
c641396ac7 Add Anti-BraidStorm hostile crossing gate documentation 2026-05-17 14:37:19 -05:00
Allaun Silverfox
70ef664357 Add Anti-FAMM shadow adversary documentation 2026-05-17 14:33:24 -05:00
devin-ai-integration[bot]
1187b4ab44 docs(wiki): disambiguate continuation receipt instructions
Split the run-on sentence that read 'Continuation receipts omit
context_files and message_keys records the alternate shape...' into
two distinct clauses so agents following the 'Adding a New Review'
checklist don't misread it as 'omit [context_files and message_keys]'.
Explicitly state that continuation receipts MUST populate message_keys
to record the alternate response shape.
2026-05-17 12:20:57 -05:00
Devin AI
745fbcdc5f fix: update AI-Newton submodule to valid commit
The AI-Newton submodule was pinned to commit dd1b3cd7 which no longer
exists in the upstream repo (Science-Discovery/AI-Newton). This caused
the snapshot build to fail with 'upload-pack: not our ref' when cloning
with --recurse-submodules.

Updated to the current HEAD (c143e865) of the upstream main branch.

Co-Authored-By: Allaun Silverfox <bigdataiscoming+9i37y6j2@protonmail.com>
2026-05-17 12:20:54 -05:00
Brandon Schneider
aca473a8ca Merge branch 'distilled' 2026-05-17 12:16:18 -05:00
Allaun Silverfox
382ce26d33 Merge pull request #13 from allaunthefox/distilled
Merge distilled into main: infra config, axiom cleanup, docs
2026-05-17 12:15:39 -05:00
Brandon Schneider
5a763468c9 integrate infrastructure config, axiom cleanup, and documentation updates
- cupfox-config.nix: add Open WebUI container with chat.researchstack.info proxy,
  gather-metrics service/timer, rclone, and tmpfiles for persistent storage
- Lean semantics: reduce axiom count from 109 to 18 across 10 files;
  FixedPoint now 0 axioms, 0 sorries with 12 theorems
- Documentation: update AGENTS.md with current axiom/sorry counts and
  FixedPoint status; refine bind signature
- Add topology scripts, CGA/FAMM/GeneticOptimizer/MMRFAMM Lean modules,
  devcontainer config, MEMORY.md, and Modelfile
2026-05-17 12:03:19 -05:00
Brandon Schneider
c0641ea875 integrate stashed changes: math model data updates + 4 receipt dirs + container config
- Update 3-Mathematical-Models JSON datasets (NUVMAP index, mass proofs,
  math_centric_samples, math_raw_summary, math_self_discovered +1.5M lines,
  structural_discovery, unified_9pattern_samples, unknown_discovery_report)
- Add adjacent_coprime_classification receipt (Lean proof + manifest)
- Add codebase-memory-receipt (Rust crate + manifests)
- Add desi_model_projection receipt (Lean proofs + manifest)
- Add deterministic_build_receipt (Lean build proof)
- Add Containerfile, run-container.sh, cupfox-config.nix
- Restore .github assets and changes.zip
2026-05-17 12:03:19 -05:00
Allaun Silverfox
07c8a9ab1f Add Feynman path-integral shadow witness note 2026-05-17 10:39:59 -05:00
Allaun Silverfox
b5534677eb Add Navier-Stokes shadow control gap map note 2026-05-17 10:32:14 -05:00
Allaun Silverfox
aa9ab18ff2 Add Navier-Stokes/MHD chiral drag witness note 2026-05-17 10:18:42 -05:00
Allaun Silverfox
518f3d96ce Add Plasma Chiral Drag Witness example config 2026-05-17 10:14:06 -05:00
Allaun Silverfox
002e956e34 Add Plasma Chiral Drag Witness receipt schema 2026-05-17 10:12:58 -05:00
Allaun Silverfox
0c085053cf Add Plasma Chiral Drag Witness runner 2026-05-17 10:11:38 -05:00
Allaun Silverfox
b95f1d9678 Add Plasma Chiral Drag Witness Gate documentation 2026-05-17 10:10:15 -05:00
Allaun Silverfox
a2520eb4bf Add Universal Shortcut Center Manifold documentation 2026-05-16 21:10:29 -05:00
Allaun Silverfox
5527a00b8d Add BraidStorm Sidon Crossing 16D anchor pack 2026-05-16 20:57:35 -05:00
Allaun Silverfox
f692239078 Add BraidStorm Sidon Crossing example config 2026-05-16 20:56:35 -05:00
Allaun Silverfox
5f051465d2 Add BraidStorm Sidon Crossing receipt schema 2026-05-16 20:56:00 -05:00
Allaun Silverfox
0d9b434357 Add BraidStorm Sidon Crossing Anti-Alias runner 2026-05-16 20:54:30 -05:00
Allaun Silverfox
d0bee615cc Add BraidStorm Sidon Crossing Anti-Alias Gate documentation 2026-05-16 20:47:57 -05:00