JosephStoneCellAI commited on
Commit
a43caf4
·
verified ·
1 Parent(s): e4a2c71

Upload 4 files

Browse files
Files changed (4) hide show
  1. CLAUDE.md +22 -59
  2. Cargo.lock +25 -0
  3. Cargo.toml +1 -1
  4. README.md +33 -174
CLAUDE.md CHANGED
@@ -2,29 +2,25 @@
2
  }
3
  {
4
  "version": "3.0",
5
- "updated": "2026-01-28",
6
  "copyright": "Joseph Stone 2026 - All Rights
7
  Reserved",
8
 
9
  "boot_sequence": {
10
  "mandatory": true,
11
  "steps": [
12
- "READ TRIAD-CMD/BOOT.md FIRST (identity,
13
- working directory, state)",
14
- "READ TRIAD-CMD/STATUS.md (completed work,
15
- pending, blocked)",
16
- "READ TRIAD-CMD/MORAL_FRAMEWORK.md (core
17
- values, IMMUTABLE)",
18
- "READ TRIAD-CMD/MEMORY_TRIAD.md (memory
19
- systems, persistence)",
20
- "READ TRIAD-CMD/WORKFLOW.md (confidence
21
- grading, SearchSeeker)",
22
- "REPORT: I have read TRIAD-CMD boot
23
- sequence. Awaiting your direction.",
24
- "DO NOTHING until user gives explicit
25
- direction",
26
- "NEVER auto-proceed through any task
27
- list"
28
  ]
29
  },
30
 
@@ -236,34 +232,6 @@
236
  ],
237
  "requires_user_approval": true
238
  },
239
-
240
- "decomposition_rule": {
241
- "mandatory_when": "C > 500 OR output would exceed 500 lines",
242
- "safe_output_per_subtask": 500,
243
- "max_files_per_subtask": 7,
244
- "checkpoint_after_each_subtask": true,
245
- "formula": "D = ceil(C / 350)"
246
- },
247
-
248
- "signal_to_noise_enforcement": {
249
- "purpose": "Prevent dialog from drowning project context",
250
- "target_ratio": "3:1 structured artifacts to unstructured discussion",
251
- "for_C_over_5000": {
252
- "max_explanation": "3 sentences — point to reference doc for details",
253
- "default_mode": "structured artifacts (anchors, manifests, code, checkpoints)",
254
- "discussion_only_when": "user asks a question"
255
- },
256
- "context_budget": {
257
- "active_code_files": "40%",
258
- "architecture_and_status": "15%",
259
- "change_manifests": "10%",
260
- "external_memory_brain": "10%",
261
- "user_instructions": "10%",
262
- "discussion": "10%",
263
- "safety_buffer": "5%"
264
- }
265
- },
266
-
267
  "memory_triad": {
268
  "description": "Three redundant memory systems — if any one fails, other two recover",
269
  "system_1_brain": {
@@ -299,8 +267,8 @@
299
  "session_recovery": {
300
  "mandatory_steps": [
301
  "1. Read HARDCODE RULES",
302
- "2. Read STATUS.txt — project state",
303
- "3. Read Task List — progress and next task",
304
  "4. Query Brain for current phase context",
305
  "5. Read SPECIFIC files needed for next subtask",
306
  "6. Produce Build Anchor Check",
@@ -314,8 +282,8 @@
314
  "on_anchor_lost": [
315
  "STOP immediately — do not continue writing code",
316
  "State: Build anchor lost. Initiating recovery.",
317
- "Re-read STATUS.txt",
318
- "Re-read Task List",
319
  "Re-read last Change Manifest or Breadcrumb",
320
  "Re-read target files from disk",
321
  "Produce NEW Build Anchor Check",
@@ -347,23 +315,18 @@
347
  },
348
 
349
  "capacity_reference": {
350
- "context_window_total": "200,000 tokens",
351
  "effective_working_memory": "40,000 tokens",
352
  "memory_decay": "15-25% loss per 50K tokens of new context",
353
- "single_pass_verification": "75% error detection rate",
354
- "note": "These are observed values for Claude Opus 4.5 — recalibrate if model changes"
355
  }
356
  }
357
  },
358
 
359
  "project_folders": {
360
- "work": "stoneshell-work/",
361
- "original": "stoneshell-original/ (VIEW
362
- ONLY)",
363
- "status_file":
364
- "stoneshell-work/STATUS.txt",
365
- "rules_file":
366
- "stoneshell-work/HARDCODE-RULES.md"
367
  }
368
  }
369
 
 
2
  }
3
  {
4
  "version": "3.0",
5
+ "updated": "2026-05-30",
6
  "copyright": "Joseph Stone 2026 - All Rights
7
  Reserved",
8
 
9
  "boot_sequence": {
10
  "mandatory": true,
11
  "steps": [
12
+ "IDENTITY: AI agent running SPF Smart Gateway v3.0.0. Working directory: SPFsmartGATE/LIVE/PROJECTS/PROJECTS/DEPLOY/. All tools gated through compiled Rust enforcement.",
13
+ "CALL spf_status — Verify gateway mode, tier thresholds, formula parameters",
14
+ "CALL spf_session — Load file trail (reads/writes), manifest history, anchor ratio",
15
+ "CALL spf_agent_context — Load full context summary: file trail, FLINT brain hits, instructions, recent context",
16
+ "CALL spf_brain_status — Verify brain: model loaded, collections, storage size",
17
+ "CALL spf_transformer_status — Verify FLINT: checkpoint step, model state, training step",
18
+ "CALL spf_agent_stats — Verify AgentStateDb: memories, sessions, state keys, tags",
19
+ "READ TRIAD-CMD/MORAL_FRAMEWORK.md — Core values (IMMUTABLE)",
20
+ "CALL spf_rag_status — Verify collector status, bandwidth, pending searches",
21
+ "REPORT: I have read the full boot sequence. Live status: [spf_status summary]. Awaiting your direction.",
22
+ "DO NOTHING until user gives explicit direction",
23
+ "NEVER auto-proceed through any task list"
 
 
 
 
24
  ]
25
  },
26
 
 
232
  ],
233
  "requires_user_approval": true
234
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  "memory_triad": {
236
  "description": "Three redundant memory systems — if any one fails, other two recover",
237
  "system_1_brain": {
 
267
  "session_recovery": {
268
  "mandatory_steps": [
269
  "1. Read HARDCODE RULES",
270
+ "2. CALL spf_session — project state, last actions, manifest",
271
+ "3. CALL spf_agent_context — progress and next task cues",
272
  "4. Query Brain for current phase context",
273
  "5. Read SPECIFIC files needed for next subtask",
274
  "6. Produce Build Anchor Check",
 
282
  "on_anchor_lost": [
283
  "STOP immediately — do not continue writing code",
284
  "State: Build anchor lost. Initiating recovery.",
285
+ "CALL spf_session — re-check project state",
286
+ "CALL spf_agent_context — recover progress cues",
287
  "Re-read last Change Manifest or Breadcrumb",
288
  "Re-read target files from disk",
289
  "Produce NEW Build Anchor Check",
 
315
  },
316
 
317
  "capacity_reference": {
318
+ "context_window_total": "250,000 tokens",
319
  "effective_working_memory": "40,000 tokens",
320
  "memory_decay": "15-25% loss per 50K tokens of new context",
321
+ "single_pass_verification": "75% error detection rate"
 
322
  }
323
  }
324
  },
325
 
326
  "project_folders": {
327
+ "work": "CALL spf_tmp_active — fetch current working directory from LMDB",
328
+ "original": "View-only: LAST-STABLE-BUILD-OG/",
329
+ "status_file": "CALL spf_session — live session state"
 
 
 
 
330
  }
331
  }
332
 
Cargo.lock CHANGED
@@ -439,6 +439,16 @@ dependencies = [
439
  "objc2",
440
  ]
441
 
 
 
 
 
 
 
 
 
 
 
442
  [[package]]
443
  name = "bumpalo"
444
  version = "3.20.2"
@@ -1716,6 +1726,19 @@ dependencies = [
1716
  "wasip3",
1717
  ]
1718
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1719
  [[package]]
1720
  name = "gloo-timers"
1721
  version = "0.3.0"
@@ -4272,6 +4295,7 @@ dependencies = [
4272
  "ed25519-dalek",
4273
  "env_logger 0.11.9",
4274
  "futures-util",
 
4275
  "heed",
4276
  "hex",
4277
  "html2text",
@@ -4292,6 +4316,7 @@ dependencies = [
4292
  "tokio-tungstenite 0.26.2",
4293
  "tower",
4294
  "tower-http",
 
4295
  ]
4296
 
4297
  [[package]]
 
439
  "objc2",
440
  ]
441
 
442
+ [[package]]
443
+ name = "bstr"
444
+ version = "1.12.1"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
447
+ dependencies = [
448
+ "memchr",
449
+ "serde",
450
+ ]
451
+
452
  [[package]]
453
  name = "bumpalo"
454
  version = "3.20.2"
 
1726
  "wasip3",
1727
  ]
1728
 
1729
+ [[package]]
1730
+ name = "globset"
1731
+ version = "0.4.18"
1732
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1733
+ checksum = "52dfc19153a48bde0cbd630453615c8151bce3a5adfac7a0aebfbf0a1e1f57e3"
1734
+ dependencies = [
1735
+ "aho-corasick",
1736
+ "bstr",
1737
+ "log",
1738
+ "regex-automata",
1739
+ "regex-syntax",
1740
+ ]
1741
+
1742
  [[package]]
1743
  name = "gloo-timers"
1744
  version = "0.3.0"
 
4295
  "ed25519-dalek",
4296
  "env_logger 0.11.9",
4297
  "futures-util",
4298
+ "globset",
4299
  "heed",
4300
  "hex",
4301
  "html2text",
 
4316
  "tokio-tungstenite 0.26.2",
4317
  "tower",
4318
  "tower-http",
4319
+ "walkdir",
4320
  ]
4321
 
4322
  [[package]]
Cargo.toml CHANGED
@@ -160,4 +160,4 @@ opt-level = 1
160
  # DEV DEPENDENCIES — for tests only
161
  # ============================================================================
162
  [dev-dependencies]
163
- tempfile = "3"
 
160
  # DEV DEPENDENCIES — for tests only
161
  # ============================================================================
162
  [dev-dependencies]
163
+ tempfile = "3"
README.md CHANGED
@@ -1,6 +1,3 @@
1
- ---
2
- license: apache-2.0
3
- ---
4
  README.md---
5
  license: apache-2.0
6
  language:
@@ -14,36 +11,51 @@ tags:
14
  - tool-enforcement
15
  - lmdb
16
  - rag
 
 
 
17
  - android
18
  - termux
19
- - terminal
20
  - self-hosted
 
 
 
21
  - build-anchor
22
  - complexity-formula
23
  - agent-memory
 
 
 
 
24
  - harness
25
  - ai-memory
 
 
26
  - agent-tools
27
  - tool-gateway
 
 
 
 
 
 
28
  - embedded-database
29
  - zero-copy
30
  - code-search
31
  - filesystem
 
 
 
32
  ---
33
 
34
- ```
35
- https://buymeacoffee.com/josephstonecellai
36
-
37
- ```
38
 
39
  # SPF Smart Gateway v3.0.0
40
 
41
  **MCP Server Gateway with Multi-Layer Security Enforcement, Agent Memory, FLINT Transformer, Mesh Network, and 81 Gated Tools**
42
 
43
- > **NOTE: Full system upload available 1 file download SPFsmartGATE.zip.** Repository is actively being populated — some modules may be missing until upload completes. Use .zip for full system
44
 
45
  Copyright (C) 2026 Joseph Stone — All Rights Reserved
46
-
47
  ---
48
 
49
  ## Quick Start
@@ -59,8 +71,6 @@ cargo build --release
59
 
60
  # Copy optimized binary
61
  cp ~/SPFsmartGATE/target/release/spf-smart-gate ~/SPFsmartGATE/LIVE/BIN/spf-smart-gate
62
- chmod +x ~/SPFsmartGATE/LIVE/BIN/spf-smart-gate/spf-smart-gate
63
- cd SPFsmartGATE/LIVE/BIN/spf-smart-gate ./spf-smart-gate refresh-paths
64
 
65
  # Configure MCP server filepath
66
  nano ~/SPFsmartGATE/LIVE/LMDB5/.mcp.json
@@ -86,8 +96,7 @@ Adjust `~/SPFsmartGATE/LIVE/LMDB5/.claude/settings.local.json` with your model c
86
  - Cross-compiles on **Android** and **Linux** with minimal installation
87
  - Only rebuild on first boot or after system modifications
88
  - Binary: `~/SPFsmartGATE/LIVE/BIN/spf-smart-gate/spf-smart-gate`
89
- - Built in sandbox SPFsmartGATE/LIVE/TMP SPFsmartGATE/LIVE/PROJECTS
90
- - WHITELIST IN SPFsmartGATE/LIVE/CONFIG
91
  ---
92
 
93
  ## Overview
@@ -96,18 +105,6 @@ SPF Smart Gateway is a **Rust-based MCP (Model Context Protocol) server** that a
96
 
97
  **No AI hallucination gets past the gate.**
98
 
99
- ### Web Agent Feature
100
-
101
- SPF agents can directly interact with the web and social media platforms through `spf_web_api` — a full HTTP client supporting GET, POST, PUT, DELETE, PATCH with custom headers and JSON body. Tested and working.
102
-
103
- **What agents can do:**
104
- - Post to X/Twitter, Facebook, Instagram, Reddit via their APIs
105
- - Reply to comments, send messages, manage accounts
106
- - Make authenticated API calls to any platform with stored API keys
107
- - Search, fetch, and download web content
108
-
109
- All web API calls pass through the 6-step gate pipeline with rate limiting (30-120 calls/min), content inspection, and full audit logging. Agents never touch the open web unmonitored.
110
-
111
  ### Why Heed + LMDB
112
 
113
  All persistent storage — config, agent state, brain vectors, session logs, gate training data — runs through **[heed](https://github.com/meilisearch/heed)**, a safe Rust wrapper over LMDB. This is what makes SPF extremely fast with a low memory footprint:
@@ -311,28 +308,21 @@ Unknown tools blocked until explicitly added to the gate allowlist.
311
 
312
  ### Web Browser Tools
313
 
314
- **API tools (tested):**
315
-
316
  | Tool | Description |
317
  |------|-------------|
318
  | `spf_web_search` | Search the web (Brave API or DuckDuckGo) |
319
  | `spf_web_fetch` | Fetch URL and return clean readable text |
320
  | `spf_web_api` | Make HTTP API requests (GET/POST/PUT/DELETE/PATCH). Supports custom headers and JSON body — agents can directly interact with social media APIs (X/Twitter, Facebook, Instagram, Reddit, etc.) using stored API keys |
321
  | `spf_web_download` | Download a file from URL and save to disk |
322
-
323
- **Browser automation tools (in development proxy starts, WebSocket bridge needs browser connection):**
324
-
325
- | Tool | Description | Status |
326
- |------|-------------|--------|
327
- | `spf_web_connect` | Initialize reverse proxy browser engine | Tested — works |
328
- | `spf_web_navigate` | Navigate browser to a URL (SSRF-validated) | Tested works |
329
- | `spf_web_click` | Click a page element by CSS selector | In development — WebSocket timeout |
330
- | `spf_web_fill` | Type text into a form field by CSS selector | In development — WebSocket timeout |
331
- | `spf_web_select` | Query page elements by CSS selector | In development — WebSocket timeout |
332
- | `spf_web_eval` | Execute JavaScript on the current page | In development — WebSocket timeout |
333
- | `spf_web_screenshot` | Capture a screenshot of the current page | In development |
334
- | `spf_web_design` | Extract design brief: colours, fonts, spacing, components | In development |
335
- | `spf_web_page` | Structured page overview: title, headings, links, forms | In development |
336
 
337
  ### RAG Collector Tools
338
 
@@ -660,8 +650,7 @@ SPFsmartGATE/
660
  | Voice | TTS built (espeak-ng) — **not yet tested**, STT pending |
661
  | Chat | P2P messaging over mesh — **in development** |
662
  | RAG | Web search, RSS, file/folder indexing |
663
- | Web Agent | **Working** spf_web_api tested (GET/POST with auth headers). Agents can interact with social media APIs |
664
- | Browser | API tools working (web_api, search, fetch). Browser automation (navigate/click/fill/select/eval) in development — proxy starts but WebSocket bridge needs browser connection |
665
  | Network Pool | Worker pool with proof of work |
666
 
667
  ---
@@ -690,133 +679,3 @@ You are free to use, modify, and distribute this software, including for commerc
690
  **Email**: joepcstone@gmail.com
691
 
692
  *SPF (StoneCell Processing Formula), Build Anchor Protocol, and FLINT are proprietary designs of Joseph Stone.*
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
-
704
- {JphhhkkwOJu)l lfcCOdkhkhkOU{
705
- UkahpY< >YdkhhJ
706
- vbakC l0whkc
707
- OkbU UqbO[
708
- JooY voqJ
709
- Ohd ObO
710
- Y*a~ iwoY
711
- OhX nkO
712
- :ba{ -ad
713
- Oa- >kw
714
- Ok( toO
715
- naC Lar
716
- Ok? -h0
717
- hO Ow
718
- 1aY Uh{
719
- ton ck1
720
- [av Xk?
721
- hY Lp
722
- O0 OO
723
- Uq xc< +OX
724
- au v z\x1 Xk
725
- QO t[xuu nn[ OL
726
- kx |r(n(cUXnU> zbl
727
- UO ?u/ \ :x iYnv dY
728
- kQ r ?Ucx }nnt (tJz{ > LO
729
- ar [utvr//YX/ i 1UUXx cnx fq
730
- 1d jrv ?xc\l j ]rul ~ -\[ uu~ p{
731
- uO x:))Ut -/n) f}\)-v ?/ </Xv[ \ bu
732
- CO i [>YYXju ~ : (czUYuX{ >|tl- } cuUxzl ){ OY
733
- Qd -ni { n _{~ \ |t)\t- | ~\c|_|X _ ( n uz?<f OJ
734
- LO /uzUU/{ ivfc\/n({} : -i ~ ( _tnzYJx} :uUJ|< OC
735
- UO f ( ii- fi ~ ~1v(tx- + ~)\}Y( : + ] c| | r OU
736
- nd ]xvu-\- ~ ( }x\cxtu xYUf [ - uuvXnf? pu
737
- (a - ~+ X\(</ > u0YJJx~ [ \/cYXz(j] | [ q{
738
- h\ ?xXzYzY>_ 1 \nc\\zXJJXr1 -(??t{[{< 1b
739
- OJ [v {r nc? /YXUvYzXcQJt[ ]1: {{u> n ? UO
740
- YO c[ [t(vxcYzt)[ <(1 -(zz\Y/fz[ /|t1\UrYj)Xu( i _CY OX
741
- -a v :X(f( 11zJJLCvt()->}) ? [c/xLu1- _ +1[()[} ++x[t{/cjCz? urXr i d<
742
- hC \ X <XvUUQUx{{ / {tv+} >[ 1 it/v|xtc)_ [ ]{ |+)Y?[ ? -{|CULXz? ~c r YO
743
- nO /tvz//{ >l l[[()}cX[ ~{-\)) ?l - +1[cnJYXJvf\ >|{( - t:uJz|+ ~1- ( X({u)f+{U~ )}CfX]n Oc
744
- qn v ?? >)\fnc/u/| ?- +?YnrxJu)(~[{l : [c|fc/ ]: 1l]\|t\YYJUXrU1 :+tu\nv}vf)l} + / xk
745
- vO \-{\v> {[UXUJzc)| ):i (~~|{)c|tr1-{l_- } 1]{(vvvzzXcxQ|i <_ ? [t[+ Oz
746
- kn >{{ XUnvYt[[ : ? :tYzXzu) +r]vnxXt} i (O
747
- 1d /cc\ _nn/c/ {{: l Of
748
- OC XO
749
- k+ _k~
750
- /O : Ou
751
- QL v(/ +~ [ v f(| UO
752
- pn fuvY)zv \jXzL} 1LpkhaaaahhhkkkdL- bkkkkkkkkkkkkkkbOOz zOkhhhhkhkkkkkkhhhO {(Ct xxUcrYU )O
753
- q |{xt(_ v[n\ hhaaaaaaaaaaaaaooakki hhaaaaaoaoaoooaaoooaO )*ooooooaaaaooaoaaaah /| ~ U)(1 O
754
- -O i/+ (cx 0hhhabCUYYXXYYUJdhhaa0 haoaaLCLLCCCCCLOoaahhU 0aooohO0000000000000L + \{ O}
755
- )O Oahkb[ CJJUz aaahk vhhhhQ Oahhhz Of
756
- rO QkhhhakOOQCUXvnj(+ hhhao naaakL 0oahhCftt//\|((())1{ 0v
757
- vO > Okaaahaaoooooaahhhaa[ hoooo: jjftffxuUkhaoaU 0aoaaaaaaaaaaaaaaaha Qz
758
- vO [vJQOwdbkhhhhaaooak aoooh |aooahhaaoaahhb 0haooaaoaaaaaaaaaaah QX
759
- uO 1\tfx aoahh? aaaoa:/kkhaahhkhak0{ 0aahau QX
760
- jO \x OkhooQ/{{}}}{1(tCaaaah: haaao 0aahhn )rx 0c
761
- 1O 1n11{l (JXc /aaaaahhhhhaaooahhhaoQ kaaah 0aaahj >v j(nv}X| Or
762
- ~O xYJXUj uvUXv{ cdhhkhhaoooahhaabL kaaah Qkhoar ~|u\ l nnzx|l O1
763
- b \]\ XrUY lv_ >\i d:
764
- pn )}z :: \q
765
- LL UO
766
- tO CqkhaaX daL Oqr Laooad< OqOObkU oakqdkO fa*ahdO 0kooop vppbkkocXahhkkh Ou
767
- k hO1[_l OOOL O0ku1af O0 dC ca rq OO |O p0 OO Qq{}[?i di
768
- OJ Qb OO pLO0 ku[bOOOOO0 OkOdapf fb O0 -pY|pOOOOO0 kO CO XO
769
- (O vOwpwO| QQ wJ Or_O] QL OY OO /w OOOOdO 1h OC OQ OOOOwd \) On
770
- dr [( ) i ] v -Ux (b
771
- nO zUX1cX x _[CX(\ OY
772
- kz t x - X : 1zz[ (\/ jk
773
- nO tCu/{Xct i[)crU( > { /Yn\c {t{\i u|c| ?_zcYrJzX: _ Oc
774
- OU > - Y[{{ } ?c(C/n{:t\- } [ {11vcUCuY/) n} /{t0Lj _ i -+ ( XO
775
- lk [ <X/vXn_zfXrfv-?< l {Yvt]t <+~fujtx\c- (vcu( O?
776
- XO < c0XztYUncu_ ) -~ : |)u<~ [ ~(z/zYcztznJz + OC
777
- qU [+ {)- > -[:]Yt|]>- }}? _YCJC|~ }> { {\tz) r \]l ~? za
778
- k} i(YXfu/ <+ -{ \nnUCYttXn )l } } :nX] fxcuXnf[ l qi
779
- [w ( | i \ l i/QLCXYz0x/ \l [ \j- n Xx O(
780
- ub nvx~v) /> [v\- ([1ctX0u} : fl+1tv( nxvJnn Oz
781
- JO 1 \] t)/u/vz[] n/tJ} + tnYctcf }j } v OL
782
- JO }\v [ )+ t ~ - l x\v1 | }vu) Q0
783
- LO Yx\[v} [ lcft) }un)cvz O0
784
- Cw -Uf }fYXxn\{ 1 [ OL
785
- Xk }\ zv< tzJv{x1] vv| bU
786
- /p |xn) t <\jj[ \ [\U( kn
787
- O( nzt{|z/ }\vrjvn| )ki
788
- OL xn[ ]vXl \ CO
789
- JO 1x- ~tt OJ
790
- -kr -c{)v xa_
791
- OO {vcx- }[ O0
792
- ?hj {vzjf U) rk]
793
- Lb > {\J(l OL
794
- pQ x\z{ Qb
795
- )az X*?
796
- /hj r*|
797
- vh| f*x
798
- jan uoj
799
- ]oQ Qo}
800
- bk hp
801
- XhY XoJ
802
- Ok[ >oO
803
- ika hh?
804
- [pb aa|
805
- Oa( )ha+
806
- 0aw O#O
807
- OpO 0*k_
808
- Ohhx jaoO
809
- }Okwv cOhbj
810
- JkdOU zw**C
811
- {LkkO0v cOaooOx
812
- \UOhhhdOOLXr} [fzCOdkaaaO0r
813
-
814
-
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
 
 
 
 
1
  README.md---
2
  license: apache-2.0
3
  language:
 
11
  - tool-enforcement
12
  - lmdb
13
  - rag
14
+ - transformer
15
+ - mesh-network
16
+ - voice
17
  - android
18
  - termux
 
19
  - self-hosted
20
+ - ai-safety
21
+ - memory-system
22
+ - flint
23
  - build-anchor
24
  - complexity-formula
25
  - agent-memory
26
+ - p2p
27
+ - quic
28
+ - heed
29
+ - self-learning
30
  - harness
31
  - ai-memory
32
+ - persistent-memory
33
+ - online-learning
34
  - agent-tools
35
  - tool-gateway
36
+ - web-automation
37
+ - browser-automation
38
+ - social-media
39
+ - p2p-communication
40
+ - voice-synthesis
41
+ - tts
42
  - embedded-database
43
  - zero-copy
44
  - code-search
45
  - filesystem
46
+ - git
47
+ - database
48
+ pipeline_tag: text-generation
49
  ---
50
 
 
 
 
 
51
 
52
  # SPF Smart Gateway v3.0.0
53
 
54
  **MCP Server Gateway with Multi-Layer Security Enforcement, Agent Memory, FLINT Transformer, Mesh Network, and 81 Gated Tools**
55
 
56
+ > **NOTE: Full system upload still in progress.** Not all files are present yet. Repository is actively being populated — some modules may be missing until upload completes.
57
 
58
  Copyright (C) 2026 Joseph Stone — All Rights Reserved
 
59
  ---
60
 
61
  ## Quick Start
 
71
 
72
  # Copy optimized binary
73
  cp ~/SPFsmartGATE/target/release/spf-smart-gate ~/SPFsmartGATE/LIVE/BIN/spf-smart-gate
 
 
74
 
75
  # Configure MCP server filepath
76
  nano ~/SPFsmartGATE/LIVE/LMDB5/.mcp.json
 
96
  - Cross-compiles on **Android** and **Linux** with minimal installation
97
  - Only rebuild on first boot or after system modifications
98
  - Binary: `~/SPFsmartGATE/LIVE/BIN/spf-smart-gate/spf-smart-gate`
99
+
 
100
  ---
101
 
102
  ## Overview
 
105
 
106
  **No AI hallucination gets past the gate.**
107
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  ### Why Heed + LMDB
109
 
110
  All persistent storage — config, agent state, brain vectors, session logs, gate training data — runs through **[heed](https://github.com/meilisearch/heed)**, a safe Rust wrapper over LMDB. This is what makes SPF extremely fast with a low memory footprint:
 
308
 
309
  ### Web Browser Tools
310
 
 
 
311
  | Tool | Description |
312
  |------|-------------|
313
  | `spf_web_search` | Search the web (Brave API or DuckDuckGo) |
314
  | `spf_web_fetch` | Fetch URL and return clean readable text |
315
  | `spf_web_api` | Make HTTP API requests (GET/POST/PUT/DELETE/PATCH). Supports custom headers and JSON body — agents can directly interact with social media APIs (X/Twitter, Facebook, Instagram, Reddit, etc.) using stored API keys |
316
  | `spf_web_download` | Download a file from URL and save to disk |
317
+ | `spf_web_connect` | Initialize reverse proxy browser engine |
318
+ | `spf_web_navigate` | Navigate browser to a URL (SSRF-validated) |
319
+ | `spf_web_click` | Click a page element by CSS selector |
320
+ | `spf_web_fill` | Type text into a form field by CSS selector |
321
+ | `spf_web_select` | Query page elements by CSS selector |
322
+ | `spf_web_eval` | Execute JavaScript on the current page |
323
+ | `spf_web_screenshot` | Capture a screenshot of the current page (in development) |
324
+ | `spf_web_design` | Extract design brief: colours, fonts, spacing, components |
325
+ | `spf_web_page` | Structured page overview: title, headings, links, forms |
 
 
 
 
 
326
 
327
  ### RAG Collector Tools
328
 
 
650
  | Voice | TTS built (espeak-ng) — **not yet tested**, STT pending |
651
  | Chat | P2P messaging over mesh — **in development** |
652
  | RAG | Web search, RSS, file/folder indexing |
653
+ | Browser | Reverse proxy automation screenshot in development |
 
654
  | Network Pool | Worker pool with proof of work |
655
 
656
  ---
 
679
  **Email**: joepcstone@gmail.com
680
 
681
  *SPF (StoneCell Processing Formula), Build Anchor Protocol, and FLINT are proprietary designs of Joseph Stone.*