chore: milestone 78 — remove bloat (landing/, agent-evolution/, PNG baselines)
- Move landing/ to archive/landing (marketing page, not core) - Move agent-evolution/ to archive/agent-evolution (dashboard frozen) - Remove dashboard PNG baselines from git + disk - Update .gitignore to exclude archive dirs - Update script DB paths to archive/agent-evolution/data Cross-checker: PASS (no FAILs) Issues: #128
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Compute empirical model assignments from real-fit.db.
|
||||
Reads agent-evolution/data/real-fit.db and kilo-meta.json,
|
||||
Reads archive/agent-evolution/data/real-fit.db and kilo-meta.json,
|
||||
generates a comparison report and fitness-history.jsonl.
|
||||
Does NOT modify any config files.
|
||||
"""
|
||||
@@ -95,7 +95,7 @@ def build_report(stats, current_models, valid_models):
|
||||
lines.append("## Methodology")
|
||||
lines.append("")
|
||||
lines.append(
|
||||
"1. Read all evaluations from `agent-evolution/data/real-fit.db`."
|
||||
"1. Read all evaluations from `archive/agent-evolution/data/real-fit.db`."
|
||||
)
|
||||
lines.append(
|
||||
"2. Exclude evaluations for models no longer present in `kilo-meta.json`."
|
||||
|
||||
@@ -18,7 +18,7 @@ from datetime import datetime, timezone
|
||||
from urllib import request, error as urllib_error
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
|
||||
DB_PATH = os.environ.get("REAL_FIT_DB", "agent-evolution/data/real-fit.db")
|
||||
DB_PATH = os.environ.get("REAL_FIT_DB", "archive/agent-evolution/data/real-fit.db")
|
||||
|
||||
# Load .env if present
|
||||
_ENV_LOADED = False
|
||||
@@ -608,7 +608,7 @@ def generate_report():
|
||||
'fit_scores': fit_scores
|
||||
}
|
||||
|
||||
out = os.environ.get('REPORT_PATH', 'agent-evolution/data/real-fit-report.json')
|
||||
out = os.environ.get('REPORT_PATH', 'archive/agent-evolution/data/real-fit-report.json')
|
||||
out_dir = os.path.dirname(out)
|
||||
if out_dir:
|
||||
os.makedirs(out_dir, exist_ok=True)
|
||||
@@ -624,7 +624,7 @@ def generate_report():
|
||||
# ================================================================
|
||||
|
||||
def import_from_evolution():
|
||||
evo_path = os.environ.get('EVOLUTION_PATH', 'agent-evolution/data/evolution.json')
|
||||
evo_path = os.environ.get('EVOLUTION_PATH', 'archive/agent-evolution/data/evolution.json')
|
||||
with open(evo_path) as f:
|
||||
evo = json.load(f)
|
||||
conn = sqlite3.connect(DB_PATH)
|
||||
|
||||
@@ -5,12 +5,12 @@ from datetime import datetime, timezone
|
||||
|
||||
def build_dashboard_data():
|
||||
# Load real evolution data
|
||||
with open('agent-evolution/data/evolution.json') as f:
|
||||
with open('archive/agent-evolution/data/evolution.json') as f:
|
||||
evo = json.load(f)
|
||||
|
||||
# Load model benchmarks for supplemental info
|
||||
try:
|
||||
with open('agent-evolution/data/model-benchmarks-verified.json') as f:
|
||||
with open('archive/agent-evolution/data/model-benchmarks-verified.json') as f:
|
||||
bm = json.load(f)
|
||||
except:
|
||||
bm = {'models': []}
|
||||
@@ -109,7 +109,7 @@ def build_dashboard_data():
|
||||
|
||||
if __name__ == '__main__':
|
||||
data = build_dashboard_data()
|
||||
out = 'agent-evolution/data/dashboard-data.json'
|
||||
out = 'archive/agent-evolution/data/dashboard-data.json'
|
||||
os.makedirs(os.path.dirname(out), exist_ok=True)
|
||||
with open(out, 'w') as f:
|
||||
json.dump(data, f, ensure_ascii=False, indent=2)
|
||||
|
||||
@@ -14,7 +14,7 @@ init_db()
|
||||
import_from_evolution()
|
||||
generate_prompts()
|
||||
|
||||
conn = sqlite3.connect("agent-evolution/data/real-fit.db")
|
||||
conn = sqlite3.connect("archive/agent-evolution/data/real-fit.db")
|
||||
row = conn.execute("SELECT system_prompt, user_prompt, expected_keywords, rubric FROM test_prompts WHERE agent_name = ?", ("code-skeptic",)).fetchone()
|
||||
conn.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user