PSF: Massive Foundation Sync. 57/57 High-Fidelity Blueprints. Zero-Toll Fleet (Llama 3.3/Qwen 3.6) active. GTD updated with browser hardening task.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#+DEPENDS_ON: skill-router skill-performance-auditor
|
||||
|
||||
* Overview
|
||||
The *Economist Agent* manages compute resources by prioritizing high-performance open-source models (Kimi, Qwen) to minimize costs while maintaining architectural integrity.
|
||||
The *Economist Agent* manages compute resources by prioritizing high-performance **subsidized free models** (Llama 3.3, Qwen 3.6) to ensure the PSF operates at zero marginal cost whenever possible.
|
||||
|
||||
* Phase A: Demand (PRD)
|
||||
:PROPERTIES:
|
||||
@@ -13,7 +13,7 @@ The *Economist Agent* manages compute resources by prioritizing high-performance
|
||||
:END:
|
||||
|
||||
** 1. Purpose
|
||||
Optimize token usage by leveraging open-weights models via OpenRouter.
|
||||
Minimize system-wide compute costs by aggressively routing to free tier providers.
|
||||
|
||||
* Phase B: Blueprint (PROTOCOL)
|
||||
:PROPERTIES:
|
||||
@@ -21,39 +21,30 @@ Optimize token usage by leveraging open-weights models via OpenRouter.
|
||||
:END:
|
||||
|
||||
** 1. Architectural Intent
|
||||
Dynamically route tasks to the "Open Fleet" (Kimi/Qwen).
|
||||
Dynamically route to OpenRouter's :free model list for Reflexive and Cognitive tiers.
|
||||
|
||||
** 2. Semantic Interfaces
|
||||
|
||||
*** Routing Logic (2026 Open Fleet)
|
||||
*** Routing Logic (Zero-Toll Fleet)
|
||||
#+begin_src lisp :tangle ../projects/org-skill-economist/src/economist-logic.lisp
|
||||
(in-package :org-agent)
|
||||
|
||||
(defun economist-route-task (context)
|
||||
(declare (ignore context))
|
||||
'(:openrouter)) ; Exclusively use OpenRouter for the Open Fleet
|
||||
'(:openrouter))
|
||||
|
||||
(defun economist-get-model-for-provider (provider &optional context)
|
||||
"Returns Open-Source SOTA model IDs. Updated April 2026."
|
||||
"Returns 100% Free/Subsidized model IDs from OpenRouter. Updated April 2026."
|
||||
(let ((complexity (ignore-errors (uiop:symbol-call :org-agent.skills.org-skill-router :router-classify-complexity context))))
|
||||
(case provider
|
||||
(:openrouter
|
||||
(case complexity
|
||||
(:REASONING "qwen/qwen-2.5-72b-instruct") ; Heavy lifting
|
||||
(:COGNITION "moonshotai/kimi-k2.5") ; Interaction
|
||||
(t "qwen/qwen-2.5-72b-instruct"))) ; Standard reflex
|
||||
(:REASONING "meta-llama/llama-3.3-70b-instruct:free") ; High fidelity, zero cost
|
||||
(:COGNITION "qwen/qwen3.6-plus:free") ; Latest interaction, zero cost
|
||||
(t "meta-llama/llama-3.2-3b-instruct:free"))) ; Ultra-fast reflex, zero cost
|
||||
(t nil))))
|
||||
#+end_src
|
||||
|
||||
* Phase D: Build (Implementation)
|
||||
|
||||
** Integration with Kernel
|
||||
#+begin_src lisp :tangle ../projects/org-skill-economist/src/economist-logic.lisp
|
||||
(defun economist-patch-kernel ()
|
||||
"Hot-patches the kernel's *provider-cascade* to use economist logic."
|
||||
(setf org-agent:*provider-cascade* #'economist-route-task))
|
||||
#+end_src
|
||||
|
||||
* Registration
|
||||
#+begin_src lisp
|
||||
(progn
|
||||
|
||||
@@ -2,19 +2,15 @@
|
||||
|
||||
(defun economist-route-task (context)
|
||||
(declare (ignore context))
|
||||
'(:openrouter)) ; Exclusively use OpenRouter for the Open Fleet
|
||||
'(:openrouter))
|
||||
|
||||
(defun economist-get-model-for-provider (provider &optional context)
|
||||
"Returns Open-Source SOTA model IDs. Updated April 2026."
|
||||
"Returns 100% Free/Subsidized model IDs from OpenRouter. Updated April 2026."
|
||||
(let ((complexity (ignore-errors (uiop:symbol-call :org-agent.skills.org-skill-router :router-classify-complexity context))))
|
||||
(case provider
|
||||
(:openrouter
|
||||
(case complexity
|
||||
(:REASONING "qwen/qwen-2.5-72b-instruct") ; Heavy lifting
|
||||
(:COGNITION "moonshotai/kimi-k2.5") ; Interaction
|
||||
(t "qwen/qwen-2.5-72b-instruct"))) ; Standard reflex
|
||||
(:REASONING "meta-llama/llama-3.3-70b-instruct:free") ; High fidelity, zero cost
|
||||
(:COGNITION "qwen/qwen3.6-plus:free") ; Latest interaction, zero cost
|
||||
(t "meta-llama/llama-3.2-3b-instruct:free"))) ; Ultra-fast reflex, zero cost
|
||||
(t nil))))
|
||||
|
||||
(defun economist-patch-kernel ()
|
||||
"Hot-patches the kernel's *provider-cascade* to use economist logic."
|
||||
(setf org-agent:*provider-cascade* #'economist-route-task))
|
||||
|
||||
Reference in New Issue
Block a user