kb: retire pi-installation association (OMP is the primary harness)
Purge live-state claims that ~/.pi is our harness; keep general pi documentation in omp-docs/ and dated historical records. - README.md: single config source; Legacy Notes reworded - AGENTS.md: drop 'like ~/.pi did' framing - APPEND_SYSTEM.md: okf-spec -> omp-docs/references/okf-spec.md - dotfiles/zsh/.zshrc: systemprompt alias -> APPEND_SYSTEM.md - managed skill llm-fleet-model-swap + model_config_sync skill: single-source models.yml; validation script YAML-only - memories (MEMORY.md, memory_summary.md, learned.md): single source - omp-docs: .okf root -> ~/.omp/omp-docs; de-live pi-era claims in pi/index.md, pi-web-access.md, engineering/agents-files.md
This commit is contained in:
1 parent
eebcfbf5ac
commit
c3f30bdbd0
23 files changed
+81
-76
No files matched your search
Regular → Executable
+7
-6
@@ -1,9 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Validate both JSON and YAML context/tokens match
|
||||
JSON_VAL=$(jq -e '.providers."llamacpp (dankserver)".models[0] | .contextWindow, .maxTokens' ~/.pi/agent/models.json)
|
||||
YAML_VAL=$(python3 -c "import yaml; d=yaml.safe_load(open('/home/dank/.omp/agent/models.yml')); m=d['providers']['llamacpp (dankserver)']['models'][0]; print(m['id'], m['contextWindow'], m['maxTokens'])")
|
||||
if [ "$JSON_VAL" = "$YAML_VAL" ]; then
|
||||
echo "Config in sync: $JSON_VAL"
|
||||
# Validate the OMP model config (single source of truth) parses and reports
|
||||
# the dankserver model's context/tokens.
|
||||
YAML_VAL=$(python3 -c "import yaml; d=yaml.safe_load(open('$HOME/.omp/agent/models.yml')); m=d['providers']['llamacpp (dankserver)']['models'][0]; print(m['id'], m['contextWindow'], m['maxTokens'])")
|
||||
if [ -n "$YAML_VAL" ]; then
|
||||
echo "Config OK: $YAML_VAL"
|
||||
else
|
||||
echo "Mismatch detected. JSON: $JSON_VAL | YAML: $YAML_VAL"
|
||||
echo "YAML parse failed or model missing."
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user