1990two commited on
Commit
0b6c96e
·
verified ·
1 Parent(s): 81967ac

docs: reflect the LIBRARY/registry.py + bucket-backed state architecture

Browse files
Files changed (1) hide show
  1. README.md +12 -5
README.md CHANGED
@@ -23,13 +23,20 @@ Generic command-routing compute node.
23
  to read.
24
 
25
  Adding a capability means adding a module under `/LIBRARY` and registering
26
- it in `LIBRARY/__init__.py`. `app.py` and `system.py` never need to change.
27
 
28
- `LIBRARY/data.py` bridges to the attached bucket (`1990two/PROJECT92-v2-storage`
29
- by default, override with `BUCKET_ID`) -- `save`/`load`/`list`/`delete`.
 
 
 
 
 
 
30
 
31
- `LIBRARY/agents.py` bridges to model providers via `provider_keys` in
32
- `gate` -- `chat` command, OpenAI-compatible providers only.
 
33
 
34
  ## Required Space secrets
35
  - `SUPABASE_URL`
 
23
  to read.
24
 
25
  Adding a capability means adding a module under `/LIBRARY` and registering
26
+ it in `LIBRARY/registry.py`. `app.py` and `system.py` never need to change.
27
 
28
+ `system.py` bridges to the attached bucket (`1990two/PROJECT92-v2-storage`
29
+ by default, override with `BUCKET_ID`) -- `bucket_save`/`bucket_load`/
30
+ `bucket_list`/`bucket_delete` (+ `_json` variants). Data retrieval is
31
+ cross-cutting infrastructure, so it lives here rather than in a routed
32
+ LIBRARY module. `LIBRARY/AGENTS/task_lock.py` and `LIBRARY/SYS/validate.py`
33
+ persist their state through these bucket functions as small JSON files,
34
+ specifically because the Space's own container disk resets on every
35
+ restart/redeploy and the bucket doesn't.
36
 
37
+ `LIBRARY/AGENTS/providers.py` bridges to model providers via `provider_keys`
38
+ in `gate` -- target `agents`, `chat` command, OpenAI-compatible providers
39
+ only.
40
 
41
  ## Required Space secrets
42
  - `SUPABASE_URL`