How silent14725/ablagent works
Ablagent is an evidence-first Domain Weight Modification research runtime. Its principal real-checkpoint workflow pins a dense HuggingFace checkpoint, captures baseline and direction evidence, applies a selected edit, and records an experimental export; the mock pipeline and control plane support inspectable stage state and gated records. The README also describes architecture contracts, artifact replay, and a broader format-research recipe library. The real pipeline excerpt shows initialization and baseline work, while the source index supports several module relationships; unsampled wiring is omitted rather than inferred.
Main entry points: pipeline_real.py Real pipeline · artifacts.py Artifact store · hf_capture.py Baseline and capture · store.py Control state
Components 21
Runtime orchestration
- Command interface
src/ablagent/cli.py - Real pipeline
src/ablagent/pipeline_real.py - Mock pipeline
src/ablagent/pipeline.py - Run records
src/ablagent/run.py - Domain packs
src/ablagent/packs.py
Checkpoint adapters
- Checkpoint intake
src/ablagent/adapters/hf_intake.py - Baseline and capture
src/ablagent/adapters/hf_capture.py - HF weight bake
src/ablagent/adapters/hf_bake.py
DWM artifacts
- DWMIP contracts
src/ablagent/contracts.py - Graph and writer identity
src/ablagent/identity.py - Interventions
src/ablagent/interventions.py - Artifact store
src/ablagent/artifacts.py - Canonical encoding
src/ablagent/canonical.py
Evidence and control
- Evidence records
src/ablagent/evidence.py - Control state
src/ablagent/control/store.py - Control codec
src/ablagent/control/codec.py - Private file operations
src/ablagent/control/files.py - Release red-line gate
src/ablagent/security/redline.py
Research recipes
- Qwen recipe runner
recipes/qwen-9b-class/run_dwm.py - Qwen DWM core
recipes/qwen-9b-class/lib/dwm_core.py
Other components
- Researcher
Connections 26
- Researcher → Command interface: invokes
- Command interface → Real pipeline: runs
- Real pipeline → Checkpoint intake: pins checkpoint
src/ablagent/pipeline_real.py - Real pipeline → Baseline and capture: captures baseline
src/ablagent/pipeline_real.py - Real pipeline → HF weight bake: applies edit
src/ablagent/pipeline_real.py - Real pipeline → Artifact store: stores artifacts
src/ablagent/pipeline_real.py - Real pipeline → Control state: records stages
src/ablagent/pipeline_real.py - Real pipeline → Domain packs: loads configuration
src/ablagent/pipeline_real.py - Real pipeline → Run records: creates run
src/ablagent/pipeline_real.py - Mock pipeline → Control state: records stages
src/ablagent/pipeline.py - Mock pipeline → Domain packs: loads configuration
src/ablagent/pipeline.py - Checkpoint intake → Graph and writer identity: declares surface
src/ablagent/adapters/hf_intake.py - Checkpoint intake → Artifact store: writes snapshot
src/ablagent/adapters/hf_intake.py - Baseline and capture → Graph and writer identity: resolves writers
src/ablagent/adapters/hf_capture.py - Baseline and capture → Interventions: emits directions
src/ablagent/adapters/hf_capture.py - Baseline and capture → Artifact store: writes capture
src/ablagent/adapters/hf_capture.py - HF weight bake → Interventions: compiles edit
src/ablagent/adapters/hf_bake.py - HF weight bake → Artifact store: writes edited artifact
src/ablagent/adapters/hf_bake.py - Artifact store → Canonical encoding: encodes metadata
src/ablagent/artifacts.py - Artifact store → Graph and writer identity: validates graph
src/ablagent/artifacts.py - Artifact store → Interventions: stores intervention
src/ablagent/artifacts.py - Graph and writer identity → Canonical encoding: computes digests
src/ablagent/identity.py - Control state → Control codec: encodes state
src/ablagent/control/store.py - Control state → Private file operations: reads and writes
src/ablagent/control/store.py - Qwen recipe runner → Qwen DWM core: calls
recipes/qwen-9b-class/run_dwm.py - Mock pipeline → Release red-line gate: evaluates gate
src/ablagent/pipeline.py