Sync ctx 03af985
Browse filesGitHub commit: 03af985401f8dd95b559ecb86c10322a86d14af5
- .gitattributes +2 -0
- .github/pull_request_template.md +1 -0
- .github/workflows/docs.yml +2 -16
- .github/workflows/huggingface-sync.yml +163 -10
- .github/workflows/publish.yml +47 -15
- .github/workflows/test.yml +74 -15
- CHANGELOG.md +139 -4
- CONTRIBUTING.md +11 -0
- README.md +35 -8
- docs/catalog.md +3 -1
- docs/dashboard.md +31 -9
- docs/entity-onboarding.md +18 -11
- docs/huggingface-publish.md +2 -2
- docs/index.md +25 -15
- docs/knowledge-graph.md +124 -22
- docs/marketplace-registry.md +1 -1
- docs/qa/dashboard-user-story-status.csv +48 -0
- docs/qa/feature-user-story-status.csv +143 -0
- docs/skill-router/index.md +1 -2
- docs/telemetry.md +454 -0
- graph/README.md +92 -16
- graph/communities.json +0 -0
- graph/sample-top60.html +0 -0
- graph/skills-sh-catalog.json.gz +2 -2
- graph/skillspector-audit.jsonl.gz +3 -0
- graph/viz-ai-agents.html +0 -0
- graph/viz-overview.html +0 -0
- graph/viz-python.html +0 -0
- graph/viz-security.html +0 -0
- graph/wiki-graph-runtime.tar.gz +2 -2
- graph/wiki-graph-stats.json +29 -0
- graph/wiki-graph.tar.gz +2 -2
.gitattributes
CHANGED
|
@@ -1,2 +1,4 @@
|
|
| 1 |
graph/wiki-graph.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 2 |
graph/wiki-graph-runtime.tar.gz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 1 |
graph/wiki-graph.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 2 |
graph/wiki-graph-runtime.tar.gz filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
graph/skills-sh-catalog.json.gz filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
graph/skillspector-audit.jsonl.gz filter=lfs diff=lfs merge=lfs -text
|
.github/pull_request_template.md
CHANGED
|
@@ -10,6 +10,7 @@
|
|
| 10 |
|
| 11 |
- [ ] Existing tests pass (`pytest -q`)
|
| 12 |
- [ ] New tests added for changed behaviour
|
|
|
|
| 13 |
- [ ] `ruff check src/` passes
|
| 14 |
- [ ] `mypy src/` passes
|
| 15 |
- [ ] Integration tests checked if embedding code was touched (`pytest -q -m integration`)
|
|
|
|
| 10 |
|
| 11 |
- [ ] Existing tests pass (`pytest -q`)
|
| 12 |
- [ ] New tests added for changed behaviour
|
| 13 |
+
- [ ] MkDocs nav page changes update `docs/qa/feature-user-story-status.csv`
|
| 14 |
- [ ] `ruff check src/` passes
|
| 15 |
- [ ] `mypy src/` passes
|
| 16 |
- [ ] Integration tests checked if embedding code was touched (`pytest -q -m integration`)
|
.github/workflows/docs.yml
CHANGED
|
@@ -51,25 +51,11 @@ jobs:
|
|
| 51 |
run: |
|
| 52 |
python -m mkdocs build --strict
|
| 53 |
|
| 54 |
-
- name: Archive Pages artifact
|
| 55 |
-
run: |
|
| 56 |
-
tar \
|
| 57 |
-
--dereference --hard-dereference \
|
| 58 |
-
--directory site \
|
| 59 |
-
-cvf "$RUNNER_TEMP/artifact.tar" \
|
| 60 |
-
--exclude=.git \
|
| 61 |
-
--exclude=.github \
|
| 62 |
-
--exclude=.[^/]* \
|
| 63 |
-
.
|
| 64 |
-
|
| 65 |
- name: Upload Pages artifact
|
| 66 |
-
uses: actions/upload-artifact@
|
| 67 |
with:
|
| 68 |
-
|
| 69 |
-
path: ${{ runner.temp }}/artifact.tar
|
| 70 |
retention-days: 1
|
| 71 |
-
if-no-files-found: error
|
| 72 |
-
overwrite: true
|
| 73 |
|
| 74 |
deploy:
|
| 75 |
name: Deploy to GitHub Pages
|
|
|
|
| 51 |
run: |
|
| 52 |
python -m mkdocs build --strict
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
- name: Upload Pages artifact
|
| 55 |
+
uses: actions/upload-pages-artifact@v5
|
| 56 |
with:
|
| 57 |
+
path: site
|
|
|
|
| 58 |
retention-days: 1
|
|
|
|
|
|
|
| 59 |
|
| 60 |
deploy:
|
| 61 |
name: Deploy to GitHub Pages
|
.github/workflows/huggingface-sync.yml
CHANGED
|
@@ -19,12 +19,14 @@ concurrency:
|
|
| 19 |
|
| 20 |
jobs:
|
| 21 |
sync:
|
| 22 |
-
name: Sync dataset
|
| 23 |
runs-on: ubuntu-latest
|
|
|
|
| 24 |
steps:
|
| 25 |
- name: Checkout
|
| 26 |
uses: actions/checkout@v5
|
| 27 |
with:
|
|
|
|
| 28 |
lfs: false
|
| 29 |
|
| 30 |
- name: Skip when HF_TOKEN is not configured
|
|
@@ -32,17 +34,162 @@ jobs:
|
|
| 32 |
run: |
|
| 33 |
echo "::notice title=Hugging Face sync skipped::Set the HF_TOKEN repository secret to publish Stevesolun/ctx automatically."
|
| 34 |
|
| 35 |
-
- name:
|
|
|
|
| 36 |
if: ${{ env.HF_TOKEN != '' }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
env:
|
| 38 |
GH_TOKEN: ${{ github.token }}
|
| 39 |
run: |
|
| 40 |
-
|
| 41 |
-
echo "
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
- name: Set up Python
|
| 48 |
if: ${{ env.HF_TOKEN != '' }}
|
|
@@ -58,7 +205,13 @@ jobs:
|
|
| 58 |
python -m pip install --upgrade pip
|
| 59 |
python -m pip install -e ".[dev]" huggingface_hub
|
| 60 |
|
| 61 |
-
- name: Sync Hugging Face dataset
|
| 62 |
if: ${{ env.HF_TOKEN != '' }}
|
|
|
|
|
|
|
| 63 |
run: |
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
jobs:
|
| 21 |
sync:
|
| 22 |
+
name: Sync dataset repo
|
| 23 |
runs-on: ubuntu-latest
|
| 24 |
+
timeout-minutes: 60
|
| 25 |
steps:
|
| 26 |
- name: Checkout
|
| 27 |
uses: actions/checkout@v5
|
| 28 |
with:
|
| 29 |
+
fetch-depth: 0
|
| 30 |
lfs: false
|
| 31 |
|
| 32 |
- name: Skip when HF_TOKEN is not configured
|
|
|
|
| 34 |
run: |
|
| 35 |
echo "::notice title=Hugging Face sync skipped::Set the HF_TOKEN repository secret to publish Stevesolun/ctx automatically."
|
| 36 |
|
| 37 |
+
- name: Classify sync scope
|
| 38 |
+
id: scope
|
| 39 |
if: ${{ env.HF_TOKEN != '' }}
|
| 40 |
+
shell: bash
|
| 41 |
+
env:
|
| 42 |
+
BEFORE_SHA: ${{ github.event.before }}
|
| 43 |
+
EVENT_NAME: ${{ github.event_name }}
|
| 44 |
+
HEAD_SHA: ${{ github.sha }}
|
| 45 |
+
run: |
|
| 46 |
+
set -euo pipefail
|
| 47 |
+
if [[ "$EVENT_NAME" == "workflow_dispatch" ]]; then
|
| 48 |
+
echo "sync_mode=full" >> "$GITHUB_OUTPUT"
|
| 49 |
+
exit 0
|
| 50 |
+
fi
|
| 51 |
+
BASE="$BEFORE_SHA"
|
| 52 |
+
if [[ -z "$BASE" || "$BASE" =~ ^0+$ ]] || ! git cat-file -e "$BASE^{commit}" 2>/dev/null; then
|
| 53 |
+
BASE="$(git rev-parse "$HEAD_SHA^")"
|
| 54 |
+
fi
|
| 55 |
+
git diff --name-only "$BASE" "$HEAD_SHA" > changed-files.txt
|
| 56 |
+
python - <<'PY' >> "$GITHUB_OUTPUT"
|
| 57 |
+
from pathlib import Path
|
| 58 |
+
|
| 59 |
+
files = [
|
| 60 |
+
line.strip().replace("\\", "/")
|
| 61 |
+
for line in Path("changed-files.txt").read_text(encoding="utf-8").splitlines()
|
| 62 |
+
if line.strip()
|
| 63 |
+
]
|
| 64 |
+
card_only_prefixes = (".github/", "docs/", "src/tests/")
|
| 65 |
+
card_only_files = {"README.md", "CHANGELOG.md"}
|
| 66 |
+
card_only = bool(files) and all(
|
| 67 |
+
path in card_only_files or path.startswith(card_only_prefixes)
|
| 68 |
+
for path in files
|
| 69 |
+
)
|
| 70 |
+
print(f"sync_mode={'card' if card_only else 'full'}")
|
| 71 |
+
PY
|
| 72 |
+
|
| 73 |
+
- name: Hydrate required graph artifacts from release assets
|
| 74 |
+
if: ${{ env.HF_TOKEN != '' && steps.scope.outputs.sync_mode == 'full' }}
|
| 75 |
env:
|
| 76 |
GH_TOKEN: ${{ github.token }}
|
| 77 |
run: |
|
| 78 |
+
set -euo pipefail
|
| 79 |
+
echo "Resolving graph artifacts from matching release assets to avoid Git LFS bandwidth."
|
| 80 |
+
python - <<'PY'
|
| 81 |
+
import hashlib
|
| 82 |
+
import json
|
| 83 |
+
import os
|
| 84 |
+
from pathlib import Path
|
| 85 |
+
import subprocess
|
| 86 |
+
import time
|
| 87 |
+
import urllib.request
|
| 88 |
+
|
| 89 |
+
repo = os.environ["GITHUB_REPOSITORY"]
|
| 90 |
+
release_asset_wait_seconds = 300
|
| 91 |
+
release_asset_poll_seconds = 10
|
| 92 |
+
expected_graph_assets = {
|
| 93 |
+
"graph/wiki-graph.tar.gz": {
|
| 94 |
+
"sha256": "d051d4f21208abe3e73975a9c30650150138d88919c27979d725be936a6ea10a",
|
| 95 |
+
"size": 296113770,
|
| 96 |
+
},
|
| 97 |
+
"graph/wiki-graph-runtime.tar.gz": {
|
| 98 |
+
"sha256": "993fc08377fdb09edcff4414c59b10fc121189b4a161bf796e3f8f6600907bb1",
|
| 99 |
+
"size": 122141091,
|
| 100 |
+
},
|
| 101 |
+
"graph/skills-sh-catalog.json.gz": {
|
| 102 |
+
"sha256": "d1bb927e93d65ef86cdbc6d68c7f57511d64c8f13026e8193287a9c4ca6f5815",
|
| 103 |
+
"size": 10763626,
|
| 104 |
+
},
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
def load_releases() -> list[dict]:
|
| 108 |
+
return json.loads(subprocess.check_output(
|
| 109 |
+
["gh", "api", f"repos/{repo}/releases?per_page=50"],
|
| 110 |
+
text=True,
|
| 111 |
+
))
|
| 112 |
+
|
| 113 |
+
def hydrate_from_release(path_name: str, hydrated_min_size: int) -> None:
|
| 114 |
+
artifact = Path(path_name)
|
| 115 |
+
fallback = expected_graph_assets[path_name]
|
| 116 |
+
expected_oid = fallback["sha256"]
|
| 117 |
+
expected_size = int(fallback["size"])
|
| 118 |
+
if artifact.exists():
|
| 119 |
+
pointer = artifact.read_text(encoding="utf-8", errors="replace")
|
| 120 |
+
for line in pointer.splitlines():
|
| 121 |
+
if line.startswith("oid sha256:"):
|
| 122 |
+
expected_oid = line.split(":", 1)[1].strip()
|
| 123 |
+
elif line.startswith("size "):
|
| 124 |
+
expected_size = int(line.split(" ", 1)[1].strip())
|
| 125 |
+
if not pointer.startswith("version https://git-lfs.github.com/spec/v1") and artifact.stat().st_size > hydrated_min_size:
|
| 126 |
+
print(f"{artifact} is already hydrated")
|
| 127 |
+
return
|
| 128 |
+
|
| 129 |
+
deadline = time.monotonic() + release_asset_wait_seconds
|
| 130 |
+
while True:
|
| 131 |
+
candidates = []
|
| 132 |
+
for release in load_releases():
|
| 133 |
+
tag_name = str(release.get("tag_name") or "")
|
| 134 |
+
is_graph_cache = tag_name.startswith("graph-artifacts-")
|
| 135 |
+
if release.get("draft") or (
|
| 136 |
+
release.get("prerelease") and not is_graph_cache
|
| 137 |
+
):
|
| 138 |
+
continue
|
| 139 |
+
for asset in release.get("assets", []):
|
| 140 |
+
if asset.get("name") != artifact.name:
|
| 141 |
+
continue
|
| 142 |
+
digest = str(asset.get("digest") or "")
|
| 143 |
+
size = int(asset.get("size") or 0)
|
| 144 |
+
if size != expected_size:
|
| 145 |
+
continue
|
| 146 |
+
if digest and digest != f"sha256:{expected_oid}":
|
| 147 |
+
continue
|
| 148 |
+
candidates.append((tag_name, asset))
|
| 149 |
+
|
| 150 |
+
if candidates:
|
| 151 |
+
break
|
| 152 |
+
if time.monotonic() >= deadline:
|
| 153 |
+
raise SystemExit(
|
| 154 |
+
f"No release asset matches {path_name} "
|
| 155 |
+
f"sha256:{expected_oid} size:{expected_size}"
|
| 156 |
+
)
|
| 157 |
+
print(
|
| 158 |
+
f"Waiting for matching release asset {artifact.name} "
|
| 159 |
+
f"sha256:{expected_oid} size:{expected_size}"
|
| 160 |
+
)
|
| 161 |
+
time.sleep(release_asset_poll_seconds)
|
| 162 |
+
|
| 163 |
+
source_tag, asset = candidates[0]
|
| 164 |
+
tmp = artifact.with_name(f"{artifact.name}.download")
|
| 165 |
+
sha = hashlib.sha256()
|
| 166 |
+
total = 0
|
| 167 |
+
with urllib.request.urlopen(asset["browser_download_url"], timeout=300) as resp: # noqa: S310
|
| 168 |
+
with tmp.open("wb") as fh:
|
| 169 |
+
while True:
|
| 170 |
+
chunk = resp.read(1024 * 1024)
|
| 171 |
+
if not chunk:
|
| 172 |
+
break
|
| 173 |
+
sha.update(chunk)
|
| 174 |
+
total += len(chunk)
|
| 175 |
+
fh.write(chunk)
|
| 176 |
+
actual_oid = sha.hexdigest()
|
| 177 |
+
if actual_oid != expected_oid or total != expected_size:
|
| 178 |
+
tmp.unlink(missing_ok=True)
|
| 179 |
+
raise SystemExit(
|
| 180 |
+
f"Downloaded {path_name} does not match expected artifact: "
|
| 181 |
+
f"sha256:{actual_oid} size:{total}"
|
| 182 |
+
)
|
| 183 |
+
tmp.replace(artifact)
|
| 184 |
+
print(
|
| 185 |
+
f"Hydrated {path_name} from {source_tag} release asset "
|
| 186 |
+
f"sha256:{actual_oid} size:{total}"
|
| 187 |
+
)
|
| 188 |
+
|
| 189 |
+
hydrate_from_release("graph/wiki-graph.tar.gz", 100_000_000)
|
| 190 |
+
hydrate_from_release("graph/wiki-graph-runtime.tar.gz", 10_000_000)
|
| 191 |
+
hydrate_from_release("graph/skills-sh-catalog.json.gz", 1_000_000)
|
| 192 |
+
PY
|
| 193 |
|
| 194 |
- name: Set up Python
|
| 195 |
if: ${{ env.HF_TOKEN != '' }}
|
|
|
|
| 205 |
python -m pip install --upgrade pip
|
| 206 |
python -m pip install -e ".[dev]" huggingface_hub
|
| 207 |
|
| 208 |
+
- name: Sync Hugging Face dataset repo
|
| 209 |
if: ${{ env.HF_TOKEN != '' }}
|
| 210 |
+
env:
|
| 211 |
+
SYNC_MODE: ${{ steps.scope.outputs.sync_mode }}
|
| 212 |
run: |
|
| 213 |
+
if [[ "$SYNC_MODE" == "card" ]]; then
|
| 214 |
+
python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset --card-only
|
| 215 |
+
else
|
| 216 |
+
python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset
|
| 217 |
+
fi
|
.github/workflows/publish.yml
CHANGED
|
@@ -47,7 +47,7 @@ jobs:
|
|
| 47 |
- name: Set up Python
|
| 48 |
uses: actions/setup-python@v6
|
| 49 |
with:
|
| 50 |
-
python-version: "3.
|
| 51 |
|
| 52 |
- name: Install release tooling
|
| 53 |
run: |
|
|
@@ -155,12 +155,12 @@ jobs:
|
|
| 155 |
release_asset_poll_seconds = 10
|
| 156 |
expected_graph_assets = {
|
| 157 |
"graph/wiki-graph.tar.gz": {
|
| 158 |
-
"sha256": "
|
| 159 |
-
"size":
|
| 160 |
},
|
| 161 |
"graph/wiki-graph-runtime.tar.gz": {
|
| 162 |
-
"sha256": "
|
| 163 |
-
"size":
|
| 164 |
},
|
| 165 |
}
|
| 166 |
|
|
@@ -258,18 +258,18 @@ jobs:
|
|
| 258 |
python src/validate_graph_artifacts.py \
|
| 259 |
--graph-dir graph \
|
| 260 |
--deep \
|
| 261 |
-
--min-nodes
|
| 262 |
-
--min-edges
|
| 263 |
-
--min-skills-sh-nodes
|
| 264 |
--min-semantic-edges 1000000 \
|
| 265 |
-
--expected-nodes
|
| 266 |
-
--expected-edges
|
| 267 |
-
--expected-semantic-edges
|
| 268 |
--expected-harness-nodes 207 \
|
| 269 |
-
--expected-skills-sh-nodes
|
| 270 |
-
--expected-skills-sh-catalog-entries
|
| 271 |
-
--expected-skills-sh-converted
|
| 272 |
-
--expected-skill-pages
|
| 273 |
--expected-agent-pages 467 \
|
| 274 |
--expected-mcp-pages 10790 \
|
| 275 |
--expected-harness-pages 207 \
|
|
@@ -392,6 +392,38 @@ jobs:
|
|
| 392 |
echo "help smoke: $cmd"
|
| 393 |
"$cmd" --help >/dev/null
|
| 394 |
done < ctx-console-help.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 395 |
python -m pip install "${wheel}[harness]"
|
| 396 |
python - <<'PY'
|
| 397 |
import litellm
|
|
|
|
| 47 |
- name: Set up Python
|
| 48 |
uses: actions/setup-python@v6
|
| 49 |
with:
|
| 50 |
+
python-version: "3.11"
|
| 51 |
|
| 52 |
- name: Install release tooling
|
| 53 |
run: |
|
|
|
|
| 155 |
release_asset_poll_seconds = 10
|
| 156 |
expected_graph_assets = {
|
| 157 |
"graph/wiki-graph.tar.gz": {
|
| 158 |
+
"sha256": "e487ec2109803e3c05cb2ca6906e8a0bae681f32a4fe79f3fb2f168fbea2c947",
|
| 159 |
+
"size": 329276669,
|
| 160 |
},
|
| 161 |
"graph/wiki-graph-runtime.tar.gz": {
|
| 162 |
+
"sha256": "993fc08377fdb09edcff4414c59b10fc121189b4a161bf796e3f8f6600907bb1",
|
| 163 |
+
"size": 122141091,
|
| 164 |
},
|
| 165 |
}
|
| 166 |
|
|
|
|
| 258 |
python src/validate_graph_artifacts.py \
|
| 259 |
--graph-dir graph \
|
| 260 |
--deep \
|
| 261 |
+
--min-nodes 79000 \
|
| 262 |
+
--min-edges 1700000 \
|
| 263 |
+
--min-skills-sh-nodes 67000 \
|
| 264 |
--min-semantic-edges 1000000 \
|
| 265 |
+
--expected-nodes 79958 \
|
| 266 |
+
--expected-edges 1778069 \
|
| 267 |
+
--expected-semantic-edges 1088763 \
|
| 268 |
--expected-harness-nodes 207 \
|
| 269 |
+
--expected-skills-sh-nodes 67028 \
|
| 270 |
+
--expected-skills-sh-catalog-entries 67024 \
|
| 271 |
+
--expected-skills-sh-converted 67024 \
|
| 272 |
+
--expected-skill-pages 68494 \
|
| 273 |
--expected-agent-pages 467 \
|
| 274 |
--expected-mcp-pages 10790 \
|
| 275 |
--expected-harness-pages 207 \
|
|
|
|
| 392 |
echo "help smoke: $cmd"
|
| 393 |
"$cmd" --help >/dev/null
|
| 394 |
done < ctx-console-help.txt
|
| 395 |
+
echo "Telemetry release smoke"
|
| 396 |
+
export HOME="$PWD/.telemetry-home"
|
| 397 |
+
export CTX_TELEMETRY_HASH_SALT="release-smoke-salt"
|
| 398 |
+
mkdir -p "$HOME"
|
| 399 |
+
python - <<'PY'
|
| 400 |
+
from ctx.telemetry import record_counter, record_event
|
| 401 |
+
|
| 402 |
+
record_event(
|
| 403 |
+
"ctx.release.smoke",
|
| 404 |
+
source="publish-workflow",
|
| 405 |
+
payload={"query": "raw-release-telemetry-sentinel"},
|
| 406 |
+
)
|
| 407 |
+
record_counter(
|
| 408 |
+
"ctx.release.smoke",
|
| 409 |
+
attributes={"query": "raw-release-telemetry-sentinel"},
|
| 410 |
+
)
|
| 411 |
+
PY
|
| 412 |
+
ctx-telemetry-export --dry-run --json
|
| 413 |
+
ctx-telemetry-export \
|
| 414 |
+
--sink local_jsonl \
|
| 415 |
+
--output telemetry-events.jsonl \
|
| 416 |
+
--json
|
| 417 |
+
ctx-telemetry-export \
|
| 418 |
+
--signal metrics \
|
| 419 |
+
--sink local_jsonl \
|
| 420 |
+
--output telemetry-metrics.jsonl \
|
| 421 |
+
--json
|
| 422 |
+
ctx-telemetry-retention plan --signal all --json
|
| 423 |
+
if grep -R "raw-release-telemetry-sentinel" telemetry-events.jsonl telemetry-metrics.jsonl; then
|
| 424 |
+
echo "raw telemetry sentinel leaked into exported telemetry" >&2
|
| 425 |
+
exit 1
|
| 426 |
+
fi
|
| 427 |
python -m pip install "${wheel}[harness]"
|
| 428 |
python - <<'PY'
|
| 429 |
import litellm
|
.github/workflows/test.yml
CHANGED
|
@@ -31,6 +31,7 @@ jobs:
|
|
| 31 |
package_changed: ${{ steps.classify.outputs.package_changed }}
|
| 32 |
similarity_changed: ${{ steps.classify.outputs.similarity_changed }}
|
| 33 |
source_changed: ${{ steps.classify.outputs.source_changed }}
|
|
|
|
| 34 |
steps:
|
| 35 |
- name: Checkout with full history
|
| 36 |
uses: actions/checkout@v5
|
|
@@ -149,6 +150,33 @@ jobs:
|
|
| 149 |
python -m pip install --upgrade pip
|
| 150 |
python -m pip install ".[dev,embeddings]"
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
- name: Run similarity precision/recall gate
|
| 153 |
env:
|
| 154 |
CTX_REQUIRE_SIMILARITY_EVAL: "1"
|
|
@@ -326,12 +354,12 @@ jobs:
|
|
| 326 |
release_asset_poll_seconds = 10
|
| 327 |
expected_graph_assets = {
|
| 328 |
"graph/wiki-graph.tar.gz": {
|
| 329 |
-
"sha256": "
|
| 330 |
-
"size":
|
| 331 |
},
|
| 332 |
"graph/wiki-graph-runtime.tar.gz": {
|
| 333 |
-
"sha256": "
|
| 334 |
-
"size":
|
| 335 |
},
|
| 336 |
}
|
| 337 |
|
|
@@ -426,18 +454,18 @@ jobs:
|
|
| 426 |
python src/validate_graph_artifacts.py \
|
| 427 |
--graph-dir graph \
|
| 428 |
--deep \
|
| 429 |
-
--min-nodes
|
| 430 |
-
--min-edges
|
| 431 |
-
--min-skills-sh-nodes
|
| 432 |
--min-semantic-edges 1000000 \
|
| 433 |
-
--expected-nodes
|
| 434 |
-
--expected-edges
|
| 435 |
-
--expected-semantic-edges
|
| 436 |
--expected-harness-nodes 207 \
|
| 437 |
-
--expected-skills-sh-nodes
|
| 438 |
-
--expected-skills-sh-catalog-entries
|
| 439 |
-
--expected-skills-sh-converted
|
| 440 |
-
--expected-skill-pages
|
| 441 |
--expected-agent-pages 467 \
|
| 442 |
--expected-mcp-pages 10790 \
|
| 443 |
--expected-harness-pages 207 \
|
|
@@ -480,7 +508,7 @@ jobs:
|
|
| 480 |
PY
|
| 481 |
|
| 482 |
- name: Cache Playwright browsers
|
| 483 |
-
uses: actions/cache@
|
| 484 |
with:
|
| 485 |
path: ~/.cache/ms-playwright
|
| 486 |
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
|
|
@@ -493,6 +521,36 @@ jobs:
|
|
| 493 |
- name: Run browser security tests
|
| 494 |
run: pytest -q --no-cov -m browser src/tests/test_ctx_monitor_browser.py
|
| 495 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 496 |
package-build:
|
| 497 |
name: "Build wheel package"
|
| 498 |
needs: classify
|
|
@@ -709,6 +767,7 @@ jobs:
|
|
| 709 |
- package-build
|
| 710 |
- clean-host-contract
|
| 711 |
- no-test-no-merge
|
|
|
|
| 712 |
if: ${{ always() }}
|
| 713 |
steps:
|
| 714 |
- name: Checkout
|
|
|
|
| 31 |
package_changed: ${{ steps.classify.outputs.package_changed }}
|
| 32 |
similarity_changed: ${{ steps.classify.outputs.similarity_changed }}
|
| 33 |
source_changed: ${{ steps.classify.outputs.source_changed }}
|
| 34 |
+
telemetry_changed: ${{ steps.classify.outputs.telemetry_changed }}
|
| 35 |
steps:
|
| 36 |
- name: Checkout with full history
|
| 37 |
uses: actions/checkout@v5
|
|
|
|
| 150 |
python -m pip install --upgrade pip
|
| 151 |
python -m pip install ".[dev,embeddings]"
|
| 152 |
|
| 153 |
+
- name: Cache MiniLM model
|
| 154 |
+
uses: actions/cache@v5
|
| 155 |
+
with:
|
| 156 |
+
path: ~/.cache/huggingface
|
| 157 |
+
key: hf-sentence-transformers-all-MiniLM-L6-v2-v1
|
| 158 |
+
|
| 159 |
+
- name: Pre-download MiniLM model
|
| 160 |
+
env:
|
| 161 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 162 |
+
run: |
|
| 163 |
+
python - <<'PY'
|
| 164 |
+
import time
|
| 165 |
+
from sentence_transformers import SentenceTransformer
|
| 166 |
+
|
| 167 |
+
model = "sentence-transformers/all-MiniLM-L6-v2"
|
| 168 |
+
for attempt in range(1, 5):
|
| 169 |
+
try:
|
| 170 |
+
SentenceTransformer(model)
|
| 171 |
+
print(f"ready: {model}")
|
| 172 |
+
break
|
| 173 |
+
except Exception as exc:
|
| 174 |
+
print(f"attempt {attempt} failed: {exc}", flush=True)
|
| 175 |
+
if attempt == 4:
|
| 176 |
+
raise
|
| 177 |
+
time.sleep(15 * attempt)
|
| 178 |
+
PY
|
| 179 |
+
|
| 180 |
- name: Run similarity precision/recall gate
|
| 181 |
env:
|
| 182 |
CTX_REQUIRE_SIMILARITY_EVAL: "1"
|
|
|
|
| 354 |
release_asset_poll_seconds = 10
|
| 355 |
expected_graph_assets = {
|
| 356 |
"graph/wiki-graph.tar.gz": {
|
| 357 |
+
"sha256": "e487ec2109803e3c05cb2ca6906e8a0bae681f32a4fe79f3fb2f168fbea2c947",
|
| 358 |
+
"size": 329276669,
|
| 359 |
},
|
| 360 |
"graph/wiki-graph-runtime.tar.gz": {
|
| 361 |
+
"sha256": "993fc08377fdb09edcff4414c59b10fc121189b4a161bf796e3f8f6600907bb1",
|
| 362 |
+
"size": 122141091,
|
| 363 |
},
|
| 364 |
}
|
| 365 |
|
|
|
|
| 454 |
python src/validate_graph_artifacts.py \
|
| 455 |
--graph-dir graph \
|
| 456 |
--deep \
|
| 457 |
+
--min-nodes 79000 \
|
| 458 |
+
--min-edges 1700000 \
|
| 459 |
+
--min-skills-sh-nodes 67000 \
|
| 460 |
--min-semantic-edges 1000000 \
|
| 461 |
+
--expected-nodes 79958 \
|
| 462 |
+
--expected-edges 1778069 \
|
| 463 |
+
--expected-semantic-edges 1088763 \
|
| 464 |
--expected-harness-nodes 207 \
|
| 465 |
+
--expected-skills-sh-nodes 67028 \
|
| 466 |
+
--expected-skills-sh-catalog-entries 67024 \
|
| 467 |
+
--expected-skills-sh-converted 67024 \
|
| 468 |
+
--expected-skill-pages 68494 \
|
| 469 |
--expected-agent-pages 467 \
|
| 470 |
--expected-mcp-pages 10790 \
|
| 471 |
--expected-harness-pages 207 \
|
|
|
|
| 508 |
PY
|
| 509 |
|
| 510 |
- name: Cache Playwright browsers
|
| 511 |
+
uses: actions/cache@v5
|
| 512 |
with:
|
| 513 |
path: ~/.cache/ms-playwright
|
| 514 |
key: playwright-${{ runner.os }}-${{ steps.playwright.outputs.version }}
|
|
|
|
| 521 |
- name: Run browser security tests
|
| 522 |
run: pytest -q --no-cov -m browser src/tests/test_ctx_monitor_browser.py
|
| 523 |
|
| 524 |
+
telemetry-enterprise:
|
| 525 |
+
name: "Telemetry enterprise gate"
|
| 526 |
+
needs: classify
|
| 527 |
+
if: ${{ github.event_name == 'push' || needs.classify.outputs.telemetry_changed == 'true' }}
|
| 528 |
+
runs-on: ubuntu-latest
|
| 529 |
+
steps:
|
| 530 |
+
- name: Checkout
|
| 531 |
+
uses: actions/checkout@v5
|
| 532 |
+
with:
|
| 533 |
+
lfs: false
|
| 534 |
+
|
| 535 |
+
- name: Set up Python 3.12
|
| 536 |
+
uses: actions/setup-python@v6
|
| 537 |
+
with:
|
| 538 |
+
python-version: "3.12"
|
| 539 |
+
cache: pip
|
| 540 |
+
cache-dependency-path: pyproject.toml
|
| 541 |
+
|
| 542 |
+
- name: Install telemetry test dependencies
|
| 543 |
+
run: |
|
| 544 |
+
python -m pip install --upgrade pip
|
| 545 |
+
python -m pip install ".[dev]"
|
| 546 |
+
|
| 547 |
+
- name: Run telemetry privacy and export tests
|
| 548 |
+
run: |
|
| 549 |
+
python -m pytest -q --no-cov \
|
| 550 |
+
src/tests/test_enterprise_telemetry.py \
|
| 551 |
+
src/tests/test_harness_cli_run.py \
|
| 552 |
+
-k "telemetry or runtime_lifecycle"
|
| 553 |
+
|
| 554 |
package-build:
|
| 555 |
name: "Build wheel package"
|
| 556 |
needs: classify
|
|
|
|
| 767 |
- package-build
|
| 768 |
- clean-host-contract
|
| 769 |
- no-test-no-merge
|
| 770 |
+
- telemetry-enterprise
|
| 771 |
if: ${{ always() }}
|
| 772 |
steps:
|
| 773 |
- name: Checkout
|
CHANGELOG.md
CHANGED
|
@@ -5,7 +5,134 @@ Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
| 5 |
|
| 6 |
## [Unreleased]
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
## [1.0.11] - 2026-05-28
|
| 11 |
|
|
@@ -196,7 +323,7 @@ Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
| 196 |
### Fixed
|
| 197 |
|
| 198 |
- Published the post-0.7.16 hardening fixes with release metadata that matches
|
| 199 |
-
the CI runner's
|
| 200 |
|
| 201 |
## [0.7.17] - 2026-05-09
|
| 202 |
|
|
@@ -261,7 +388,7 @@ Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
| 261 |
- Kept the graph artifact CI check useful when GitHub LFS budget is
|
| 262 |
exhausted by validating the committed LFS pointer and running full deep
|
| 263 |
artifact validation locally before release.
|
| 264 |
-
- Refreshed README and docs
|
| 265 |
regression tests were added.
|
| 266 |
|
| 267 |
## [0.7.7] - 2026-05-05
|
|
@@ -276,7 +403,7 @@ Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
| 276 |
catalog matches through the same fit/provider gates.
|
| 277 |
- Propagated incremental semantic top-K contamination to a fixed point so
|
| 278 |
larger catalog updates do not preserve second-order stale neighbors.
|
| 279 |
-
- Synced README and docs
|
| 280 |
|
| 281 |
## [0.7.6] - 2026-05-05
|
| 282 |
|
|
@@ -1608,6 +1735,14 @@ pass. Full test suite: **1316 passed, 2 skipped**.
|
|
| 1608 |
- 5 dead imports removed (`os`, `Mapping`, `timedelta` from
|
| 1609 |
`ctx_lifecycle`; `Path` from `intake_gate`, `intake_pipeline`).
|
| 1610 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1611 |
[1.0.11]: https://github.com/stevesolun/ctx/releases/tag/v1.0.11
|
| 1612 |
[1.0.10]: https://github.com/stevesolun/ctx/releases/tag/v1.0.10
|
| 1613 |
[1.0.9]: https://github.com/stevesolun/ctx/releases/tag/v1.0.9
|
|
|
|
| 5 |
|
| 6 |
## [Unreleased]
|
| 7 |
|
| 8 |
+
### Added
|
| 9 |
+
|
| 10 |
+
- Added enterprise OpenTelemetry-ready telemetry across API, MCP, CLI/runtime,
|
| 11 |
+
ctx-core tool, skill lifecycle, and CI classifier boundaries, with local
|
| 12 |
+
NDJSON collection plus ready-to-use OTLP export configuration.
|
| 13 |
+
- Added telemetry retention, governance, collector, dashboard, alert, and
|
| 14 |
+
release-gate runbook assets so enterprise installs can operate telemetry
|
| 15 |
+
without leaking payloads by default.
|
| 16 |
+
|
| 17 |
+
### Fixed
|
| 18 |
+
|
| 19 |
+
- Hardened structured exception telemetry with hashed messages/stacks and
|
| 20 |
+
deterministic nested salt handling for privacy-preserving correlation.
|
| 21 |
+
|
| 22 |
+
## [1.0.19] - 2026-06-23
|
| 23 |
+
|
| 24 |
+
### Fixed
|
| 25 |
+
|
| 26 |
+
- Hardened the dashboard smoke contract so it now checks the `/live` alias and
|
| 27 |
+
the local catalog page, not only the older `/events` and JSON catalog search
|
| 28 |
+
paths.
|
| 29 |
+
- Added monitor API regressions for typed sidecar JSON reads and the real
|
| 30 |
+
`/api/unload` agent path without mocking the runtime unload implementation.
|
| 31 |
+
|
| 32 |
+
## [1.0.18] - 2026-06-22
|
| 33 |
+
|
| 34 |
+
### Fixed
|
| 35 |
+
|
| 36 |
+
- Fixed the PyPI publish workflow static gate by aligning it with the
|
| 37 |
+
canonical Python 3.11 mypy target used by main CI. This supersedes the
|
| 38 |
+
failed `v1.0.17` publish attempt, whose tag used Python 3.12 for the
|
| 39 |
+
release static gate while mypy parsed the package as Python 3.11.
|
| 40 |
+
- Removed the remaining dashboard-entity test dependency on private
|
| 41 |
+
`ctx.monitor.compat._*` helpers by routing it through the stable
|
| 42 |
+
`ctx.monitor.testing` facade.
|
| 43 |
+
|
| 44 |
+
## [1.0.17] - 2026-06-22
|
| 45 |
+
|
| 46 |
+
### Changed
|
| 47 |
+
|
| 48 |
+
- Split more of `ctx-monitor` into focused modules: graph artifact/index
|
| 49 |
+
helpers, wiki entity/Markdown renderers, and the graph page client script.
|
| 50 |
+
- Kept the flat `ctx.monitor.compat` layer as the tested backcompat surface
|
| 51 |
+
while normalizing its source encoding for standard AST tooling.
|
| 52 |
+
- Added a stable `ctx.monitor.testing` facade so monitor tests no longer
|
| 53 |
+
depend directly on private `compat._*` names.
|
| 54 |
+
|
| 55 |
+
## [1.0.16] - 2026-06-20
|
| 56 |
+
|
| 57 |
+
### Fixed
|
| 58 |
+
|
| 59 |
+
- Fixed `ctx-init --graph` for the large runtime graph artifact shipped in
|
| 60 |
+
`v1.0.15`. The installer now scans large `graph.json` files for required
|
| 61 |
+
node-link keys without parsing the whole graph, so first-time PyPI installs
|
| 62 |
+
can validate and install the released runtime graph.
|
| 63 |
+
- Supersedes `v1.0.15` for public install flows because `v1.0.15` published
|
| 64 |
+
successfully but the public smoke exposed a runtime graph validation false
|
| 65 |
+
negative.
|
| 66 |
+
|
| 67 |
+
## [1.0.15] - 2026-06-20
|
| 68 |
+
|
| 69 |
+
### Added
|
| 70 |
+
|
| 71 |
+
- Added modular graph and wiki pack manifests with immutable base packs,
|
| 72 |
+
overlay packs, tombstones, and compaction/promotion validation so normal
|
| 73 |
+
entity updates no longer require treating one monolithic graph/wiki tarball
|
| 74 |
+
as the only source of truth.
|
| 75 |
+
- Added the SQLite graph-store fast path for dashboard/search/neighborhood
|
| 76 |
+
reads, plus queue-driven pack compaction and status reporting in the local
|
| 77 |
+
monitor.
|
| 78 |
+
- Added Skillspector release artifacts and audit/remediation services so the
|
| 79 |
+
shipped catalog can surface stale, low-quality, or oversized skill records
|
| 80 |
+
with explicit evidence.
|
| 81 |
+
|
| 82 |
+
### Fixed
|
| 83 |
+
|
| 84 |
+
- Fixed the post-merge dashboard pack-compaction status typing so the full
|
| 85 |
+
package mypy gate passes on the modular graph release branch.
|
| 86 |
+
|
| 87 |
+
## [1.0.14] - 2026-06-17
|
| 88 |
+
|
| 89 |
+
### Fixed
|
| 90 |
+
|
| 91 |
+
- Fixed the local dashboard `/catalog` and `/catalog/` routes so README and
|
| 92 |
+
docs catalog links open the searchable entity catalog instead of returning
|
| 93 |
+
404.
|
| 94 |
+
- Fixed graph export/load compatibility with NetworkX versions that do not
|
| 95 |
+
accept the `edges=` keyword on `node_link_data()` and `node_link_graph()`,
|
| 96 |
+
while preserving ctx's canonical on-disk `edges` JSON key.
|
| 97 |
+
|
| 98 |
+
## [1.0.13] - 2026-06-17
|
| 99 |
+
|
| 100 |
+
### Fixed
|
| 101 |
+
|
| 102 |
+
- Fixed custom/API/local model harness recommendations in runtime-only graph
|
| 103 |
+
installs by scoring harness page body text, including graph-connection
|
| 104 |
+
sections, instead of frontmatter alone.
|
| 105 |
+
- Stopped conversational filler such as "compatible", "across", "own", and
|
| 106 |
+
"coding" from counting as hard harness fit requirements.
|
| 107 |
+
|
| 108 |
+
## [1.0.12] - 2026-06-16
|
| 109 |
+
|
| 110 |
+
### Added
|
| 111 |
+
|
| 112 |
+
- Added first-class `ctx-skill-unload` and `ctx-agent-unload` console
|
| 113 |
+
scripts so skill and agent lifecycle cleanup has the same public CLI shape
|
| 114 |
+
as MCP uninstall flows.
|
| 115 |
+
- Added browser A-Z dashboard coverage for Manage CRUD, Config save, Harness
|
| 116 |
+
Setup, Sessions, KPI, Runtime, graph/wiki/docs, live events, and mutation
|
| 117 |
+
security paths.
|
| 118 |
+
|
| 119 |
+
### Changed
|
| 120 |
+
|
| 121 |
+
- Made custom/API/local model harness recommendations fast enough for the
|
| 122 |
+
interactive wizard by using the harness-only catalog path before falling
|
| 123 |
+
back to the full graph.
|
| 124 |
+
- Added Hugging Face to the dashboard Harness Setup provider list and carried
|
| 125 |
+
`--api-key-env` consistently through `ctx-init` and
|
| 126 |
+
`ctx-harness-install --recommend`.
|
| 127 |
+
|
| 128 |
+
### Fixed
|
| 129 |
+
|
| 130 |
+
- Fixed Windows UTF-8 BOM JSON parsing in repo scans so PowerShell-created
|
| 131 |
+
`package.json` files do not degrade stack detection.
|
| 132 |
+
- Fixed dashboard Config saves so unchanged boolean defaults are not written
|
| 133 |
+
as accidental user overrides.
|
| 134 |
+
- Suppressed the expected empty-graph warning in clean-host fast mode while
|
| 135 |
+
preserving warnings for real graph corruption.
|
| 136 |
|
| 137 |
## [1.0.11] - 2026-05-28
|
| 138 |
|
|
|
|
| 323 |
### Fixed
|
| 324 |
|
| 325 |
- Published the post-0.7.16 hardening fixes with release metadata that matches
|
| 326 |
+
the CI runner's test inventory count.
|
| 327 |
|
| 328 |
## [0.7.17] - 2026-05-09
|
| 329 |
|
|
|
|
| 388 |
- Kept the graph artifact CI check useful when GitHub LFS budget is
|
| 389 |
exhausted by validating the committed LFS pointer and running full deep
|
| 390 |
artifact validation locally before release.
|
| 391 |
+
- Refreshed README and docs test inventory counts after the CI classifier
|
| 392 |
regression tests were added.
|
| 393 |
|
| 394 |
## [0.7.7] - 2026-05-05
|
|
|
|
| 403 |
catalog matches through the same fit/provider gates.
|
| 404 |
- Propagated incremental semantic top-K contamination to a fixed point so
|
| 405 |
larger catalog updates do not preserve second-order stale neighbors.
|
| 406 |
+
- Synced README and docs test inventory counts with the current suite.
|
| 407 |
|
| 408 |
## [0.7.6] - 2026-05-05
|
| 409 |
|
|
|
|
| 1735 |
- 5 dead imports removed (`os`, `Mapping`, `timedelta` from
|
| 1736 |
`ctx_lifecycle`; `Path` from `intake_gate`, `intake_pipeline`).
|
| 1737 |
|
| 1738 |
+
[1.0.19]: https://github.com/stevesolun/ctx/releases/tag/v1.0.19
|
| 1739 |
+
[1.0.18]: https://github.com/stevesolun/ctx/releases/tag/v1.0.18
|
| 1740 |
+
[1.0.17]: https://github.com/stevesolun/ctx/releases/tag/v1.0.17
|
| 1741 |
+
[1.0.16]: https://github.com/stevesolun/ctx/releases/tag/v1.0.16
|
| 1742 |
+
[1.0.15]: https://github.com/stevesolun/ctx/releases/tag/v1.0.15
|
| 1743 |
+
[1.0.14]: https://github.com/stevesolun/ctx/releases/tag/v1.0.14
|
| 1744 |
+
[1.0.13]: https://github.com/stevesolun/ctx/releases/tag/v1.0.13
|
| 1745 |
+
[1.0.12]: https://github.com/stevesolun/ctx/releases/tag/v1.0.12
|
| 1746 |
[1.0.11]: https://github.com/stevesolun/ctx/releases/tag/v1.0.11
|
| 1747 |
[1.0.10]: https://github.com/stevesolun/ctx/releases/tag/v1.0.10
|
| 1748 |
[1.0.9]: https://github.com/stevesolun/ctx/releases/tag/v1.0.9
|
CONTRIBUTING.md
CHANGED
|
@@ -26,6 +26,17 @@ pytest -q -m integration # embedding precision/recall tests
|
|
| 26 |
pytest --cov=src -q # with coverage report
|
| 27 |
```
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
## Code style
|
| 30 |
|
| 31 |
Both **ruff** and **mypy** must pass before a PR is merged.
|
|
|
|
| 26 |
pytest --cov=src -q # with coverage report
|
| 27 |
```
|
| 28 |
|
| 29 |
+
## Documentation changes
|
| 30 |
+
|
| 31 |
+
Public MkDocs nav pages are release-tracked in
|
| 32 |
+
`docs/qa/feature-user-story-status.csv`. If you add, remove, or move a `.md`
|
| 33 |
+
entry under `mkdocs.yml` `nav`, update the canonical feature tracker with the
|
| 34 |
+
exact `docs/...md` `entrypoint_or_route` and run:
|
| 35 |
+
|
| 36 |
+
```bash
|
| 37 |
+
python -m pytest src/tests/test_feature_user_story_tracker.py -q
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
## Code style
|
| 41 |
|
| 42 |
Both **ruff** and **mypy** must pass before a PR is merged.
|
README.md
CHANGED
|
@@ -18,16 +18,23 @@ tags:
|
|
| 18 |
[](LICENSE)
|
| 19 |
[](https://python.org)
|
| 20 |
[](https://pypi.org/project/claude-ctx/)
|
| 21 |
-
[](https://stevesolun.github.io/ctx/catalog/?type=agent)
|
| 25 |
[](https://stevesolun.github.io/ctx/catalog/?type=mcp-server)
|
| 26 |
[](https://stevesolun.github.io/ctx/catalog/?type=harness)
|
| 27 |
[](https://stevesolun.github.io/ctx/)
|
| 28 |
[](https://hits.sh/github.com/stevesolun/ctx/)
|
| 29 |
|
| 30 |
-
ctx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
recommends a small, top-scored bundle of skills, agents, and MCP servers for
|
| 32 |
the current task. If you use your own local/API model instead of Claude Code,
|
| 33 |
ctx has a separate harness setup flow: tell it the model and goal, review the
|
|
@@ -35,18 +42,37 @@ recommended harness, then install with dry-run/update/uninstall controls.
|
|
| 35 |
|
| 36 |
Current shipped snapshot:
|
| 37 |
|
| 38 |
-
- **
|
| 39 |
- **467 agents**, **10,790 MCP servers**, and **207 harnesses**.
|
| 40 |
-
- **
|
| 41 |
- **28,612 long skill bodies** converted through the micro-skill gate instead of shipping raw long prompts.
|
| 42 |
- Entity updates for skills, agents, MCPs, and harnesses print benefits/risks and skip replacement unless you explicitly approve the update.
|
| 43 |
|
| 44 |
## Why it exists
|
| 45 |
|
| 46 |
-
- **Discovery** — with
|
| 47 |
- **Context budget** — loading everything wastes tokens and degrades quality. You need the right 10–15 per session.
|
| 48 |
- **Skill rot** — skills you installed months ago and never used are cluttering context. Stale ones should be flagged automatically.
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
## Install
|
| 51 |
|
| 52 |
```bash
|
|
@@ -81,7 +107,7 @@ ctx-init --graph --graph-install-mode full
|
|
| 81 |
```
|
| 82 |
|
| 83 |
The full `wiki-graph.tar.gz` includes the shipped skill index,
|
| 84 |
-
|
| 85 |
installable `SKILL.md` files under `converted/`,
|
| 86 |
and 207 harness pages under
|
| 87 |
`entities/harnesses/`.
|
|
@@ -109,6 +135,7 @@ ctx-skill-quality list # four-signal quality score for every skill
|
|
| 109 |
ctx-skill-quality explain python-patterns # drill into a single skill
|
| 110 |
ctx-skill-health dashboard # structural health + drift detection
|
| 111 |
ctx-toolbox run --event pre-commit # run a council on the current diff
|
|
|
|
| 112 |
ctx-monitor serve # local dashboard: http://127.0.0.1:8765/
|
| 113 |
```
|
| 114 |
|
|
|
|
| 18 |
[](LICENSE)
|
| 19 |
[](https://python.org)
|
| 20 |
[](https://pypi.org/project/claude-ctx/)
|
| 21 |
+
[](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
|
| 22 |
+
[](https://stevesolun.github.io/ctx/knowledge-graph/)
|
| 23 |
+
[](https://stevesolun.github.io/ctx/catalog/?type=skill)
|
| 24 |
[](https://stevesolun.github.io/ctx/catalog/?type=agent)
|
| 25 |
[](https://stevesolun.github.io/ctx/catalog/?type=mcp-server)
|
| 26 |
[](https://stevesolun.github.io/ctx/catalog/?type=harness)
|
| 27 |
[](https://stevesolun.github.io/ctx/)
|
| 28 |
[](https://hits.sh/github.com/stevesolun/ctx/)
|
| 29 |
|
| 30 |
+
**ctx is not an Amazon-style catalog of skills, MCPs, agents, tools, or
|
| 31 |
+
harnesses. It is a recommendation layer.** Point it at your organization's own
|
| 32 |
+
tools, or use the pre-built graph, and ctx recommends the smallest useful bundle
|
| 33 |
+
for the current development window. The goal is to load the right skills,
|
| 34 |
+
agents, MCP servers, and optional harness at the right moment so hosted LLMs
|
| 35 |
+
burn fewer tokens and local models waste less CPU/GPU work.
|
| 36 |
+
|
| 37 |
+
ctx watches what you are building, walks a **79,958-node** graph, and
|
| 38 |
recommends a small, top-scored bundle of skills, agents, and MCP servers for
|
| 39 |
the current task. If you use your own local/API model instead of Claude Code,
|
| 40 |
ctx has a separate harness setup flow: tell it the model and goal, review the
|
|
|
|
| 42 |
|
| 43 |
Current shipped snapshot:
|
| 44 |
|
| 45 |
+
- **68,494 skill entity pages**, with **67,024** hydrated installable `SKILL.md` bodies.
|
| 46 |
- **467 agents**, **10,790 MCP servers**, and **207 harnesses**.
|
| 47 |
+
- **1,778,069 graph edges** across semantic similarity, tags, slug tokens, source overlap, direct links, quality, usage, type affinity, and graph structure.
|
| 48 |
- **28,612 long skill bodies** converted through the micro-skill gate instead of shipping raw long prompts.
|
| 49 |
- Entity updates for skills, agents, MCPs, and harnesses print benefits/risks and skip replacement unless you explicitly approve the update.
|
| 50 |
|
| 51 |
## Why it exists
|
| 52 |
|
| 53 |
+
- **Discovery** — with 68,494 skill pages, 467 agents, 10,790 MCP servers, and 207 harnesses, you can't possibly know which exist or which apply to your current work.
|
| 54 |
- **Context budget** — loading everything wastes tokens and degrades quality. You need the right 10–15 per session.
|
| 55 |
- **Skill rot** — skills you installed months ago and never used are cluttering context. Stale ones should be flagged automatically.
|
| 56 |
|
| 57 |
+
## Example user stories
|
| 58 |
+
|
| 59 |
+
The canonical QA tracker is
|
| 60 |
+
[`docs/qa/feature-user-story-status.csv`](docs/qa/feature-user-story-status.csv).
|
| 61 |
+
The dashboard-specific tracker
|
| 62 |
+
[`docs/qa/dashboard-user-story-status.csv`](docs/qa/dashboard-user-story-status.csv)
|
| 63 |
+
is a supporting detail ledger; canonical status and release readiness stay in the
|
| 64 |
+
feature tracker.
|
| 65 |
+
Rows for public MkDocs pages use the exact `docs/...md` path from `mkdocs.yml`
|
| 66 |
+
as `entrypoint_or_route`, so adding a nav page also means adding or updating
|
| 67 |
+
the matching feature-tracker row.
|
| 68 |
+
Examples from that tracker:
|
| 69 |
+
|
| 70 |
+
| Tracker row | User story | Expected ctx behavior |
|
| 71 |
+
| --- | --- | --- |
|
| 72 |
+
| `CLI-002` | As a user I can ask ctx for current repo recommendations. | `ctx-recommend` returns a capped, graph-scored bundle of relevant skills, agents, and MCP servers from the shared recommendation engine. |
|
| 73 |
+
| `CLI-026` | As a local/API model user I can get harness recommendations and install one. | `ctx-harness-install --dry-run` interviews model/goals/tools/privacy, recommends a fitting harness above threshold, or emits a no-fit custom harness PRD. |
|
| 74 |
+
| `API-011` | As a dashboard user I can manually add, edit, or delete entities. | `/api/entity/upsert` and `/api/entity/delete` validate type, slug, and body, then queue safe graph/wiki updates instead of mutating blindly. |
|
| 75 |
+
|
| 76 |
## Install
|
| 77 |
|
| 78 |
```bash
|
|
|
|
| 107 |
```
|
| 108 |
|
| 109 |
The full `wiki-graph.tar.gz` includes the shipped skill index,
|
| 110 |
+
68,494 skill entity pages under `entities/skills/`, 67,024 hydrated
|
| 111 |
installable `SKILL.md` files under `converted/`,
|
| 112 |
and 207 harness pages under
|
| 113 |
`entities/harnesses/`.
|
|
|
|
| 135 |
ctx-skill-quality explain python-patterns # drill into a single skill
|
| 136 |
ctx-skill-health dashboard # structural health + drift detection
|
| 137 |
ctx-toolbox run --event pre-commit # run a council on the current diff
|
| 138 |
+
ctx-telemetry-export --dry-run --json # inspect privacy-redacted telemetry spool
|
| 139 |
ctx-monitor serve # local dashboard: http://127.0.0.1:8765/
|
| 140 |
```
|
| 141 |
|
docs/catalog.md
CHANGED
|
@@ -44,10 +44,11 @@ It is public and always reachable. The full live catalog runs locally inside
|
|
| 44 |
<p id="ctx-catalog-count" class="ctx-catalog-muted"></p>
|
| 45 |
|
| 46 |
<div id="ctx-catalog-grid" class="ctx-catalog-grid">
|
|
|
|
| 47 |
<article class="ctx-catalog-card" data-type="skill" data-search="skill prompt workflow testing code review frontend backend security research">
|
| 48 |
<span class="ctx-catalog-pill">Skills</span>
|
| 49 |
<h3>Skills</h3>
|
| 50 |
-
<p class="ctx-catalog-muted">
|
| 51 |
<a class="md-button" href="./?type=skill">Filter tiles</a>
|
| 52 |
<a class="md-button" href="../dashboard/#catalog-badge-links">Open full catalog locally</a>
|
| 53 |
</article>
|
|
@@ -149,6 +150,7 @@ It is public and always reachable. The full live catalog runs locally inside
|
|
| 149 |
<a class="md-button" href="./?type=harness&q=tool+access">Filter tiles</a>
|
| 150 |
<a class="md-button" href="../dashboard/#catalog-badge-links">Open full catalog locally</a>
|
| 151 |
</article>
|
|
|
|
| 152 |
</div>
|
| 153 |
</div>
|
| 154 |
|
|
|
|
| 44 |
<p id="ctx-catalog-count" class="ctx-catalog-muted"></p>
|
| 45 |
|
| 46 |
<div id="ctx-catalog-grid" class="ctx-catalog-grid">
|
| 47 |
+
<!-- ctx-catalog:begin -->
|
| 48 |
<article class="ctx-catalog-card" data-type="skill" data-search="skill prompt workflow testing code review frontend backend security research">
|
| 49 |
<span class="ctx-catalog-pill">Skills</span>
|
| 50 |
<h3>Skills</h3>
|
| 51 |
+
<p class="ctx-catalog-muted">68,494 entities</p>
|
| 52 |
<a class="md-button" href="./?type=skill">Filter tiles</a>
|
| 53 |
<a class="md-button" href="../dashboard/#catalog-badge-links">Open full catalog locally</a>
|
| 54 |
</article>
|
|
|
|
| 150 |
<a class="md-button" href="./?type=harness&q=tool+access">Filter tiles</a>
|
| 151 |
<a class="md-button" href="../dashboard/#catalog-badge-links">Open full catalog locally</a>
|
| 152 |
</article>
|
| 153 |
+
<!-- ctx-catalog:end -->
|
| 154 |
</div>
|
| 155 |
</div>
|
| 156 |
|
docs/dashboard.md
CHANGED
|
@@ -16,7 +16,8 @@ ctx-monitor serve --host 0.0.0.0 --port 8888 # LAN read-only with startup token
|
|
| 16 |
Zero Python dependencies added by the dashboard. Everything runs on
|
| 17 |
stdlib `http.server`, using daemon request threads so a live
|
| 18 |
`/api/events.stream` client cannot block normal dashboard or JSON API
|
| 19 |
-
requests. The graph page uses a built-in
|
|
|
|
| 20 |
third-party JavaScript.
|
| 21 |
|
| 22 |
## Usage
|
|
@@ -31,6 +32,25 @@ Generic/API/local harnesses that call ctx-core validation tools write to
|
|
| 31 |
the runtime lifecycle ledger. The dashboard exposes that ledger at
|
| 32 |
`/runtime` and as JSON at `/api/runtime.json`.
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
### Check queue and artifact state - `/status`
|
| 35 |
|
| 36 |
The status tab shows the durable wiki/graph maintenance queue and the
|
|
@@ -111,10 +131,12 @@ frontmatter values are visibly marked as truncated.
|
|
| 111 |
|
| 112 |
### Explore the knowledge graph — `/graph`
|
| 113 |
|
| 114 |
-
The graph tab is a
|
| 115 |
-
skill/agent/MCP/harness graph. Imported skills are normal
|
| 116 |
-
nodes in the graph. Harness nodes are browsable and filterable here;
|
| 117 |
-
install/update actions remain in `ctx-harness-install`.
|
|
|
|
|
|
|
| 118 |
When you arrive with no
|
| 119 |
slug selected, the page shows:
|
| 120 |
|
|
@@ -127,9 +149,9 @@ slug selected, the page shows:
|
|
| 127 |
- the graph list panel itself, which activates as soon as you pick a
|
| 128 |
seed
|
| 129 |
|
| 130 |
-
Inside the graph
|
| 131 |
-
|
| 132 |
-
|
| 133 |
|
| 134 |
The JSON endpoint still includes blended graph edge weights, combining
|
| 135 |
semantic similarity, explicit tag overlap, and slug-token overlap where
|
|
@@ -196,7 +218,7 @@ per-process monitor token injected into the rendered page.
|
|
| 196 |
| `/wiki/<slug>?type=<entity>` | Dashboard-supported wiki entity page rendered: markdown body + full frontmatter table + grade banner + deep links to sidecar and graph-neighborhood views. The optional `type` query disambiguates duplicate slugs such as `langgraph`. |
|
| 197 |
| `/graph` | **Graph explorer landing page** - node/edge count header, a "Popular seed slugs" block (18 highest-degree skill/agent/MCP/harness entities as clickable chips), search box for any skill/agent/MCP/harness slug, and the built-in graph list panel. Clicking a seed chip navigates to `/graph?slug=<slug>&type=<entity>`. |
|
| 198 |
| `/graph?slug=<slug>&type=<entity>` | **Built-in** 1-hop neighborhood around the target skill/agent/MCP/harness slug. Entity pills identify skill, agent, MCP server, and harness rows. Tap any node to navigate to that entity's typed wiki page. Type and tag filters run client-side. |
|
| 199 |
-
| `/manage` | Search, inspect, edit, delete, and manually import skill/agent/MCP/harness wiki entities through the same safe-name and mutation-token checks as live load/unload. |
|
| 200 |
| `/harness` | Harness Setup wizard for non-Claude/custom API/local model users: collects model, goals, tool needs, safety constraints, and shows the harness recommendation/install path. |
|
| 201 |
| `/docs` | Local repo docs rendered inside the dashboard with MkDocs-like tabs, sidebar table of contents, in-dashboard search, and source links. |
|
| 202 |
| `/config` | Effective ctx config with defaults, required markers, field explanations, and editable user overrides where supported. |
|
|
|
|
| 16 |
Zero Python dependencies added by the dashboard. Everything runs on
|
| 17 |
stdlib `http.server`, using daemon request threads so a live
|
| 18 |
`/api/events.stream` client cannot block normal dashboard or JSON API
|
| 19 |
+
requests. The graph page uses a built-in dependency-free SVG neighborhood
|
| 20 |
+
renderer with zoom, drag, hover details, and a list fallback. It does not load
|
| 21 |
third-party JavaScript.
|
| 22 |
|
| 23 |
## Usage
|
|
|
|
| 32 |
the runtime lifecycle ledger. The dashboard exposes that ledger at
|
| 33 |
`/runtime` and as JSON at `/api/runtime.json`.
|
| 34 |
|
| 35 |
+
### Smoke-test the dashboard
|
| 36 |
+
|
| 37 |
+
Use the repo smoke check after dashboard changes or before screenshots. It uses
|
| 38 |
+
only stdlib HTTP calls against a running `ctx-monitor` instance and checks the
|
| 39 |
+
core pages plus graph/wiki/catalog APIs.
|
| 40 |
+
|
| 41 |
+
```bash
|
| 42 |
+
ctx-monitor serve
|
| 43 |
+
python scripts/dashboard_smoke.py --warm
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
To make latency regressions fail the command, add named thresholds:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
python scripts/dashboard_smoke.py --warm \
|
| 50 |
+
--fail-on-slow graph-api-warm=1.0 \
|
| 51 |
+
--fail-on-slow kpi-warm=3.0
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
### Check queue and artifact state - `/status`
|
| 55 |
|
| 56 |
The status tab shows the durable wiki/graph maintenance queue and the
|
|
|
|
| 131 |
|
| 132 |
### Explore the knowledge graph — `/graph`
|
| 133 |
|
| 134 |
+
The graph tab is a dependency-free interactive SVG view over the
|
| 135 |
+
dashboard-supported skill/agent/MCP/harness graph. Imported skills are normal
|
| 136 |
+
`skill` nodes in the graph. Harness nodes are browsable and filterable here;
|
| 137 |
+
install/update actions remain in `ctx-harness-install`. If the SVG renderer
|
| 138 |
+
cannot initialize, the dashboard falls back to a list view over the same graph
|
| 139 |
+
payload.
|
| 140 |
When you arrive with no
|
| 141 |
slug selected, the page shows:
|
| 142 |
|
|
|
|
| 149 |
- the graph list panel itself, which activates as soon as you pick a
|
| 150 |
seed
|
| 151 |
|
| 152 |
+
Inside the graph view, entity pills identify the node type. The focus node has
|
| 153 |
+
`depth=0` in the page data, and neighbor rows remain filterable by entity type
|
| 154 |
+
and shared tag/token text.
|
| 155 |
|
| 156 |
The JSON endpoint still includes blended graph edge weights, combining
|
| 157 |
semantic similarity, explicit tag overlap, and slug-token overlap where
|
|
|
|
| 218 |
| `/wiki/<slug>?type=<entity>` | Dashboard-supported wiki entity page rendered: markdown body + full frontmatter table + grade banner + deep links to sidecar and graph-neighborhood views. The optional `type` query disambiguates duplicate slugs such as `langgraph`. |
|
| 219 |
| `/graph` | **Graph explorer landing page** - node/edge count header, a "Popular seed slugs" block (18 highest-degree skill/agent/MCP/harness entities as clickable chips), search box for any skill/agent/MCP/harness slug, and the built-in graph list panel. Clicking a seed chip navigates to `/graph?slug=<slug>&type=<entity>`. |
|
| 220 |
| `/graph?slug=<slug>&type=<entity>` | **Built-in** 1-hop neighborhood around the target skill/agent/MCP/harness slug. Entity pills identify skill, agent, MCP server, and harness rows. Tap any node to navigate to that entity's typed wiki page. Type and tag filters run client-side. |
|
| 221 |
+
| `/manage` | Search, inspect, edit, delete, and manually import skill/agent/MCP/harness wiki entities through the same safe-name and mutation-token checks as live load/unload. Manual skill upserts run the required static SkillSpector gate before the wiki page is written or queued for graph refresh. |
|
| 222 |
| `/harness` | Harness Setup wizard for non-Claude/custom API/local model users: collects model, goals, tool needs, safety constraints, and shows the harness recommendation/install path. |
|
| 223 |
| `/docs` | Local repo docs rendered inside the dashboard with MkDocs-like tabs, sidebar table of contents, in-dashboard search, and source links. |
|
| 224 |
| `/config` | Effective ctx config with defaults, required markers, field explanations, and editable user overrides where supported. |
|
docs/entity-onboarding.md
CHANGED
|
@@ -19,11 +19,14 @@ ctx-scan-repo --repo . --recommend
|
|
| 19 |
```
|
| 20 |
|
| 21 |
If a persisted semantic vector index exists, that worker pass also runs a
|
| 22 |
-
best-effort incremental attach into `graphify-out/entity-overlays.jsonl`
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Updating the Graph and LLM Wiki
|
| 29 |
|
|
@@ -43,8 +46,9 @@ the update is treated like a release step.
|
|
| 43 |
still changing.
|
| 44 |
5. Drain the wiki queue for local runtime use:
|
| 45 |
`ctx-wiki-worker --wiki ~/.claude/skill-wiki --limit 1`. This updates the
|
| 46 |
-
wiki index, attempts incremental ANN graph attach
|
| 47 |
-
|
|
|
|
| 48 |
6. Rebuild the curated wiki graph with `ctx-wiki-graphify` before shipping
|
| 49 |
release artifacts or when you need a full graph/export reconciliation.
|
| 50 |
7. Repack `graph/wiki-graph.tar.gz` through the artifact promotion path:
|
|
@@ -239,10 +243,13 @@ ctx-skill-add \
|
|
| 239 |
What happens:
|
| 240 |
|
| 241 |
1. The name is validated.
|
| 242 |
-
2.
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
|
|
|
|
|
|
|
|
|
| 246 |
|
| 247 |
## Add an Agent
|
| 248 |
|
|
|
|
| 19 |
```
|
| 20 |
|
| 21 |
If a persisted semantic vector index exists, that worker pass also runs a
|
| 22 |
+
best-effort incremental attach into `graphify-out/entity-overlays.jsonl` and,
|
| 23 |
+
when active graph packs exist, writes a small graph overlay pack for the
|
| 24 |
+
changed entity. If the vector index is missing, the worker can still write a
|
| 25 |
+
node-only graph overlay pack and refresh `graph-store.sqlite3`, so local
|
| 26 |
+
dashboard/search/recommendation reads see the merged base+overlay graph without
|
| 27 |
+
a full all-pairs semantic rebuild. The wiki page remains the source of truth;
|
| 28 |
+
only legacy installs without active graph packs fall back to the normal
|
| 29 |
+
incremental graph export job.
|
| 30 |
|
| 31 |
## Updating the Graph and LLM Wiki
|
| 32 |
|
|
|
|
| 46 |
still changing.
|
| 47 |
5. Drain the wiki queue for local runtime use:
|
| 48 |
`ctx-wiki-worker --wiki ~/.claude/skill-wiki --limit 1`. This updates the
|
| 49 |
+
wiki index, writes wiki overlay packs, attempts incremental ANN graph attach
|
| 50 |
+
when a vector index exists, writes graph overlay packs when active packs are
|
| 51 |
+
present, and queues a graph-store refresh so local reads see the merged view.
|
| 52 |
6. Rebuild the curated wiki graph with `ctx-wiki-graphify` before shipping
|
| 53 |
release artifacts or when you need a full graph/export reconciliation.
|
| 54 |
7. Repack `graph/wiki-graph.tar.gz` through the artifact promotion path:
|
|
|
|
| 243 |
What happens:
|
| 244 |
|
| 245 |
1. The name is validated.
|
| 246 |
+
2. NVIDIA SkillSpector runs in static `--no-llm` mode by default; the add
|
| 247 |
+
fails unless the scan passes. Use `--no-security-scan` only for a deliberate
|
| 248 |
+
local exception.
|
| 249 |
+
3. Intake checks run against the markdown.
|
| 250 |
+
4. The skill is copied into `~/.claude/skills/`.
|
| 251 |
+
5. A wiki page is created under `entities/skills/`.
|
| 252 |
+
6. The wiki index and log are updated.
|
| 253 |
|
| 254 |
## Add an Agent
|
| 255 |
|
docs/huggingface-publish.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
# Hugging Face Publish
|
| 2 |
|
| 3 |
-
ctx publishes the GitHub repository as the public Hugging Face dataset
|
| 4 |
[`Stevesolun/ctx`](https://huggingface.co/datasets/Stevesolun/ctx). The
|
| 5 |
-
dataset is a clean `git ls-files` snapshot, including the shipped graph
|
| 6 |
tarball and catalog artifacts, not local review reports or ignored caches.
|
| 7 |
|
| 8 |
## What gets uploaded
|
|
|
|
| 1 |
# Hugging Face Publish
|
| 2 |
|
| 3 |
+
ctx publishes the GitHub repository as the public Hugging Face dataset repo
|
| 4 |
[`Stevesolun/ctx`](https://huggingface.co/datasets/Stevesolun/ctx). The
|
| 5 |
+
dataset repo is a clean `git ls-files` snapshot, including the shipped graph
|
| 6 |
tarball and catalog artifacts, not local review reports or ignored caches.
|
| 7 |
|
| 8 |
## What gets uploaded
|
docs/index.md
CHANGED
|
@@ -7,7 +7,14 @@ hide:
|
|
| 7 |
|
| 8 |
[](https://hits.sh/github.com/stevesolun/ctx/)
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
right execution bundle on the fly. The live execution bundle is skills,
|
| 12 |
agents, and MCP servers only; custom/API/local model users get a separate
|
| 13 |
harness recommendation based on model choice and task goal. You decide
|
|
@@ -48,15 +55,17 @@ memory that gets smarter every session.
|
|
| 48 |
check, unit coverage, canaries, package build, twine, docs, graph
|
| 49 |
validation, browser, and similarity checks as needed. Use `--profile full`
|
| 50 |
before release work to force the source/package gates even for docs-only or
|
| 51 |
-
graph-only changes.
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
## Why this exists
|
| 54 |
|
| 55 |
Claude Code skills, agents, MCP servers, and model harness profiles are
|
| 56 |
powerful, but at scale they become unmanageable:
|
| 57 |
|
| 58 |
-
- **Discovery problem** — with
|
| 59 |
-
MCP servers, and 207 harnesses, how do you know which
|
| 60 |
ones exist and which are relevant to your current project?
|
| 61 |
- **Context budget** — loading every installable entity wastes tokens and
|
| 62 |
degrades quality. You need exactly the right skills, agents, and MCP
|
|
@@ -90,14 +99,14 @@ graph-based discovery:
|
|
| 90 |
|
| 91 |
- A Karpathy 3-layer wiki at `~/.claude/skill-wiki/` is the single source
|
| 92 |
of truth.
|
| 93 |
-
- **
|
| 94 |
-
inventory, including
|
| 95 |
and 207 harness pages under `entities/harnesses/`.
|
| 96 |
Each page tracks tags, status, provenance, and usage where it applies.
|
| 97 |
-
- A **knowledge graph** (
|
| 98 |
-
|
| 99 |
The graph has 52 Louvain communities and blends semantic cosine,
|
| 100 |
-
tag overlap, and slug-token overlap;
|
| 101 |
shipped as installable `SKILL.md` files. Entries over the configured line
|
| 102 |
threshold are converted to gated micro-skill orchestrators. Full source
|
| 103 |
bodies were used for semantic graphing before packaging; `SKILL.md.original`
|
|
@@ -131,8 +140,8 @@ ones are flagged. New ones self-ingest.
|
|
| 131 |
|
| 132 |
---
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
Ships pre-built in `graph/wiki-graph.tar.gz` and powers the
|
| 137 |
graph-aware recommendations + the pre-ship `ctx-dedup-check` gate.
|
| 138 |
|
|
@@ -197,18 +206,19 @@ ones are flagged. New ones self-ingest.
|
|
| 197 |
[Memory anchoring](memory-anchor.md) ·
|
| 198 |
[Lifecycle dashboard](skill-lifecycle-and-dashboard.md)
|
| 199 |
|
| 200 |
-
- **
|
| 201 |
|
| 202 |
---
|
| 203 |
|
| 204 |
-
**v1.0.
|
| 205 |
-
4,
|
|
|
|
| 206 |
`ctx-monitor` (local dashboard with graph + wiki + load/unload for
|
| 207 |
skills, agents, and MCP servers, plus Harness Setup for user-owned LLMs),
|
| 208 |
`ctx-incremental-attach`, `ctx-incremental-shadow`, `ctx-dedup-check`
|
| 209 |
(pre-ship near-duplicate gate), and
|
| 210 |
`ctx-tag-backfill` (entity hygiene), plus a fast runtime graph artifact
|
| 211 |
-
and the full ~
|
| 212 |
|
| 213 |
[:octicons-arrow-right-24: CHANGELOG](https://github.com/stevesolun/ctx/blob/main/CHANGELOG.md) ·
|
| 214 |
[Repository](https://github.com/stevesolun/ctx)
|
|
|
|
| 7 |
|
| 8 |
[](https://hits.sh/github.com/stevesolun/ctx/)
|
| 9 |
|
| 10 |
+
**ctx is not an Amazon-style catalog of skills, MCPs, agents, tools, or
|
| 11 |
+
harnesses. It is a recommendation layer.** Point it at your organization's own
|
| 12 |
+
tools, or use the pre-built graph, and ctx recommends the smallest useful bundle
|
| 13 |
+
for the current development window. The goal is to load the right skills,
|
| 14 |
+
agents, MCP servers, and optional harness at the right moment so hosted LLMs
|
| 15 |
+
burn fewer tokens and local models waste less CPU/GPU work.
|
| 16 |
+
|
| 17 |
+
Watches what you develop, walks a knowledge graph of **68,494 skill pages, 467 agents, 10,790 MCP servers, and 207 cataloged harnesses**, and recommends the
|
| 18 |
right execution bundle on the fly. The live execution bundle is skills,
|
| 19 |
agents, and MCP servers only; custom/API/local model users get a separate
|
| 20 |
harness recommendation based on model choice and task goal. You decide
|
|
|
|
| 55 |
check, unit coverage, canaries, package build, twine, docs, graph
|
| 56 |
validation, browser, and similarity checks as needed. Use `--profile full`
|
| 57 |
before release work to force the source/package gates even for docs-only or
|
| 58 |
+
graph-only changes. Public MkDocs nav pages are release-tracked: when
|
| 59 |
+
`mkdocs.yml` adds, removes, or moves a `.md` page, update
|
| 60 |
+
`docs/qa/feature-user-story-status.csv` with the exact `docs/...md`
|
| 61 |
+
`entrypoint_or_route`.
|
| 62 |
|
| 63 |
## Why this exists
|
| 64 |
|
| 65 |
Claude Code skills, agents, MCP servers, and model harness profiles are
|
| 66 |
powerful, but at scale they become unmanageable:
|
| 67 |
|
| 68 |
+
- **Discovery problem** — with 68,494 skill pages, 467 agents, 10,790 MCP servers, and 207 harnesses, how do you know which
|
|
|
|
| 69 |
ones exist and which are relevant to your current project?
|
| 70 |
- **Context budget** — loading every installable entity wastes tokens and
|
| 71 |
degrades quality. You need exactly the right skills, agents, and MCP
|
|
|
|
| 99 |
|
| 100 |
- A Karpathy 3-layer wiki at `~/.claude/skill-wiki/` is the single source
|
| 101 |
of truth.
|
| 102 |
+
- **79,958 graph nodes** for the shipped skill/agent/MCP/harness
|
| 103 |
+
inventory, including 68,494 skill pages
|
| 104 |
and 207 harness pages under `entities/harnesses/`.
|
| 105 |
Each page tracks tags, status, provenance, and usage where it applies.
|
| 106 |
+
- A **knowledge graph** (79,958 nodes, 1,778,069 edges) built from a
|
| 107 |
+
12,934-node core plus 67,024 body-backed skill nodes.
|
| 108 |
The graph has 52 Louvain communities and blends semantic cosine,
|
| 109 |
+
tag overlap, and slug-token overlap; 67,024 skill bodies are
|
| 110 |
shipped as installable `SKILL.md` files. Entries over the configured line
|
| 111 |
threshold are converted to gated micro-skill orchestrators. Full source
|
| 112 |
bodies were used for semantic graphing before packaging; `SKILL.md.original`
|
|
|
|
| 140 |
|
| 141 |
---
|
| 142 |
|
| 143 |
+
79,958 shipped graph nodes: 12,934 curated skill/agent/MCP/harness nodes plus 67,024 body-backed skill nodes. The graph has
|
| 144 |
+
1,778,069 weighted edges and 52 Louvain communities.
|
| 145 |
Ships pre-built in `graph/wiki-graph.tar.gz` and powers the
|
| 146 |
graph-aware recommendations + the pre-ship `ctx-dedup-check` gate.
|
| 147 |
|
|
|
|
| 206 |
[Memory anchoring](memory-anchor.md) ·
|
| 207 |
[Lifecycle dashboard](skill-lifecycle-and-dashboard.md)
|
| 208 |
|
| 209 |
+
- **Source snapshot**
|
| 210 |
|
| 211 |
---
|
| 212 |
|
| 213 |
+
Current main is **v1.0.20** — MIT, CI-matrixed (Ubuntu 3.12 plus Windows/macOS 3.11/3.12),
|
| 214 |
+
4,400 test inventory. Adds enterprise OpenTelemetry-ready telemetry and
|
| 215 |
+
ships console scripts including `ctx-init`,
|
| 216 |
`ctx-monitor` (local dashboard with graph + wiki + load/unload for
|
| 217 |
skills, agents, and MCP servers, plus Harness Setup for user-owned LLMs),
|
| 218 |
`ctx-incremental-attach`, `ctx-incremental-shadow`, `ctx-dedup-check`
|
| 219 |
(pre-ship near-duplicate gate), and
|
| 220 |
`ctx-tag-backfill` (entity hygiene), plus a fast runtime graph artifact
|
| 221 |
+
and the full ~282 MiB wiki tarball with **79,958 nodes / 1,778,069 edges / 52 Louvain communities**.
|
| 222 |
|
| 223 |
[:octicons-arrow-right-24: CHANGELOG](https://github.com/stevesolun/ctx/blob/main/CHANGELOG.md) ·
|
| 224 |
[Repository](https://github.com/stevesolun/ctx)
|
docs/knowledge-graph.md
CHANGED
|
@@ -13,9 +13,9 @@ agents, and MCP servers.
|
|
| 13 |
## What's in it
|
| 14 |
|
| 15 |
Authoritative numbers from the shipped tarball. The curated-core snapshot
|
| 16 |
-
is **
|
| 17 |
local rebuilds and the separate harness recommendation path. The
|
| 18 |
-
tarball also carries **
|
| 19 |
skill bodies are hydrated as installable `SKILL.md` files under
|
| 20 |
`converted/`; the **28,612** entries over the configured line
|
| 21 |
limit were converted to gated micro-skill orchestrators. Full original bodies
|
|
@@ -25,19 +25,19 @@ are omitted from the shipped tarball.
|
|
| 25 |
|
| 26 |
| | Count |
|
| 27 |
|---|---:|
|
| 28 |
-
| Total nodes | **
|
| 29 |
-
| Curated core nodes | **
|
| 30 |
-
| Body-backed skill nodes | **
|
| 31 |
-
| Total edges | **
|
| 32 |
-
| Hydrated skill incident edges | **
|
| 33 |
-
| Hydrated skill semantic incident edges | **
|
| 34 |
| Communities | **52** (Louvain) |
|
| 35 |
-
| Edge sources (overlap-deduped) | semantic 1,
|
| 36 |
-
| Cross-type edges (skill <-> agent) | ~
|
| 37 |
-
| Cross-type edges (skill <-> MCP) | ~
|
| 38 |
| Cross-type edges (agent <-> MCP) | ~229 |
|
| 39 |
-
| Harness edges | **
|
| 40 |
-
| Shipped skill index | **
|
| 41 |
|
| 42 |
## Install
|
| 43 |
|
|
@@ -148,8 +148,8 @@ quality clusters for the recommendation use case.
|
|
| 148 |
ctx-monitor serve # http://127.0.0.1:8765
|
| 149 |
```
|
| 150 |
|
| 151 |
-
Then open `/graph?slug=<entity-slug>&type=<entity-type>` for
|
| 152 |
-
|
| 153 |
`/api/graph/<slug>.json?type=<entity-type>&hops=1&limit=40` for the
|
| 154 |
dashboard-shaped JSON. The `type` query is optional for unique slugs and
|
| 155 |
recommended for duplicate slugs such as `langgraph`. See the
|
|
@@ -168,7 +168,7 @@ raw = json.loads(
|
|
| 168 |
edges_key = "links" if "links" in raw else "edges"
|
| 169 |
G = node_link_graph(raw, edges=edges_key)
|
| 170 |
|
| 171 |
-
#
|
| 172 |
print(G.number_of_nodes(), G.number_of_edges())
|
| 173 |
|
| 174 |
# Find entities related to 'fastapi-pro' by edge weight
|
|
@@ -217,6 +217,101 @@ This split is intentional: execution surfaces need identical ranking and a
|
|
| 217 |
small top-K, while harness choice changes the model runtime itself and belongs
|
| 218 |
in an explicit onboarding/install flow.
|
| 219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
### LLM-wiki design references
|
| 221 |
|
| 222 |
ctx follows Karpathy's LLM-wiki pattern. We also reviewed
|
|
@@ -238,9 +333,10 @@ The `entity-upsert` worker path validates the queued page hash, updates the
|
|
| 238 |
wiki index, and, when a persisted semantic vector index exists, runs a
|
| 239 |
best-effort ANN attach into `graphify-out/entity-overlays.jsonl`. That overlay
|
| 240 |
lets the runtime resolver connect a new or updated entity to existing graph
|
| 241 |
-
neighbors without recomputing global all-pairs similarity.
|
| 242 |
-
|
| 243 |
-
|
|
|
|
| 244 |
|
| 245 |
For manual review or debugging:
|
| 246 |
|
|
@@ -316,9 +412,9 @@ This page is intentionally current-state only. Older graph sizes made the public
|
|
| 316 |
page look stale even when the headline table was correct, so historical refresh
|
| 317 |
notes live in `CHANGELOG.md` instead of being repeated here.
|
| 318 |
|
| 319 |
-
The shipped artifact currently records **
|
| 320 |
-
**52 Louvain communities**, **1,
|
| 321 |
-
and **
|
| 322 |
the wiki content and the checked-in graph build configuration.
|
| 323 |
|
| 324 |
## Pre-ship gates
|
|
@@ -338,3 +434,9 @@ review reports and never auto-modify the inventory.
|
|
| 338 |
frontmatter and proposes a backfill drawn from slug tokens, body
|
| 339 |
keywords, and the existing tag vocabulary. Report-only by default;
|
| 340 |
pass `--apply` to write. Backfills are additive only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
## What's in it
|
| 14 |
|
| 15 |
Authoritative numbers from the shipped tarball. The curated-core snapshot
|
| 16 |
+
is **12,934 nodes** (1,470 curated skills + 467 agents + 10,790 MCP servers + 207 harnesses). Harness pages under `entities/harnesses/` are ingested into
|
| 17 |
local rebuilds and the separate harness recommendation path. The
|
| 18 |
+
tarball also carries **68,494 skill pages**; **67,024**
|
| 19 |
skill bodies are hydrated as installable `SKILL.md` files under
|
| 20 |
`converted/`; the **28,612** entries over the configured line
|
| 21 |
limit were converted to gated micro-skill orchestrators. Full original bodies
|
|
|
|
| 25 |
|
| 26 |
| | Count |
|
| 27 |
|---|---:|
|
| 28 |
+
| Total nodes | **79,958** |
|
| 29 |
+
| Curated core nodes | **12,934** (1,470 skills + 467 agents + 10,790 MCP servers + 207 harnesses) |
|
| 30 |
+
| Body-backed skill nodes | **67,024** hydrated installable skill entries |
|
| 31 |
+
| Total edges | **1,778,069** |
|
| 32 |
+
| Hydrated skill incident edges | **1,516,298** |
|
| 33 |
+
| Hydrated skill semantic incident edges | **911,922** |
|
| 34 |
| Communities | **52** (Louvain) |
|
| 35 |
+
| Edge sources (overlap-deduped) | semantic 1,088,763 - tag 474,837 - token 280,275 |
|
| 36 |
+
| Cross-type edges (skill <-> agent) | ~52,382 |
|
| 37 |
+
| Cross-type edges (skill <-> MCP) | ~30,295 |
|
| 38 |
| Cross-type edges (agent <-> MCP) | ~229 |
|
| 39 |
+
| Harness edges | **5,063** |
|
| 40 |
+
| Shipped skill index | **67,024** observed body-backed skill entries |
|
| 41 |
|
| 42 |
## Install
|
| 43 |
|
|
|
|
| 148 |
ctx-monitor serve # http://127.0.0.1:8765
|
| 149 |
```
|
| 150 |
|
| 151 |
+
Then open `/graph?slug=<entity-slug>&type=<entity-type>` for the
|
| 152 |
+
dashboard's interactive SVG neighborhood view, or
|
| 153 |
`/api/graph/<slug>.json?type=<entity-type>&hops=1&limit=40` for the
|
| 154 |
dashboard-shaped JSON. The `type` query is optional for unique slugs and
|
| 155 |
recommended for duplicate slugs such as `langgraph`. See the
|
|
|
|
| 168 |
edges_key = "links" if "links" in raw else "edges"
|
| 169 |
G = node_link_graph(raw, edges=edges_key)
|
| 170 |
|
| 171 |
+
# 79,958 nodes, 1,778,069 edges
|
| 172 |
print(G.number_of_nodes(), G.number_of_edges())
|
| 173 |
|
| 174 |
# Find entities related to 'fastapi-pro' by edge weight
|
|
|
|
| 217 |
small top-K, while harness choice changes the model runtime itself and belongs
|
| 218 |
in an explicit onboarding/install flow.
|
| 219 |
|
| 220 |
+
## Modular graph and wiki packs
|
| 221 |
+
|
| 222 |
+
ctx is moving the graph and LLM-wiki from "one huge tarball is the mutable
|
| 223 |
+
truth" to this operational model:
|
| 224 |
+
|
| 225 |
+
```text
|
| 226 |
+
immutable base graph pack
|
| 227 |
+
+ small graph overlay packs
|
| 228 |
+
+ tombstones for deletes
|
| 229 |
+
+ immutable base wiki pack
|
| 230 |
+
+ small wiki overlay packs
|
| 231 |
+
-> merged reader for dashboard, search, recommendations, and repair tools
|
| 232 |
+
```
|
| 233 |
+
|
| 234 |
+
The user-facing behavior is intended to stay the same: recommendations,
|
| 235 |
+
dashboard graph views, wiki pages, and harness setup still read the merged
|
| 236 |
+
graph/wiki as one catalog. The difference is how updates are stored. Adding or
|
| 237 |
+
updating one skill, agent, MCP server, or harness can write a small overlay pack
|
| 238 |
+
instead of forcing a full graph and wiki rebuild.
|
| 239 |
+
|
| 240 |
+
This makes normal updates faster and safer:
|
| 241 |
+
|
| 242 |
+
- **Faster adds/updates** - the worker writes a page overlay and, when the
|
| 243 |
+
vector index exists, attaches ANN-based graph edges for the changed entity.
|
| 244 |
+
- **Efficient deletes** - deletes become tombstones in graph/wiki overlays, so
|
| 245 |
+
removed entities disappear from merged reads without rewriting the base pack.
|
| 246 |
+
- **Crash isolation** - overlay packs and compaction manifests are written
|
| 247 |
+
atomically; a failed update does not corrupt the base snapshot.
|
| 248 |
+
- **Same recommendation contract** - merged graph reads preserve edge metadata,
|
| 249 |
+
scores, provenance, and tombstones before resolver/dashboard code sees the
|
| 250 |
+
graph.
|
| 251 |
+
|
| 252 |
+
Pack directories live inside the installed wiki:
|
| 253 |
+
|
| 254 |
+
```text
|
| 255 |
+
~/.claude/skill-wiki/
|
| 256 |
+
graphify-out/packs/base-<export-id>/
|
| 257 |
+
graphify-out/packs/overlay-<id>/
|
| 258 |
+
wiki-packs/base-<export-id>/
|
| 259 |
+
wiki-packs/overlay-<id>/
|
| 260 |
+
```
|
| 261 |
+
|
| 262 |
+
Overlay packs are the normal local-update path. Full rebuilds are still needed
|
| 263 |
+
when you intentionally refresh the release artifact, change global scoring
|
| 264 |
+
configuration, rebuild communities, or compact a long chain of overlays into a
|
| 265 |
+
new base snapshot.
|
| 266 |
+
|
| 267 |
+
To stage a coordinated graph+wiki compaction without mutating the active wiki:
|
| 268 |
+
|
| 269 |
+
```bash
|
| 270 |
+
ctx-pack-compact compact \
|
| 271 |
+
--wiki-path ~/.claude/skill-wiki \
|
| 272 |
+
--base-export-id <new-export-id> \
|
| 273 |
+
--staging-dir /tmp/ctx-pack-stage \
|
| 274 |
+
--json
|
| 275 |
+
```
|
| 276 |
+
|
| 277 |
+
The staging directory contains a top-level `pack-compaction-manifest.json` plus
|
| 278 |
+
staged graph and wiki base packs. Promotion validates the top-level manifest,
|
| 279 |
+
graph pack manifest, wiki pack manifest, checksums, matching export IDs, and
|
| 280 |
+
graph/wiki entity consistency before replacing active packs:
|
| 281 |
+
|
| 282 |
+
```bash
|
| 283 |
+
ctx-pack-compact validate \
|
| 284 |
+
--staged-graph-packs-dir /tmp/ctx-pack-stage/graph-packs \
|
| 285 |
+
--staged-wiki-packs-dir /tmp/ctx-pack-stage/wiki-packs \
|
| 286 |
+
--require-compaction-manifest \
|
| 287 |
+
--json
|
| 288 |
+
```
|
| 289 |
+
|
| 290 |
+
```bash
|
| 291 |
+
ctx-pack-compact promote \
|
| 292 |
+
--wiki-path ~/.claude/skill-wiki \
|
| 293 |
+
--staged-graph-packs-dir /tmp/ctx-pack-stage/graph-packs \
|
| 294 |
+
--staged-wiki-packs-dir /tmp/ctx-pack-stage/wiki-packs \
|
| 295 |
+
--json
|
| 296 |
+
```
|
| 297 |
+
|
| 298 |
+
Promotion refreshes the SQLite dashboard/recommendation graph store by default.
|
| 299 |
+
Use `--graph-store-db <path>` to refresh a non-default store, or
|
| 300 |
+
`--no-graph-store-refresh` only when you plan to rebuild it separately:
|
| 301 |
+
|
| 302 |
+
```bash
|
| 303 |
+
ctx-pack-compact validate \
|
| 304 |
+
--wiki-path ~/.claude/skill-wiki \
|
| 305 |
+
--json
|
| 306 |
+
|
| 307 |
+
ctx-graph-store build \
|
| 308 |
+
--graph-dir ~/.claude/skill-wiki/graphify-out \
|
| 309 |
+
--db ~/.claude/skill-wiki/graphify-out/graph-store.sqlite3
|
| 310 |
+
|
| 311 |
+
ctx-graph-store validate \
|
| 312 |
+
--db ~/.claude/skill-wiki/graphify-out/graph-store.sqlite3
|
| 313 |
+
```
|
| 314 |
+
|
| 315 |
### LLM-wiki design references
|
| 316 |
|
| 317 |
ctx follows Karpathy's LLM-wiki pattern. We also reviewed
|
|
|
|
| 333 |
wiki index, and, when a persisted semantic vector index exists, runs a
|
| 334 |
best-effort ANN attach into `graphify-out/entity-overlays.jsonl`. That overlay
|
| 335 |
lets the runtime resolver connect a new or updated entity to existing graph
|
| 336 |
+
neighbors without recomputing global all-pairs similarity. When modular wiki
|
| 337 |
+
packs exist, the same write is mirrored into a wiki overlay pack. The worker
|
| 338 |
+
also queues a graph-store refresh so dashboard and resolver reads see the merged
|
| 339 |
+
view. The entity markdown page or wiki page overlay remains the source of truth.
|
| 340 |
|
| 341 |
For manual review or debugging:
|
| 342 |
|
|
|
|
| 412 |
page look stale even when the headline table was correct, so historical refresh
|
| 413 |
notes live in `CHANGELOG.md` instead of being repeated here.
|
| 414 |
|
| 415 |
+
The shipped artifact currently records **79,958 nodes**, **1,778,069 edges**,
|
| 416 |
+
**52 Louvain communities**, **1,088,763 semantic edges**, **474,837 tag edges**,
|
| 417 |
+
and **280,275 slug-token edges**. The current build is fully reproducible from
|
| 418 |
the wiki content and the checked-in graph build configuration.
|
| 419 |
|
| 420 |
## Pre-ship gates
|
|
|
|
| 434 |
frontmatter and proposes a backfill drawn from slug tokens, body
|
| 435 |
keywords, and the existing tag vocabulary. Report-only by default;
|
| 436 |
pass `--apply` to write. Backfills are additive only.
|
| 437 |
+
- **`ctx-skillspector-audit`** — runs a static `--no-llm` check over
|
| 438 |
+
shipped skill bodies with
|
| 439 |
+
[NVIDIA SkillSpector](https://github.com/NVIDIA/SkillSpector), writes
|
| 440 |
+
`graph/skillspector-audit.jsonl.gz`, and stamps skill entity pages in the
|
| 441 |
+
full wiki artifact. This is a ctx-run check, not NVIDIA endorsement or
|
| 442 |
+
certification.
|
docs/marketplace-registry.md
CHANGED
|
@@ -44,7 +44,7 @@ still require an explicit review if replacement content is proposed.
|
|
| 44 |
```yaml
|
| 45 |
name: shipped-skills
|
| 46 |
type: shipped-index
|
| 47 |
-
shipped_entries:
|
| 48 |
local_index: graph/<skill-index>.json.gz
|
| 49 |
hydrated_wiki: external-catalogs/<source>/catalog.json
|
| 50 |
refresh: on-demand
|
|
|
|
| 44 |
```yaml
|
| 45 |
name: shipped-skills
|
| 46 |
type: shipped-index
|
| 47 |
+
shipped_entries: 67024
|
| 48 |
local_index: graph/<skill-index>.json.gz
|
| 49 |
hydrated_wiki: external-catalogs/<source>/catalog.json
|
| 50 |
refresh: on-demand
|
docs/qa/dashboard-user-story-status.csv
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dashboard_id,surface,page_or_api,route_or_control,source_evidence,user_story,expected_behavior,setup_preconditions,test_command_or_steps,status,first_test_result,error_id,error_summary,fix_status,retest_result,last_verified_at,notes
|
| 2 |
+
DASH-PAGE-001,Dashboard Page,Home,/,src/ctx/monitor/pages/home.py,As a dashboard user I can open the monitor home page,Home renders current graph stats loaded counts quick actions and health summaries without blocking on full graph parsing,ctx-monitor running,Open / and inspect cards links and number formatting,Tested Pass,"PASS: live Playwright page probe opened /, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 3 |
+
DASH-PAGE-002,Dashboard Page,Loaded,/loaded,src/ctx/monitor/pages/loaded.py,As a dashboard user I can see currently loaded skills agents and MCPs,Loaded page renders active entity state and exposes safe load or unload actions where allowed,ctx-monitor running with manifest data,Open /loaded and verify cards pagination and actions,Tested Pass,"PASS: live Playwright page probe opened /loaded, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 4 |
+
DASH-PAGE-003,Dashboard Page,Skills,/skills,src/ctx/monitor/pages/skills.py,As a dashboard user I can browse skill and sidecar cards,Skills page supports bounded cards filters pagination grades and wiki links without rendering thousands of cards at once,ctx-monitor running with sidecars,Open /skills and verify search filters pagination and cards,Tested Pass,"PASS: live Playwright page probe opened /skills, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 5 |
+
DASH-PAGE-004,Dashboard Page,SkillSpector,/skillspector,src/ctx/monitor/pages/skillspector.py,As a dashboard user I can review SkillSpector findings,SkillSpector page renders audit records severity filters and remediation context from the audit service,ctx-monitor running with audit data,Open /skillspector and verify filters counts and empty state,Tested Pass,"PASS: live Playwright page probe opened /skillspector, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 6 |
+
DASH-PAGE-005,Dashboard Page,Wiki,/wiki,src/ctx/monitor/pages/wiki.py,As a dashboard user I can browse wiki entities,Wiki page shows searchable skill agent MCP and harness tiles with type filters and entity links,ctx-monitor running with wiki data,Open /wiki and validate search filters tiles and links,Tested Pass,"PASS: live Playwright page probe opened /wiki, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 7 |
+
DASH-PAGE-006,Dashboard Page,Graph,/graph,src/ctx/monitor/pages/graph.py,As a dashboard user I can explore the knowledge graph,Graph page shows correct top-line counts live slug search interactive neighborhood filters and readable relationship details,ctx-monitor running with graph artifact,Open /graph and test focus search graph render filters click hover double click and match range,Tested Pass,"PASS: live Playwright page probe opened /graph, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 8 |
+
DASH-PAGE-007,Dashboard Page,Manage,/manage,src/ctx/monitor/pages/manage.py,As a dashboard user I can manage entities,Manage page supports search inspect edit delete and manual import flows guarded by mutation tokens,ctx-monitor running with mutation token,Open /manage and validate search edit delete and import UI without unsafe mutation,Tested Pass,"PASS: live Playwright page probe opened /manage, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 9 |
+
DASH-PAGE-008,Dashboard Page,Harness Setup,/harness,src/ctx/monitor/pages/harness.py,As a custom model user I can run harness setup from the dashboard,Harness Setup interviews model provider goal runtime tools privacy and presents fit or no-fit guidance,ctx-monitor running with harness catalog,Open /harness and test wizard fields validation and dry-run recommendation,Tested Pass,"PASS: live Playwright page probe opened /harness, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 10 |
+
DASH-PAGE-009,Dashboard Page,Docs,/docs,src/ctx/monitor/pages/docs.py,As a dashboard user I can read repo docs inside the monitor,Docs page renders markdown as readable docs with tabs sidebar table of contents and local dashboard search behavior,ctx-monitor running,Open /docs and verify tabs TOC hierarchy search and markdown rendering,Tested Pass,"PASS: live Playwright page probe opened /docs, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 11 |
+
DASH-PAGE-010,Dashboard Page,Config,/config,src/ctx/monitor/pages/config.py,As a dashboard user I can inspect and edit ctx configuration,Config page shows required settings descriptions examples defaults and validates saves or clears through the config API,ctx-monitor running with mutation token,Open /config and validate required fields defaults save clear and error states,Tested Pass,"PASS: live Playwright page probe opened /config, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 12 |
+
DASH-PAGE-011,Dashboard Page,Status,/status,src/ctx/monitor/pages/ops.py,As a dashboard user I can inspect system status,Status page shows graph wiki config backup and queue health with actionable error text,ctx-monitor running,Open /status and verify status sections and stale artifact messages,Tested Pass,"PASS: live Playwright page probe opened /status, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 13 |
+
DASH-PAGE-012,Dashboard Page,KPI,/kpi,src/ctx/monitor/pages/ops.py,As a dashboard user I can inspect dashboard KPIs,KPI page shows usage quality load and recommendation metrics with readable number formatting,ctx-monitor running,Open /kpi and verify metric cards charts and empty states,Tested Pass,"PASS: live Playwright page probe opened /kpi, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 14 |
+
DASH-PAGE-013,Dashboard Page,Runtime,/runtime,src/ctx/monitor/pages/ops.py,As a dashboard user I can inspect runtime state,Runtime page shows process paths caches graph status and current monitor environment without secrets,ctx-monitor running,Open /runtime and verify no secrets plus useful cache status,Tested Pass,"PASS: live Playwright page probe opened /runtime, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 15 |
+
DASH-PAGE-014,Dashboard Page,Sessions,/sessions,src/ctx/monitor/pages/activity.py,As a dashboard user I can browse ctx sessions,Sessions page lists sessions links details and handles empty history cleanly,ctx-monitor running with or without sessions,Open /sessions and verify list empty state and detail links,Tested Pass,"PASS: live Playwright page probe opened /sessions, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 16 |
+
DASH-PAGE-015,Dashboard Page,Logs,/logs,src/ctx/monitor/pages/activity.py,As a dashboard user I can inspect audit logs,Logs page tails audit JSONL entries and handles missing logs without a blank page,ctx-monitor running,Open /logs and verify log rows empty state and formatting,Tested Pass,"PASS: live Playwright page probe opened /logs, found expected page markers, and detected no traceback or server-error text; dashboard_smoke also returned HTTP 200.",,,,,2026-06-25,Deeper controls are tracked in dedicated function/API/mutation rows.
|
| 17 |
+
DASH-PAGE-016,Dashboard Page,Live Events,/events,src/ctx/monitor/pages/activity.py,As a dashboard user I can watch live events,Live page connects to server-sent events and shows either audit events or a clear waiting state,ctx-monitor running,Open /events and verify SSE connection and empty state,Retested Pass,FAIL: /api/events.stream did not send initial bytes within 10 seconds so the Live page could remain blank.,,,,PASS: /events returned HTTP 200 and /api/events.stream returned : connected promptly after the SSE fix.,2026-06-25,
|
| 18 |
+
DASH-PAGE-017,Dashboard Page,Live Alias,/live,src/ctx/monitor/routes.py,As a dashboard user I can use the legacy live route,The /live alias renders the same live events experience as /events,ctx-monitor running,Open /live and compare with /events,Retested Pass,PASS: /live alias returned the Live events page marker and shares the fixed SSE stream behavior.,,,,PASS: /live returned HTTP 200 and shares the fixed SSE stream behavior.,2026-06-25,
|
| 19 |
+
DASH-PAGE-018,Dashboard Page,Catalog,/catalog,src/ctx/monitor/routes.py,As a dashboard user I can open a local catalog route,The local catalog route resolves to the wiki index and supports type and query filters instead of returning 404,ctx-monitor running,Open /catalog?type=agent&q=review and verify tiles/search,Tested Pass,PASS: /catalog?type=agent&q=review returned 200 and rendered the local catalog via the wiki index route.,,,,,2026-06-25,
|
| 20 |
+
DASH-PAGE-019,Dashboard Page,Catalog Slash,/catalog/,src/ctx/monitor/routes.py,As a dashboard user I can open the slash catalog route,The /catalog/ route behaves like /catalog and does not break badge or copied links,ctx-monitor running,Open /catalog/?type=harness and verify result,Tested Pass,PASS: /catalog/?type=harness returned 200 and rendered the local catalog via the wiki index route.,,,,,2026-06-25,
|
| 21 |
+
DASH-PAGE-020,Dashboard Page,Session Detail,/session/<session_id>,src/ctx/monitor/routes.py,As a dashboard user I can inspect a session detail page,Session detail opens valid session IDs and gives a safe not-found page for missing sessions,ctx-monitor running with session fixture,Open /session/<session_id> and invalid session path,Tested Pass,PASS: /session/<session_id> route returned 200 for an observed session detail URL and did not crash.,,,,,2026-06-25,
|
| 22 |
+
DASH-PAGE-021,Dashboard Page,Legacy Skill Detail,/skill/<slug>,src/ctx/monitor/routes.py,As a dashboard user I can open legacy skill detail links,Legacy /skill/<slug> links resolve safely to entity detail information or a useful not-found page,ctx-monitor running,Open /skill/github and invalid slug path,Tested Pass,PASS: /skill/github returned 200 and rendered a legacy skill detail page.,,,,,2026-06-25,
|
| 23 |
+
DASH-PAGE-022,Dashboard Page,Wiki Entity Detail,/wiki/<slug>,src/ctx/monitor/pages/wiki_entity.py,As a dashboard user I can inspect an entity detail page,Entity detail shows overview subgraph quality drilldown frontmatter and rendered wiki body in tabs,ctx-monitor running with wiki data,Open /wiki/github?type=mcp-server and verify tabs subgraph quality and body,Tested Pass,PASS: /wiki/github?type=mcp-server returned 200 and rendered the github entity detail page.,,,,,2026-06-25,
|
| 24 |
+
DASH-NUM-001,Dashboard Number,Graph top-line counts,/graph header,src/ctx/monitor/pages/graph.py and graph/wiki-graph-stats.json,As a dashboard user I see graph counts that match shipped artifacts,/graph displays nodes and edges from the authoritative graph artifact stats or dashboard index,ctx-monitor running and graph artifacts present,Compare /graph header with graph/wiki-graph-stats.json and update_repo_stats.read_graph_stats,Tested Pass,"Observed /graph shows 79,958 nodes and 1,778,069 edges; graph/wiki-graph-stats.json and update_repo_stats.read_graph_stats report the same counts.",,,,,2026-06-25,This answers the current dashboard count question.
|
| 25 |
+
DASH-NUM-002,Dashboard Number,Home graph stats,/ home graph card,src/ctx/monitor/pages/home.py,As a dashboard user I see consistent graph counts on Home,Home graph card uses the same graph stats source and formats numbers with thousands separators,ctx-monitor running,Compare / home graph card with DASH-NUM-001,Tested Pass,"PASS: live Playwright home probe found 79,958 and 1,778,069 on /, matching DASH-NUM-001 with thousands separators.",,,,,2026-06-25,
|
| 26 |
+
DASH-NUM-003,Dashboard Number,API graph stats,/api/status.json and /api/runtime.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can read graph status from APIs,Status and runtime APIs expose graph availability and counts consistently with page displays,ctx-monitor running,GET status and runtime APIs and compare graph count fields,Retested Pass,"FAIL: /api/status.json exposed local graph_store counts without also exposing the shipped graph artifact counts, which made 79,960 / 941,901 appear beside the canonical 79,958 / 1,778,069 graph count.",DASH-UX-002,Status API/page did not show authoritative shipped graph stats beside local graph-store stats.,Fixed by adding published wiki-graph-stats counts to /api/status.json artifacts.wiki_graph_tar and rendering them as published graph counts on /status.,"PASS: /api/status.json artifacts.wiki_graph_tar.counts reports 79,958 nodes and 1,778,069 edges; /status renders published graph: 79,958 nodes, 1,778,069 edges and labels graph-store as local store.",2026-06-25,
|
| 27 |
+
DASH-GRAPH-001,Dashboard Function,Graph live search,#focus and #graph-live-results,src/ctx/monitor/pages/graph.py and graph_client.py,As a dashboard user I get live graph search suggestions while typing,Typing a partial slug updates suggestions without a page reload and supports loose matching,ctx-monitor running,Type brainstorm or github into /graph focus input and verify suggestions,Tested Pass,PASS: live Playwright graph probe typed brainstorm and graph-live-results returned matching entity suggestions without reload.,,,,,2026-06-25,
|
| 28 |
+
DASH-GRAPH-002,Dashboard Function,Graph interaction,node click hover double click,src/ctx/monitor/pages/graph_client.py,As a dashboard user I can interact with the graph directly,Hover shows useful node or edge info click highlights and focuses a node and double click returns to prior graph,ctx-monitor running with graph data,Open /graph?slug=github&type=skill and test hover click double-click,Retested Pass,FAIL: live Playwright graph probe showed double-click could still allow a pending single-click drill to overwrite the intended return graph.,DASH-UX-003,Graph double-click back raced with pending node-drill load.,Fixed by handling second-click events as back actions and cancelling stale graph loads with a load sequence guard.,"PASS: live Playwright graph probe selected a node, double-clicked, and returned focus to github; focused browser regression uses real Playwright dblclick.",2026-06-25,
|
| 29 |
+
DASH-GRAPH-003,Dashboard Function,Graph filters,type tag match range histogram,src/ctx/monitor/pages/graph.py and graph_client.py,As a dashboard user I can narrow a noisy neighborhood,Type filters tag filter match range slider and histogram update visible nodes and counts without server reload,ctx-monitor running with graph data,Open /graph and test type checkboxes tag filter range and histogram bars,Tested Pass,PASS: live Playwright graph probe found 10 histogram bars; clicking a bar changed the match window result from 20 visible to 1 visible.,,,,,2026-06-25,
|
| 30 |
+
DASH-API-001,Dashboard API,Sessions API,/api/sessions.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch session summaries,API returns JSON session rows and safe empty state data,ctx-monitor running,GET /api/sessions.json and validate JSON shape,Tested Pass,PASS: /api/sessions.json returned HTTP 200 and a JSON list of session rows in 0.328s.,,,,,2026-06-25,
|
| 31 |
+
DASH-API-002,Dashboard API,Manifest API,/api/manifest.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch loaded manifest data,API returns loaded skills agents and MCP metadata without leaking secrets,ctx-monitor running,GET /api/manifest.json and validate JSON shape,Tested Pass,PASS: /api/manifest.json returned HTTP 200 JSON with load unload and warnings keys.,,,,,2026-06-25,
|
| 32 |
+
DASH-API-003,Dashboard API,Status API,/api/status.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch health status,API returns dashboard health graph config and artifact status as JSON,ctx-monitor running,GET /api/status.json and validate JSON shape,Tested Pass,PASS: /api/status.json returned HTTP 200 JSON with queue and artifacts keys.,,,,,2026-06-25,
|
| 33 |
+
DASH-API-004,Dashboard API,KPI API,/api/kpi.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch KPI data,API returns metric payloads that match the KPI page,ctx-monitor running,GET /api/kpi.json and compare with page expectations,Tested Pass,PASS: /api/kpi.json returned HTTP 200 JSON with generated_at total and grade summary keys.,,,,,2026-06-25,
|
| 34 |
+
DASH-API-005,Dashboard API,Grades API,/api/grades.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch grade summaries,API returns quality grade summaries for skills agents MCPs and harnesses,ctx-monitor running,GET /api/grades.json and validate JSON shape,Tested Pass,PASS: /api/grades.json returned HTTP 200 JSON with grades and total keys.,,,,,2026-06-25,
|
| 35 |
+
DASH-API-006,Dashboard API,Sidecars API,/api/sidecars.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch searchable card data,API supports q type grade floor and limit filters with bounded output,ctx-monitor running,GET /api/sidecars.json?q=review&type=agent&limit=5,Tested Pass,PASS: /api/sidecars.json?q=review&type=agent&limit=5 returned HTTP 200 JSON with items total and pagination keys.,,,,,2026-06-25,
|
| 36 |
+
DASH-API-007,Dashboard API,Runtime API,/api/runtime.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch runtime diagnostics,API returns useful runtime diagnostics without secrets,ctx-monitor running,GET /api/runtime.json and scan for secret-like fields,Tested Pass,PASS: /api/runtime.json returned HTTP 200 JSON with lifecycle diagnostic keys.,,,,,2026-06-25,
|
| 37 |
+
DASH-API-008,Dashboard API,SkillSpector API,/api/skillspector.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch SkillSpector findings,API returns audit records filtered by severity and query,ctx-monitor running,GET /api/skillspector.json?severity=HIGH&q=prompt,Tested Pass,PASS: /api/skillspector.json?severity=HIGH&q=prompt returned HTTP 200 JSON with summary filters and records keys.,,,,,2026-06-25,
|
| 38 |
+
DASH-API-009,Dashboard API,Config API,/api/config.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can fetch effective config,API returns defaults overrides required metadata and no secrets,ctx-monitor running,GET /api/config.json and validate required fields,Tested Pass,PASS: /api/config.json returned HTTP 200 JSON with defaults user effective and path keys.,,,,,2026-06-25,
|
| 39 |
+
DASH-API-010,Dashboard API,Entity Search API,/api/entities/search.json,src/ctx/monitor/api/readonly.py,As a dashboard client I can search entities for autocomplete,API returns typed entity suggestions for search terms and rejects unsafe queries cleanly,ctx-monitor running,GET /api/entities/search.json?q=github&type=skill,Tested Pass,PASS: /api/entities/search.json?q=github&type=skill&limit=5 returned HTTP 200 JSON with results and total keys.,,,,,2026-06-25,
|
| 40 |
+
DASH-API-011,Dashboard API,Events Stream API,/api/events.stream,src/ctx/monitor/api/readonly.py,As a dashboard client I can stream live events,API opens a server-sent event stream and sends data or a clear heartbeat without hanging page load,ctx-monitor running,GET /api/events.stream with timeout and validate SSE framing,Retested Pass,FAIL: /api/events.stream timed out without returning bytes within 10 seconds.,DASH-UX-001,SSE stream did not send an initial heartbeat or ready comment.,Fixed by flushing an immediate : connected SSE comment.,PASS: /api/events.stream returned HTTP 200 and : connected within 1.1s after dashboard restart.,2026-06-25,
|
| 41 |
+
DASH-API-012,Dashboard API,Entity Detail API,/api/entity/<slug>.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch typed entity detail,API returns full entity detail for safe slugs and safe 404 for unknown or unsafe slugs,ctx-monitor running,GET /api/entity/github.json?type=mcp-server and invalid slug,Tested Pass,PASS: /api/entity/github.json?type=mcp-server returned HTTP 200 JSON with slug type path frontmatter and body keys.,,,,,2026-06-25,
|
| 42 |
+
DASH-API-013,Dashboard API,Skill Detail API,/api/skill/<slug>.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch legacy skill detail,API returns sidecar skill JSON or safe 404 without leaking paths,ctx-monitor running,GET /api/skill/github.json and invalid slug,Tested Pass,PASS: /api/skill/github.json?type=skill returned HTTP 200 JSON sidecar payload with grade score signals and slug keys.,,,,,2026-06-25,
|
| 43 |
+
DASH-API-014,Dashboard API,Graph Neighborhood API,/api/graph/<slug>.json,src/ctx/monitor/services/graph.py,As a dashboard client I can fetch graph neighborhoods quickly,API resolves slug and type to bounded nodes edges suggestions and readable relationship data,ctx-monitor running with graph artifact,GET /api/graph/github.json?type=skill&limit=20 and validate JSON shape plus latency,Tested Pass,PASS: /api/graph/github.json?type=skill&limit=20 returned HTTP 200 JSON with nodes edges center resolved suggestions schema layout and insights keys.,,,,,2026-06-25,
|
| 44 |
+
DASH-POST-001,Dashboard Mutation,Load API,/api/load,src/ctx/monitor/api/mutations.py,As a dashboard user I can load an entity safely,POST validates mutation token entity type and slug before mutating active load state,ctx-monitor running with mutation token and fixture,POST /api/load against temp fixture and verify response plus state,Tested Pass,PASS: focused pytest covered /api/load token and fixture-backed load mutation behavior.,,,,,2026-06-25,
|
| 45 |
+
DASH-POST-002,Dashboard Mutation,Unload API,/api/unload,src/ctx/monitor/api/mutations.py,As a dashboard user I can unload an entity safely,POST validates mutation token entity type and slug before unloading without deleting source files,ctx-monitor running with mutation token and fixture,POST /api/unload against temp fixture and verify response plus state,Tested Pass,PASS: focused pytest covered /api/unload token and fixture-backed unload mutation behavior.,,,,,2026-06-25,
|
| 46 |
+
DASH-POST-003,Dashboard Mutation,Config Save API,/api/config,src/ctx/monitor/api/mutations.py,As a dashboard user I can save config changes safely,POST validates mutation token required fields and writes only allowed config overrides,ctx-monitor running with mutation token and temp config,POST /api/config with temp profile and verify file contents,Tested Pass,PASS: focused pytest covered config page dirty-field posting and clear-overrides behavior.,,,,,2026-06-25,
|
| 47 |
+
DASH-POST-004,Dashboard Mutation,Entity Upsert API,/api/entity/upsert,src/ctx/monitor/api/mutations.py,As a dashboard user I can add or update entities manually,POST validates type slug and body runs entity-specific safety gates and queues graph refresh,ctx-monitor running with mutation token and temp wiki,POST /api/entity/upsert against temp wiki and verify entity page plus queue,Tested Pass,"PASS: focused pytest covered /api/entity/upsert validation, entity write, and queue behavior.",,,,,2026-06-25,
|
| 48 |
+
DASH-POST-005,Dashboard Mutation,Entity Delete API,/api/entity/delete,src/ctx/monitor/api/mutations.py,As a dashboard user I can delete dashboard-managed entities safely,POST validates mutation token safe slug and entity ownership before deleting or tombstoning,ctx-monitor running with mutation token and temp wiki,POST /api/entity/delete against temp wiki and verify no unrelated files removed,Tested Pass,PASS: focused pytest covered /api/entity/delete validation and safe deletion behavior.,,,,,2026-06-25,
|
docs/qa/feature-user-story-status.csv
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
feature_id,surface,feature,entrypoint_or_route,source_evidence,user_story,expected_behavior,setup_preconditions,test_command_or_steps,status,first_test_result,error_id,error_summary,fix_status,retest_result,last_verified_at,notes
|
| 2 |
+
CLI-001,CLI,Generic model run harness,ctx,pyproject.toml project.scripts,As a user I can run or resume a model-agnostic ctx session,ctx creates or resumes a session with configured provider tools budgets and transcript ordering intact,Provider credentials or dry-run/local test provider available,ctx --help then focused run/resume smoke,Tested Pass,test_harness_cli_run.py: 67 passed for ctx run/resume/sessions.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 3 |
+
CLI-002,CLI,Repository recommendation,ctx-recommend,pyproject.toml project.scripts,As a user I can ask ctx for current repo recommendations,ctx returns capped relevant skill agent MCP recommendations from the shared graph engine,Graph installed and target repo available,ctx-recommend --help then sample repo recommendation,Tested Pass,recommend CLI/golden subset: 24 passed for ctx-recommend and shared recommendation surfaces.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 4 |
+
CLI-003,CLI,Initial setup,ctx-init,pyproject.toml project.scripts,As a new user I can install hooks graph and model mode from one command,ctx-init installs requested pieces idempotently and reports failures with non-zero exit,Writable user config directory,ctx-init --model-mode skip --graph,Retested Pass,"PASS: temp USERPROFILE ctx-init --model-mode skip --knowledge-mode skip created .claude config/toolboxes and exited 0. PASS: temp USERPROFILE ctx-init --graph --graph-install-mode runtime --model-mode skip installed graph.json and harness page in 129.2s.",CTX-AZ-006,Full graph install exceeded the 10-minute Windows smoke budget before packed wiki artifacts: native-tar full install completed in 759.0s and cleanup took 171.7s.,Packed full artifact now ships wiki-packs and omits expanded non-root markdown fanout; ctx-init checksum updated.,PASS: temp USERPROFILE ctx-init --graph --graph-install-mode full --model-mode skip --knowledge-mode skip exited 0 in 409.7s with graph-store.sqlite3 wiki-packs harness pages and no expanded skills/agents/MCP/converted/concepts markdown.,2026-06-23,Runtime path remains usable; full path now installs packed markdown wiki under the smoke budget while keeping harness pages direct.
|
| 5 |
+
CLI-004,CLI,Claude hook install,ctx-install-hooks,pyproject.toml project.scripts,As a Claude Code user I can install ctx hooks,Hooks are installed idempotently and point to existing modules,Claude config path writable,ctx-install-hooks --help then temp-home smoke,Tested Pass,inject hooks/ctx-init hook subset: 24 passed for hook install and failure handling.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 6 |
+
CLI-005,CLI,Repo stack scan,ctx-scan-repo,pyproject.toml project.scripts,As a developer I can scan a repo and get stack plus recommendations,Scan detects stack signatures and renders recommendations consistently with graph engine,Sample repos available,ctx-scan-repo --repo . --recommend,Retested Pass,FAIL: first run classified ctx as ml-project because optional embeddings extra contains torch,CTX-AZ-002,Optional pyproject extras were treated as primary project-type dependencies,Fixed by excluding optional/dev pyproject deps from primary project-type classification while keeping them as searchable signals,PASS: focused scan tests 5 passed; live scan now reports Type infrastructure and recommendations render,2026-06-23,
|
| 7 |
+
CLI-006,CLI,Skill add,ctx-skill-add,pyproject.toml project.scripts,As a user I can add or update a skill,Skill is validated micro-skill gated written to wiki and attached to graph/index without duplicate stale edges,Temp skill directory and wiki path,ctx-skill-add --skill-path temp/SKILL.md --name demo --wiki temp/wiki,Retested Pass,Failed in isolated A-Z flow: Windows UTF-8 BOM input was rejected by markdown/JSON parsing; some rejected batch CLIs could still exit 0.,CTX-AZ-004,"Entity onboarding was not Windows-BOM-safe across skill/agent/MCP/harness inputs, and failed batches needed non-zero exits.",Fixed,Skill add accepted BOM-prefixed SKILL.md and wrote wiki entity in temp CLI flow. Focused pytest regressions passed.,2026-06-23,Regression coverage added for BOM inputs and MCP rejected-batch exit.
|
| 8 |
+
CLI-007,CLI,Skill install,ctx-skill-install,pyproject.toml project.scripts,As a Claude Code user I can install a recommended skill,Skill installs into Claude skills directory with manifest and safe overwrite behavior,Temp Claude home,ctx-skill-install --help then dry/smoke path if available,Tested Pass,"install/unload batch: 187 passed, including skill install behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 9 |
+
CLI-008,CLI,Skill unload,ctx-skill-unload,pyproject.toml project.scripts,As a user I can unload stale skills,Skill is disabled/removed from active load state without deleting unrelated user files,Temp installed skill,ctx-skill-unload --help then temp uninstall smoke,Tested Pass,"install/unload batch: 187 passed, including skill unload behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 10 |
+
CLI-009,CLI,Skill mirror,ctx-skill-mirror,pyproject.toml project.scripts,As a user I can mirror installed skills into wiki,Mirror preserves source metadata and does not overwrite higher quality records silently,Temp skill source,ctx-skill-mirror --help,Tested Pass,"mirror/quality batch: 123 passed, including skill mirror behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 11 |
+
CLI-010,CLI,Skill health,ctx-skill-health,pyproject.toml project.scripts,As a maintainer I can check skill health,Health check reports missing frontmatter orphan entries and line drift with actionable exits,Repo graph/wiki available,ctx-skill-health --help then focused check,Tested Pass,"SkillSpector/health batch: 56 passed, including skill health behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 12 |
+
CLI-011,CLI,Skill quality,ctx-skill-quality,pyproject.toml project.scripts,As a maintainer I can compute skill quality,Quality scores explain telemetry intake graph and routing signals,Repo graph/wiki available,ctx-skill-quality --help then sample,Tested Pass,"mirror/quality batch: 123 passed, including skill quality behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 13 |
+
CLI-012,CLI,Agent add,ctx-agent-add,pyproject.toml project.scripts,As a user I can add or update an agent,Agent page is validated written atomically and connected to graph,Temp agent markdown and wiki path,ctx-agent-add --agent-path temp/agent.md --name demo --wiki temp/wiki,Retested Pass,Failed in isolated A-Z flow: Windows UTF-8 BOM input was rejected by markdown/JSON parsing; some rejected batch CLIs could still exit 0.,CTX-AZ-004,"Entity onboarding was not Windows-BOM-safe across skill/agent/MCP/harness inputs, and failed batches needed non-zero exits.",Fixed,Agent add accepted BOM-prefixed agent markdown and wrote wiki entity in temp CLI flow. Focused pytest regressions passed.,2026-06-23,Regression coverage added for BOM inputs and MCP rejected-batch exit.
|
| 14 |
+
CLI-013,CLI,Agent install,ctx-agent-install,pyproject.toml project.scripts,As a Claude Code user I can install an agent,Agent installs safely and appears in manifest/load surface,Temp Claude home,ctx-agent-install --help,Tested Pass,"install/unload batch: 187 passed, including agent install behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 15 |
+
CLI-014,CLI,Agent unload,ctx-agent-unload,pyproject.toml project.scripts,As a user I can unload stale agents,Agent active state is removed safely and recommendation can suggest replacements,Temp installed agent,ctx-agent-unload --help,Tested Pass,install/unload batch plus monitor 3-type coverage: 187 passed for install/unload core behavior.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 16 |
+
CLI-015,CLI,Agent mirror,ctx-agent-mirror,pyproject.toml project.scripts,As a user I can mirror agents into wiki,Mirror emits normalized wiki pages with source metadata,Temp agent source,ctx-agent-mirror --help,Tested Pass,Temp CLI smoke passed: ctx-agent-mirror mirrored agent body into converted-agents and cleaned temp files.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 17 |
+
CLI-016,CLI,MCP add,ctx-mcp-add,pyproject.toml project.scripts,As a user I can add or update an MCP server,MCP record is validated enriched written atomically and linked in graph,Temp MCP JSON/URL and wiki path,ctx-mcp-add --dry-run with fixture,Retested Pass,Failed in isolated A-Z flow: Windows UTF-8 BOM input was rejected by markdown/JSON parsing; some rejected batch CLIs could still exit 0.,CTX-AZ-004,"Entity onboarding was not Windows-BOM-safe across skill/agent/MCP/harness inputs, and failed batches needed non-zero exits.",Fixed,MCP add accepted BOM-prefixed JSON and wrote sharded wiki entity in temp CLI flow; stdin BOM regression is covered by pytest. Focused pytest regressions passed.,2026-06-23,Regression coverage added for BOM inputs and MCP rejected-batch exit.
|
| 18 |
+
CLI-017,CLI,MCP install,ctx-mcp-install,pyproject.toml project.scripts,As a Claude Code user I can install an MCP server,MCP config is updated safely and secrets are not echoed or persisted inline,Temp Claude config,ctx-mcp-install --help then dry/temp smoke,Tested Pass,"install/unload batch: 187 passed, including MCP install behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 19 |
+
CLI-018,CLI,MCP uninstall,ctx-mcp-uninstall,pyproject.toml project.scripts,As a user I can uninstall an MCP server,MCP config entry is removed without damaging other servers,Temp Claude config,ctx-mcp-uninstall --help,Tested Pass,"install/unload batch: 187 passed, including MCP uninstall behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 20 |
+
CLI-019,CLI,MCP fetch,ctx-mcp-fetch,pyproject.toml project.scripts,As a maintainer I can fetch MCP catalog data,Fetch produces normalized records with source provenance and retry-safe output,Network available or fixture mode,ctx-mcp-fetch --help,Tested Pass,"MCP fetch/ingest/server batch: 77 passed, 1 skipped.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 21 |
+
CLI-020,CLI,MCP ingest,ctx-mcp-ingest,pyproject.toml project.scripts,As a maintainer I can ingest MCP catalog data,Ingest deduplicates normalizes and updates wiki/graph inputs,Fixture catalog,ctx-mcp-ingest --help,Tested Pass,"MCP fetch/ingest/server batch: 77 passed, 1 skipped.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 22 |
+
CLI-021,CLI,MCP enrich,ctx-mcp-enrich,pyproject.toml project.scripts,As a maintainer I can enrich MCP records,Enrichment updates metadata without clobbering curated fields,Fixture record,ctx-mcp-enrich --help,Tested Pass,"MCP enrich/canonical/quality signals batch: 78 passed, 1 skipped.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 23 |
+
CLI-022,CLI,MCP quality,ctx-mcp-quality,pyproject.toml project.scripts,As a maintainer I can score MCP quality,MCP score explains source docs install and metadata signals,Repo wiki available,ctx-mcp-quality --help,Tested Pass,"MCP quality batches passed: 123 passed plus 78 passed, 1 skipped in signal/enrich coverage.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 24 |
+
CLI-023,CLI,MCP rebuild index,ctx-mcp-rebuild-index,pyproject.toml project.scripts,As a maintainer I can rebuild MCP lookup index,Index rebuild is deterministic and validates duplicate slugs,Repo wiki available,ctx-mcp-rebuild-index --help,Tested Pass,Temp CLI smoke passed: ctx-mcp-rebuild-index wrote .canonical-index.json; canonical index tests included in 78 passed batch.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 25 |
+
CLI-024,CLI,MCP server,ctx-mcp-server,pyproject.toml project.scripts,As an MCP client I can connect to ctx as an MCP server,Server speaks JSON-RPC over stdio exposes ctx-core tools and shapes invalid requests safely,Local MCP client or stdio smoke,JSON-RPC initialize then tools/list and tools/call against ctx-mcp-server,Tested Pass,test_mcp_server.py covers initialize tools/list tools/call error shaping subprocess round-trip and telemetry redaction.,,,,,2026-06-29,Corrected tracker behavior from nonexistent --help path to the actual stdio MCP server contract.
|
| 26 |
+
CLI-025,CLI,Harness add,ctx-harness-add,pyproject.toml project.scripts,As a user I can add or update a harness,Harness page is atomic symlink-safe scored and linked to compatible model goals,Temp harness JSON/wiki,ctx-harness-add --dry-run --from-json fixture,Retested Pass,Failed in isolated A-Z flow: Windows UTF-8 BOM input was rejected by markdown/JSON parsing; some rejected batch CLIs could still exit 0.,CTX-AZ-004,"Entity onboarding was not Windows-BOM-safe across skill/agent/MCP/harness inputs, and failed batches needed non-zero exits.",Fixed,Harness add accepted BOM-prefixed JSON and wrote wiki entity in temp CLI flow. Focused pytest regressions passed.,2026-06-23,Regression coverage added for BOM inputs and MCP rejected-batch exit.
|
| 27 |
+
CLI-026,CLI,Harness install/recommend,ctx-harness-install,pyproject.toml project.scripts,As a local/API model user I can get harness recommendations and install one,Wizard interviews model goal tools privacy runtime and recommends harness above threshold or no-fit PRD,Graph/wiki installed,ctx-harness-install --dry-run --goal sample --model openai/gpt-4.1,Retested Pass,FAIL: generic Python coding-agent goal recommended narrow text-to-cad harness,CTX-AZ-003,Narrow-domain harnesses could win generic goals via shared python/filesystem/verification terms,Fixed with domain-fit penalty unless the user goal names the harness domain,PASS: generic goal now returns no-fit PRD; explicit CAD/robotics goal still recommends text-to-cad; focused tests 4 passed,2026-06-23,
|
| 28 |
+
CLI-027,CLI,Bundle suggest,ctx-bundle-suggest,pyproject.toml project.scripts,As a session-start hook I can get a capped bundle suggestion,Bundle suggestions are capped deduped and explain why each entity is useful,Graph installed and repo context,ctx-bundle-suggest --help,Tested Pass,"bundle/lifecycle/toolbox batch: 110 passed, including bundle suggestion/orchestration behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 29 |
+
CLI-028,CLI,Lifecycle,ctx-lifecycle,pyproject.toml project.scripts,As a user I can track load/unload lifecycle,Usage and stale entities are tracked with confirmable unload behavior,Audit/log path available,ctx-lifecycle --help,Tested Pass,"bundle/lifecycle/toolbox batch: 110 passed, including lifecycle behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 30 |
+
CLI-029,CLI,Toolbox,ctx-toolbox,pyproject.toml project.scripts,As a user I can manage toolbox councils,Toolbox init/list/run is idempotent and does not warn on expected existing state,Temp toolbox home,ctx-toolbox --help,Tested Pass,"bundle/lifecycle/toolbox batch: 110 passed, including toolbox config/hooks behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 31 |
+
CLI-030,CLI,Dedup check,ctx-dedup-check,pyproject.toml project.scripts,As a maintainer I can block duplicate entities,Dedup gate catches near duplicates and reports merge/update advice,Repo wiki/graph available,ctx-dedup-check --help then sample,Tested Pass,"wiki queue/dedup/source/package/category batch: 106 passed, including dedup behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 32 |
+
CLI-031,CLI,Tag backfill,ctx-tag-backfill,pyproject.toml project.scripts,As a maintainer I can backfill weak tags,Backfill adds useful tags without overwriting curated tags blindly,Fixture wiki,ctx-tag-backfill --help,Tested Pass,Temp-home CLI smoke passed: ctx-tag-backfill generated a report for an empty-tag skill; generated report artifact was removed.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 33 |
+
CLI-032,CLI,Source registry,ctx-source-registry,pyproject.toml project.scripts,As a maintainer I can track external sources,Registry records source status license and update provenance,Repo source registry available,ctx-source-registry --help,Tested Pass,Source registry test plus CLI JSON smoke passed; source registry emitted validated JSON and temp output was removed.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 34 |
+
CLI-033,CLI,Wiki graphify,ctx-wiki-graphify,pyproject.toml project.scripts,As a maintainer I can build the knowledge graph,Graphify exports crash-safe graph artifacts refreshes generated links and validates counts,Repo wiki path,ctx-wiki-graphify --dry-run or graph-only fixture,Tested Pass,wiki graphify/security/density/quality/harness entity tests: 43 passed.,,,,,2026-06-23,Validated in final A-Z pass.
|
| 35 |
+
CLI-034,CLI,Incremental attach,ctx-incremental-attach,pyproject.toml project.scripts,As a maintainer I can attach new nodes fast,Attach uses pinned embedding/index geometry writes provenance-rich overlays and supports dry-run/queued fallback,Vector index and fixture node,ctx-incremental-attach attach --dry-run ...,Tested Pass,"graph packs/store/incremental batch: 59 passed, including incremental attach A-Z flow.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 36 |
+
CLI-035,CLI,Incremental shadow,ctx-incremental-shadow,pyproject.toml project.scripts,As a maintainer I can compare incremental attach with batch graph,Shadow mode reports precision recall top-k agreement and bad examples,Graph/index available,ctx-incremental-shadow --help,Tested Pass,incremental shadow tests: 6 passed.,,,,,2026-06-23,Validated in final A-Z pass.
|
| 37 |
+
CLI-036,CLI,Graph store,ctx-graph-store,pyproject.toml project.scripts,As a dashboard user I can search graph quickly via SQLite store,Store builds validates searches and returns neighborhoods consistent with graph artifacts,Graph artifact available,ctx-graph-store --help,Tested Pass,"graph packs/store/incremental batch: 59 passed, including graph-store CLI build/validate/search/neighborhood behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 38 |
+
CLI-037,CLI,Pack compaction,ctx-pack-compact,pyproject.toml project.scripts,As a maintainer I can compact overlay packs,Compaction validates overlays tombstones counts and writes new base artifacts atomically,Graph packs available,ctx-pack-compact --help,Tested Pass,graph packs/store/incremental batch: 59 passed plus pack_compaction coverage.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 39 |
+
CLI-038,CLI,Wiki worker,ctx-wiki-worker,pyproject.toml project.scripts,As a maintainer I can drain wiki maintenance queue,Worker leases retries jobs and recovers after failure without corrupting artifacts,Temp wiki queue,ctx-wiki-worker --once --limit 1 on fixture,Tested Pass,"wiki queue/dedup/source/package/category batch: 106 passed, including wiki worker upsert/delete/compaction jobs.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 40 |
+
CLI-039,CLI,SkillSpector audit,ctx-skillspector-audit,pyproject.toml project.scripts,As a maintainer I can audit skill quality and stale resources,Audit reports stale wrappers invalid references and remediation actions,Repo skills available,ctx-skillspector-audit --help,Tested Pass,"SkillSpector/health batch: 56 passed, including audit payload/report normalization.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 41 |
+
CLI-040,CLI,SkillSpector scan,ctx-skillspector-scan,pyproject.toml project.scripts,As a maintainer I can scan SkillSpector data for dashboard,Scan produces dashboard-readable results without blocking normal monitor load,Repo skills available,ctx-skillspector-scan --help,Tested Pass,"SkillSpector/health batch: 56 passed, including scan/service behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 42 |
+
CLI-041,CLI,SkillSpector remediation,ctx-skillspector-remediation,pyproject.toml project.scripts,As a maintainer I can remediate SkillSpector findings,Remediation proposes or applies safe fixes with audit evidence,Audit fixture,ctx-skillspector-remediation --help,Tested Pass,"SkillSpector/health batch: 56 passed, including remediation behavior.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 43 |
+
CLI-042,Dashboard,Monitor server,ctx-monitor,pyproject.toml project.scripts,As a user I can launch the local dashboard,Dashboard starts on local host serves all nav pages and does not expose LAN mode unauthenticated,Graph runtime installed,ctx-monitor serve --host 127.0.0.1 --port 8765,Tested Pass,Started ctx-monitor on 127.0.0.1:8765; HTTP dashboard responded after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 44 |
+
CLI-043,CLI,Telemetry export,ctx-telemetry-export,pyproject.toml project.scripts and docs/telemetry.md,As an enterprise operator I can export local ctx telemetry to configured sinks,Export reads local event and metric spools applies checkpoints and supports local JSONL or OTLP sinks with host allow-listing,Telemetry spool and optional exporter config,ctx-telemetry-export --dry-run --json,Tested Pass,enterprise telemetry focused tests covered exporter configuration checkpointing local JSONL and OTLP payload paths.,,,,,2026-06-29,Validated in telemetry release gate without requiring external collector credentials.
|
| 45 |
+
CLI-044,CLI,Telemetry retention,ctx-telemetry-retention,pyproject.toml project.scripts and docs/telemetry.md,As an enterprise operator I can preview and enforce telemetry retention,Retention plans and enforces TTL cleanup for local telemetry signals while recording status without leaking payloads,Telemetry config and local spool paths,ctx-telemetry-retention plan --signal all --json,Tested Pass,enterprise telemetry focused tests covered retention planning enforcement status output and privacy salt behavior.,,,,,2026-06-29,Validated as local-only enterprise privacy default with exporters separately configurable.
|
| 46 |
+
PYAPI-001,Python API,Public Python API,ctx.api and ctx top-level re-exports,src/ctx/api.py and src/ctx/__init__.py,As a harness author I can import ctx from Python without depending on internal modules,recommend_bundle graph_query wiki_search wiki_get list_all_entities default_wiki_dir and CtxCoreToolbox keep stable signatures safe defaults and top-level re-exports,Runtime wiki or synthetic fixture available,pytest src/tests/test_public_api.py -q,Tested Pass,test_public_api.py covers __all__ exports top-level re-exports signatures happy paths empty paths and telemetry privacy payloads.,,,,,2026-06-29,Added during canonical feature inventory gap pass.
|
| 47 |
+
MCP-001,MCP/Core Tools,Read/query tool catalog,"ctx__recommend_bundle, ctx__graph_query, ctx__wiki_search, ctx__wiki_get",src/ctx/adapters/generic/ctx_core_tools.py and src/ctx/mcp_server/server.py,As an MCP or generic harness client I can call ctx read tools consistently,Read tools return recommendations graph neighborhoods wiki search and wiki entity payloads through both generic toolbox and MCP stdio surfaces,Synthetic graph/wiki fixture available,pytest src/tests/test_harness_ctx_core.py src/tests/test_mcp_server.py -q,Tested Pass,test_harness_ctx_core.py and test_mcp_server.py pin the read tool names schemas dispatch success paths and JSON-RPC tools/list exposure.,,,,,2026-06-29,Canonical tracker row for the first-class ctx-core read tools.
|
| 48 |
+
MCP-002,MCP/Core Tools,Lifecycle and session tool catalog,"ctx__observe_dev_event, ctx__load_entity, ctx__mark_entity_used, ctx__record_validation, ctx__record_escalation, ctx__unload_entity, ctx__session_end, ctx__session_state",src/ctx/adapters/generic/ctx_core_tools.py and runtime_lifecycle.py,As an MCP or generic harness client I can record runtime lifecycle evidence,Lifecycle tools append privacy-safe session events enforce bound session IDs and expose session state without leaking raw entity slugs,Temp runtime lifecycle directory available,pytest src/tests/test_harness_ctx_core.py src/tests/test_mcp_server.py -q,Tested Pass,test_harness_ctx_core.py covers lifecycle append order bound session enforcement telemetry hashing and test_mcp_server.py covers lifecycle tools/call round-trip.,,,,,2026-06-29,Canonical tracker row for lifecycle/session tools exposed in the MCP/core toolbox catalog.
|
| 49 |
+
MCP-003,MCP Router,Trusted third-party MCP attachment,McpClient and McpRouter,src/ctx/adapters/generic/tools/mcp_router.py,As a generic harness user I can attach trusted third-party MCP servers safely,Router starts MCP subprocesses with isolated environment namespaces tools handles timeouts and redacts secrets from errors,Fake MCP server fixture available,pytest src/tests/test_mcp_router.py -q,Tested Pass,test_mcp_router.py covers client start stop tool listing calls namespace routing timeout crash handling environment isolation and stderr secret redaction.,,,,,2026-06-29,Added because third-party MCP attachment is user-facing host functionality not just internal plumbing.
|
| 50 |
+
MCP-004,MCP/Core Tools,Response format negotiation,output_format and _response_format,src/ctx/adapters/generic/ctx_core_tools.py,As a tool caller I can request JSON or GCF output from read tools,Read tool schemas expose optional output_format and _response_format aliases and fall back to JSON errors when GCF codec is unavailable,Generic toolbox fixture available,pytest src/tests/test_harness_ctx_core.py -q,Tested Pass,test_harness_ctx_core.py covers optional schema fields JSON default GCF opt-in public alias and codec-missing fallback.,,,,,2026-06-29,Tracks a schema-visible behavior exposed to MCP/tool clients.
|
| 51 |
+
DASH-001,Dashboard,Home page,/,src/ctx/monitor/routes.py,As a user I can land on a useful dashboard home,Home shows current counts and high-value entry points without stale numbers,Monitor running,GET /,Tested Pass,GET / returned 200 in 1506ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 52 |
+
DASH-002,Dashboard,Loaded page,/loaded,src/ctx/monitor/routes.py,As a user I can see loaded entities,Loaded page lists active skills agents MCPs and supports load state clarity,Monitor running,GET /loaded,Tested Pass,GET /loaded returned 200 in 79ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 53 |
+
DASH-003,Dashboard,Skills page,/skills,src/ctx/monitor/routes.py,As a user I can browse skills with pagination/search,Skills page is fast and does not dump all cards at once,Monitor running,GET /skills,Tested Pass,GET /skills returned 200 in 165ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 54 |
+
DASH-004,Dashboard,SkillSpector page,/skillspector,src/ctx/monitor/routes.py,As a maintainer I can inspect quality findings,SkillSpector page renders findings and remediation links,Monitor running,GET /skillspector,Tested Pass,GET /skillspector returned 200 in 3315ms after restart; functional but slower than core pages.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 55 |
+
DASH-005,Dashboard,Wiki index/catalog,"/wiki, /catalog, and /catalog/",src/ctx/monitor/routes.py,As a user I can search entity catalog,Wiki/catalog supports autocomplete-like search and tiles for skill agent MCP harness,Monitor running,GET /catalog?type=agent&q=review,Retested Pass,FAIL: live route timed out after 60018ms before fix,CTX-AZ-001,/catalog with query rebuilt too much server-side catalog state while /api/entities/search was fast,Fixed by using bounded search results for queried wiki/catalog render,PASS: live route 200 in 1422ms after monitor restart; focused tests 4 passed,2026-06-23,Regression covered by test_render_wiki_index_query_uses_bounded_search
|
| 56 |
+
DASH-006,Dashboard,Wiki entity page,/wiki/<slug>,src/ctx/monitor/routes.py,As a user I can inspect a full entity page,Entity page has Overview Subgraph Quality tabs and rendered markdown/frontmatter,Monitor running,GET /wiki/github?type=mcp-server,Tested Pass,GET /wiki/github?type=mcp-server returned 200 in 2705ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 57 |
+
DASH-007,Dashboard,Graph page,/graph,src/ctx/monitor/routes.py,As a user I can explore graph interactively,Graph loads live search results click-to-focus double-click-back filters match histogram and useful inspector,Monitor running,GET /graph then interact,Retested Pass,PASS: /graph returned 200 in 31ms after monitor restart,,,,"PASS: Playwright test_ctx_monitor_browser.py::test_graph_page_uses_builtin_svg_renderer covered renderer click focus double-click back filters histogram live search type shapes and inspector.",2026-06-23,Browser interaction pass completed.
|
| 58 |
+
DASH-020,Dashboard,Graph live search type preservation,/graph focus search,src/ctx/monitor/pages/graph_client.py,As a dashboard user searching duplicate graph slugs I can keep the selected entity type,Live search sends the selected focus type to /api/entities/search.json so duplicate slugs resolve to the intended skill agent MCP server or harness,Monitor running with graph search data,pytest src/tests/test_ctx_monitor.py::test_render_graph_focus_controls_preserve_type -q,Retested Pass,FAIL: graph live search fetched /api/entities/search.json without type even when focus-type was selected.,DASH-UX-004,Graph live search ignored the selected focus entity type and could suggest the wrong duplicate slug type,Fixed by appending selectedFocusType to the live entity search request,"PASS: focused graph render test pins selected type in live search URL generation.",2026-06-29,Added from dashboard/graph expert lane UX finding.
|
| 59 |
+
DASH-008,Dashboard,Manage page,/manage,src/ctx/monitor/routes.py,As a user I can manage entities,Manage supports search upload/upsert delete/manual edit with safety prompts,Monitor running,GET /manage,Tested Pass,GET /manage returned 200 in 261ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 60 |
+
DASH-009,Dashboard,Harness setup,/harness,src/ctx/monitor/routes.py,As a local/API model user I can use a harness wizard,Harness Setup interviews model and goals recommends matching harness or no-fit PRD,Monitor running,GET /harness,Tested Pass,GET /harness returned 200 in 23ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 61 |
+
DASH-010,Dashboard,Docs page,/docs,src/ctx/monitor/routes.py,As a user I can read repo docs inside dashboard,Docs render markdown like mkdocs with tabs sidebar hierarchy and local search,Monitor running,GET /docs,Tested Pass,GET /docs returned 200 in 1219ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 62 |
+
DASH-011,Dashboard,Config page,/config,src/ctx/monitor/routes.py,As a user I can view/edit important config,Config shows explanations defaults required fields validation and safe save,Monitor running,GET /config and POST /api/config,Tested Pass,GET /config returned 200 in 12ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 63 |
+
DASH-012,Dashboard,Status page,/status,src/ctx/monitor/routes.py,As a user I can see system health,Status reports graph/wiki/cache/session health with actionable errors,Monitor running,GET /status,Tested Pass,GET /status returned 200 in 3750ms after restart; functional but slower than core pages.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 64 |
+
DASH-013,Dashboard,KPI page,/kpi,src/ctx/monitor/routes.py,As a user I can inspect recommendation effectiveness,KPIs show usage score quality and lifecycle trends without slow unbounded render,Monitor running,GET /kpi,Tested Pass,GET /kpi returned 200 in 107ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 65 |
+
DASH-014,Dashboard,Runtime page,/runtime,src/ctx/monitor/routes.py,As a user I can inspect runtime artifacts,Runtime shows graph store cache versions and artifact freshness,Monitor running,GET /runtime,Tested Pass,GET /runtime returned 200 in 25ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 66 |
+
DASH-015,Dashboard,Sessions page,/sessions,src/ctx/monitor/routes.py,As a user I can inspect sessions,Sessions page lists transcripts and details without leaking secrets,Monitor running,GET /sessions,Tested Pass,GET /sessions returned 200 in 269ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 67 |
+
DASH-016,Dashboard,Logs page,/logs,src/ctx/monitor/routes.py,As a user I can inspect logs,Logs render audit/log files or clear empty state,Monitor running,GET /logs,Tested Pass,GET /logs returned 200 in 132ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 68 |
+
DASH-017,Dashboard,Live events,/events and /live,src/ctx/monitor/routes.py,As a user I can tail live events,Live page connects SSE and shows clear empty/disconnected states,Monitor running,GET /events and /api/events.stream,Tested Pass,GET /live returned 200 in 87ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 69 |
+
DASH-018,Dashboard,Session detail page,/session/<session_id>,src/ctx/monitor/routes.py,As a user I can inspect one session timeline,Session detail filters audit and load events to the requested session and escapes untrusted values,Monitor running with audit fixtures,GET /session/<session_id>,Tested Pass,Focused monitor tests cover session_detail filtering and render_session_detail escaping.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 70 |
+
DASH-019,Dashboard,Sidecar detail page,/skill/<slug>,src/ctx/monitor/routes.py,As a user I can inspect one entity sidecar,Sidecar detail renders quality breakdown and timeline for typed skill agent MCP or harness sidecars,Monitor running with sidecar fixtures,GET /skill/<slug>?type=agent,Tested Pass,Focused monitor tests cover sidecar links plus render_skill_detail route wiring and typed sidecar loading.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 71 |
+
API-001,Dashboard API,Sessions API,/api/sessions.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch sessions JSON,Endpoint returns valid JSON quickly with no secrets,Monitor running,GET /api/sessions.json,Tested Pass,GET /api/sessions.json returned 200 in 241ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 72 |
+
API-002,Dashboard API,Manifest API,/api/manifest.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch manifest JSON,Endpoint returns loaded entities and counts consistently,Monitor running,GET /api/manifest.json,Tested Pass,GET /api/manifest.json returned 200 in 5ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 73 |
+
API-003,Dashboard API,Status API,/api/status.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch health JSON,Endpoint returns graph/wiki/cache health with correct status code,Monitor running,GET /api/status.json,Tested Pass,GET /api/status.json returned 200 in 4303ms after restart; functional but slower than core APIs.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 74 |
+
API-004,Dashboard API,KPI API,/api/kpi.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch KPI JSON,Endpoint returns bounded KPI payload quickly,Monitor running,GET /api/kpi.json,Tested Pass,GET /api/kpi.json returned 200 in 105ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 75 |
+
API-005,Dashboard API,Grades API,/api/grades.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch grades JSON,Endpoint returns score and grade payload with explanations,Monitor running,GET /api/grades.json,Retested Pass,Initial dashboard sweep: GET /api/grades.json returned 200 but took 16833ms for a tiny payload.,CTX-AZ-005,Grades API ignored cached KPI grade_counts and rescanned all quality sidecars on demand.,Fixed,"After routing through cached KPI summary, GET /api/grades.json returned 200 in 92ms after restart.",2026-06-23,Fallback full sidecar scan remains for missing KPI summary.
|
| 76 |
+
API-006,Dashboard API,Runtime API,/api/runtime.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch runtime JSON,Endpoint returns artifact/cache versions and paths safely,Monitor running,GET /api/runtime.json,Tested Pass,GET /api/runtime.json returned 200 in 21ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 77 |
+
API-007,Dashboard API,Entity search API,/api/entities/search.json,src/ctx/monitor/routes.py,As a dashboard client I can search entities,Endpoint supports live query type filters and useful fuzzy results,Monitor running,GET /api/entities/search.json?q=review&type=agent,Tested Pass,PASS: endpoint returned 200 in 28ms with agent review results,,,,,2026-06-23,
|
| 78 |
+
API-008,Dashboard API,Entity detail API,/api/entity/<slug>.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch entity details,Endpoint returns canonical entity docs frontmatter and graph sidecar,Monitor running,GET /api/entity/github.json?type=mcp-server,Tested Pass,GET /api/entity/github.json?type=mcp-server returned 200 in 27ms after restart.,,,,,2026-06-23,Dashboard route sweep; no mutation performed.
|
| 79 |
+
API-009,Dashboard API,Graph neighborhood API,/api/graph/<slug>.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch a graph neighborhood,Endpoint returns bounded nodes edges scores and reasons fast after runtime install,Monitor running,GET /api/graph/github.json?type=skill&limit=20,Tested Pass,PASS: endpoint returned 200 in 2295ms with nodes/edges JSON,,,,,2026-06-23,
|
| 80 |
+
API-010,Dashboard API,Load/unload APIs,/api/load and /api/unload,src/ctx/monitor/routes.py,As a dashboard user I can load/unload entities,POST validates input changes active state and rejects unsafe requests,Monitor running and temp state,POST /api/load then /api/unload,Tested Pass,"Focused pytest passed: perform_load rejects invalid slugs, load security scan surfaces output, perform_unload rejects invalid slugs.",,,,,2026-06-23,"Validated through isolated monitor mutation tests, not live local catalog mutation."
|
| 81 |
+
API-011,Dashboard API,Entity upsert/delete APIs,/api/entity/upsert and /api/entity/delete,src/ctx/monitor/routes.py,As a dashboard user I can manually add edit or delete entities,POST validates type slug content and queues graph/wiki updates safely,Monitor running and temp wiki,POST fixture upsert/delete,Tested Pass,Focused pytest passed: entity upsert writes wiki page and queues graph refresh; existing-page confirmation and delete behavior covered.,,,,,2026-06-23,"Validated through isolated monitor mutation tests, not live local catalog mutation."
|
| 82 |
+
API-012,Dashboard API,Config read API,/api/config.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch effective config JSON,Endpoint returns defaults plus user overrides with required config metadata and no secrets,Monitor running,GET /api/config.json,Tested Pass,Focused monitor config tests cover effective payload rendering and config save/clear behavior.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 83 |
+
API-013,Dashboard API,Sidecars API,/api/sidecars.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch paginated sidecar cards,Endpoint supports query type grade floor and limit filters without full unbounded scans,Monitor running with sidecar fixtures,GET /api/sidecars.json?q=review&type=agent&grade=A&hide_floor=1&limit=1,Tested Pass,Focused monitor API test returned filtered sidecar JSON with total limit filters and caps.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 84 |
+
API-014,Dashboard API,SkillSpector API,/api/skillspector.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch SkillSpector findings,Endpoint returns filtered audit summary and records for dashboard remediation views,Monitor running with skillspector audit fixture,GET /api/skillspector.json?severity=HIGH&q=prompt,Tested Pass,Focused monitor API test returned HIGH prompt-injection SkillSpector record JSON.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 85 |
+
API-015,Dashboard API,Sidecar detail API,/api/skill/<slug>.json,src/ctx/monitor/routes.py,As a dashboard client I can fetch one sidecar JSON,Endpoint returns typed sidecar details or a safe 404 for missing/unsafe slugs,Monitor running with typed sidecar fixture,GET /api/skill/filesystem.json?type=mcp-server,Tested Pass,Focused monitor API test returned typed MCP sidecar JSON and unsafe slug rejection is covered.,,,,,2026-06-23,Added during route inventory coverage audit.
|
| 86 |
+
GRAPH-001,Graph/Wiki,Full graph artifact validation,src/validate_graph_artifacts.py,pyproject and scripts/ci_preflight.py,As a maintainer I can validate shipped graph artifacts,Validation deep-checks tar members counts no originals no locks exact release counts and line thresholds,Repo graph artifacts present,python src/validate_graph_artifacts.py --deep ...,Tested Pass,PASS: exact counts validated nodes 79958 edges 1778069 semantic 1088763 pages skills 68494 agents 467 MCPs 10790 harnesses 207,,,,,2026-06-23,
|
| 87 |
+
GRAPH-002,Graph/Wiki,Published stats sync,src/update_repo_stats.py,pyproject and src/update_repo_stats.py,As a maintainer I can keep README docs and About counts in sync,Stats come from shipped graph artifacts and checks fail when docs drift,Repo graph artifacts present,python src/update_repo_stats.py --check,Tested Pass,PASS: README/docs stats are up to date; test_release_graph_count_sync 3 passed,,,,,2026-06-23,
|
| 88 |
+
GRAPH-003,Graph/Wiki,Graph pack manifest,ctx core graph_packs/pack_validation,src/ctx/core/graph and wiki modules,As a maintainer I can use base and overlay graph packs,Packs have manifest export IDs parent IDs checksums tombstones and merged reads,Graph pack fixtures,pytest graph pack tests,Tested Pass,graph packs/store/incremental batch: 59 passed and graph pack manifest tests passed.,,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 89 |
+
GRAPH-004,Graph/Wiki,SQLite operational graph store,ctx-graph-store,src/ctx/core/graph/graph_store.py,As a dashboard user I get fast search/neighborhoods,Store builds from graphify-out validates freshness and accelerates reads,Runtime graph installed,ctx-graph-store build/search/neighborhood fixture,Tested Pass,"graph packs/store/incremental batch: 59 passed, including SQLite graph store tests.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 90 |
+
GRAPH-005,Graph/Wiki,Vector index and ANN attach,ctx-incremental-attach,src/ctx/core/graph/vector_index.py,As a maintainer I can update graph without global rebuild,New node embedding queries base+delta index and writes overlay edges with provenance,Index fixture,incremental attach dry-run and validate-indexes,Tested Pass,"graph packs/store/incremental batch: 59 passed, including vector/incremental attach A-Z tests.",,,,,2026-06-23,Validated in focused pytest or isolated temp CLI smoke during A-Z pass.
|
| 91 |
+
HARNESS-001,Harness,Own-model harness recommendation,ctx-init and ctx-harness-install,ctx_init.py and harness_install.py,As a user with non-Claude model I can choose model/goals and get best harness,Flow interviews provider model goal runtime tools privacy and returns top harnesses above configured score,Runtime graph installed,ctx-init --model-mode custom or harness dry-run,Retested Pass,FAIL: generic own-model coding-agent goal returned text-to-cad false positive,CTX-AZ-003,Narrow-domain harnesses were not penalized for generic goals,Fixed with domain-fit penalty preserving explicit domain matches,PASS: generic coding-agent goal returns no recommendations plus custom harness PRD,2026-06-23,
|
| 92 |
+
HARNESS-002,Harness,No-fit harness PRD,ctx-harness-install,harness_install.py,As a user with no fitting harness I get instructions to build one,No-fit path produces provider-aware PRD attachable to ctx recommendation system,Graph with threshold forcing no match,ctx-harness-install --dry-run with restrictive constraints,Tested Pass,PASS: --plan-on-no-fit printed provider-aware Custom Harness PRD for openai/gpt-4.1 with runtime/tools/privacy/verification fields,,,,,2026-06-23,
|
| 93 |
+
DOC-001,Docs,Public docs install path,docs/index.md and docs/*.md,docs file inventory,As a first-time user I can follow docs exactly,Docs commands are current numbers accurate no dead module paths no future-roadmap fluff,Docs built locally,mkdocs build or docs route smoke,Tested Pass,python -m mkdocs build --strict passed; python src/update_repo_stats.py --check passed.,,,,,2026-06-23,Validated in final A-Z pass.
|
| 94 |
+
DOC-002,Docs,README badges/catalog links,README.md and docs/catalog.md,README plus public docs,As a GitHub visitor I can click badges and browse catalog,Skill agent MCP harness badges open public catalog pages with working search guidance,Public docs available,Inspect README links and catalog route,Tested Pass,"README top badges checked for Tests, Graph, Skills, Agents, MCPs, Harnesses; update_repo_stats --check passed.",,,,,2026-06-23,Validated in final A-Z pass.
|
| 95 |
+
DOC-NAV-001,Docs,Public home page,docs/index.md,mkdocs.yml nav,As a docs visitor I can start from the ctx home page,The page explains ctx positioning install entry points and links onward through public docs,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 96 |
+
DOC-NAV-002,Docs,Public catalog page,docs/catalog.md,mkdocs.yml nav,As a docs visitor I can browse the public catalog,The page exposes searchable skill agent MCP and harness catalog guidance without needing the local dashboard,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 97 |
+
DOC-NAV-003,Docs,Knowledge graph page,docs/knowledge-graph.md,mkdocs.yml nav,As a docs visitor I can understand shipped graph artifacts,The page documents graph contents counts validation and usage expectations for enterprise review,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 98 |
+
DOC-NAV-004,Docs,Hugging Face publish page,docs/huggingface-publish.md,mkdocs.yml nav,As a release operator I can follow the Hugging Face publishing docs,The page explains dataset sync artifacts and release expectations with credential requirements separated from code,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 99 |
+
DOC-NAV-005,Docs,Entity onboarding page,docs/entity-onboarding.md,mkdocs.yml nav,As a curator I can onboard skills agents MCPs and harnesses from docs,The page describes entity inputs validation and graph attachment behavior for contributor workflows,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 100 |
+
DOC-NAV-006,Docs,Dashboard page,docs/dashboard.md,mkdocs.yml nav,As a dashboard user I can understand the local monitor,The page documents dashboard routes data sources and expected monitor workflows,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 101 |
+
DOC-NAV-007,Docs,Telemetry page,docs/telemetry.md,mkdocs.yml nav,As an enterprise operator I can configure telemetry safely,The page documents OpenTelemetry configuration exporters privacy defaults and operational checks,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 102 |
+
DOC-NAV-008,Docs,Harness host attachment page,docs/harness/attaching-to-hosts.md,mkdocs.yml nav,As a harness integrator I can attach ctx to supported hosts,The page describes host attachment expectations and verification steps for harness adoption,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 103 |
+
DOC-NAV-009,Docs,Clean-host contract page,docs/harness/clean-host-contract.md,mkdocs.yml nav,As a release reviewer I can understand the clean host contract,The page documents clean environment install checks and what must pass for release confidence,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 104 |
+
DOC-NAV-010,Docs,Toolbox overview page,docs/toolbox/index.md,mkdocs.yml nav,As a toolbox user I can understand toolbox capabilities,The page introduces toolbox configuration council execution hooks and related workflows,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 105 |
+
DOC-NAV-011,Docs,Toolbox configuration page,docs/toolbox/configuration.md,mkdocs.yml nav,As a toolbox user I can configure ctx toolboxes,The page documents configuration files fields and expected toolbox behavior,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 106 |
+
DOC-NAV-012,Docs,Starter toolboxes page,docs/toolbox/starters.md,mkdocs.yml nav,As a new toolbox user I can start from prepared toolbox examples,The page presents starter toolbox choices and the workflow each starter supports,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 107 |
+
DOC-NAV-013,Docs,Council runner page,docs/toolbox/council-runner.md,mkdocs.yml nav,As a toolbox operator I can run council workflows,The page documents council runner behavior inputs outputs and review expectations,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 108 |
+
DOC-NAV-014,Docs,Toolbox hooks page,docs/toolbox/hooks.md,mkdocs.yml nav,As a toolbox user I can configure hooks and triggers,The page documents hook trigger behavior and safe integration expectations,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 109 |
+
DOC-NAV-015,Docs,Behavior miner page,docs/toolbox/behavior-miner.md,mkdocs.yml nav,As a maintainer I can understand behavior mining workflows,The page documents behavior miner purpose inputs outputs and review use cases,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 110 |
+
DOC-NAV-016,Docs,Intent interview page,docs/toolbox/intent-interview.md,mkdocs.yml nav,As a toolbox user I can run intent interview flows,The page documents interview prompts outputs and how intent feeds recommendation decisions,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 111 |
+
DOC-NAV-017,Docs,Verdicts and guardrails page,docs/toolbox/verdicts.md,mkdocs.yml nav,As a reviewer I can understand toolbox verdicts and guardrails,The page documents verdict meanings guardrail checks and decision support behavior,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 112 |
+
DOC-NAV-018,Docs,Backup hook install page,docs/backup-hook-install.md,mkdocs.yml nav,As a Claude Code user I can install backup hooks from docs,The page documents backup hook install behavior and safety expectations,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 113 |
+
DOC-NAV-019,Docs,Skill router overview page,docs/skill-router/index.md,mkdocs.yml nav,As a skill-router user I can understand routing behavior,The page explains routing inputs outputs and how ctx chooses useful skills,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 114 |
+
DOC-NAV-020,Docs,Stack signatures page,docs/stack-signatures.md,mkdocs.yml nav,As a maintainer I can understand stack signature matching,The page documents stack signatures and how repo signals inform recommendations,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 115 |
+
DOC-NAV-021,Docs,Skill-stack matrix page,docs/skill-stack-matrix.md,mkdocs.yml nav,As a docs visitor I can inspect skill to stack coverage,The page documents how skills map to stack signals and where recommendations come from,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 116 |
+
DOC-NAV-022,Docs,Marketplace registry page,docs/marketplace-registry.md,mkdocs.yml nav,As a docs visitor I can understand marketplace registry data,The page documents registry source expectations and public catalog meaning,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 117 |
+
DOC-NAV-023,Docs,Skill health page,docs/skills-health.md,mkdocs.yml nav,As a maintainer I can understand skill health checks,The page documents health signals expected remediation and release review meaning,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 118 |
+
DOC-NAV-024,Docs,Memory anchoring page,docs/memory-anchor.md,mkdocs.yml nav,As a user I can understand memory anchoring behavior,The page documents memory anchor concepts configuration and expected product behavior,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 119 |
+
DOC-NAV-025,Docs,Skill lifecycle and dashboard page,docs/skill-lifecycle-and-dashboard.md,mkdocs.yml nav,As a dashboard user I can understand skill lifecycle views,The page documents lifecycle states dashboard linkage and expected user workflows,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 120 |
+
DOC-NAV-026,Docs,Skill-quality install page,docs/skill-quality-install.md,mkdocs.yml nav,As an installer I can understand skill quality install guidance,The page documents quality signals install decisions and user-visible expectations,Docs build environment available,python -m mkdocs build --strict --quiet plus tracker nav coverage test,Tested Pass,python -m mkdocs build --strict --quiet passed; tracker nav coverage test passed.,,,,,2026-06-29,Added for public MkDocs nav coverage enforcement.
|
| 121 |
+
DIST-001,Distribution,GitHub About metadata,GitHub repository About,src/update_repo_stats.py,As a GitHub visitor I can understand ctx positioning and current counts from the repo About,About says ctx is a recommendation layer not a marketplace and uses shipped graph counts,GitHub CLI authenticated,python src/update_repo_stats.py --check-github-about,Retested Pass,PASS: GitHub About description is up to date on main 16c96b1.,,,,,2026-06-29,Revalidated after inventory wording merge with python src/update_repo_stats.py --check-github-about.
|
| 122 |
+
DIST-002,Distribution,Main CI test workflow,.github/workflows/test.yml,.github/workflows/test.yml,As a contributor I can trust the required main test workflow,Main push runs static gates unit-linux canaries package smoke browser security and required CI aggregate,GitHub Actions available,gh run view 28340695216,Retested Pass,PASS: main Tests workflow run 28340695216 for 16c96b1 completed successfully and CI required job 83954824744 passed.,,,,,2026-06-29,"Matrix pytest static gates unit-linux browser monitor security telemetry enterprise gate package smoke clean-host similarity and A-Z canary all passed."
|
| 123 |
+
DIST-003,Distribution,Docs deploy workflow,.github/workflows/docs.yml,.github/workflows/docs.yml,As a docs visitor I get the current public docs after main updates,Docs workflow builds strict MkDocs and deploys GitHub Pages without stale generated content,GitHub Pages enabled,gh run view 28340695222 and curl public docs URLs,Retested Pass,PASS: Deploy docs to GitHub Pages run 28340695222 for 16c96b1 succeeded and public docs home telemetry dashboard and knowledge-graph URLs returned HTTP 200.,,,,,2026-06-29,"Public docs reflect the post-merge main that labels the test count as 4,400 test inventory."
|
| 124 |
+
DIST-004,Distribution,Hugging Face sync workflow,.github/workflows/huggingface-sync.yml,.github/workflows/huggingface-sync.yml and scripts/sync_huggingface.py,As a Hugging Face visitor I get the same tracked repo and graph artifacts as GitHub,Workflow hydrates graph artifacts by matching LFS sha/size release assets before publishing and refuses stale README/docs stats,Valid write-scoped HF_TOKEN configured in GitHub secrets,GitHub Actions Sync Hugging Face workflow on main,Needs Fix,"FAIL: main Sync Hugging Face workflow run 28340695227 for 16c96b1 failed after README/docs stats and graph artifact hydration passed; upload to https://huggingface.co/api/datasets/Stevesolun/ctx/preupload/main returned 401 Unauthorized / Invalid username or password.",CTX-CICD-001,GitHub HF_TOKEN secret is invalid revoked or lacks write access for the Stevesolun/ctx dataset repo,Rotate and revoke the exposed token update the GitHub HF_TOKEN secret outside chat then rerun failed job 28340695227,,2026-06-29,"Public HF dataset remains stale: sha 9422c922b706b385d429983aa4c76e281a62ab38 lastModified 2026-06-14T16:16:55Z pyproject version 1.0.11 README still says Tests-4043_collected and Graph-102,928 nodes / 2.9M edges and docs/qa/feature-user-story-status.csv returns 404."
|
| 125 |
+
DIST-005,Distribution,Clean host contract workflow,.github/workflows/clean-host-contract.yml,.github/workflows/clean-host-contract.yml,As a new installer I can verify ctx works on a clean host,Workflow installs the package in a clean environment and runs the clean-host smoke contract,GitHub Actions available,gh run view 28340695216,Retested Pass,PASS: Clean host contract job 83954561453 passed inside main Tests run 28340695216 for 16c96b1.,,,,,2026-06-29,Revalidated through the current required main workflow after the inventory wording merge.
|
| 126 |
+
DIST-006,Distribution,PyPI publish workflow,.github/workflows/publish.yml,.github/workflows/publish.yml,As a PyPI user I can install the tagged release with matching graph artifacts,Tag publish builds the wheel validates graph artifacts uploads release assets and publishes the package,Published release tag and clean temporary PyPI install environment,Inspect publish workflow run plus release/PyPI metadata; install claude-ctx from PyPI and run graph init/recommend smoke,Retested Pass,"PASS: latest published tag v1.0.19 Publish to PyPI workflow run 27986904249 succeeded; release assets include full/runtime graph artifacts with SHA-256 digests; PyPI exposes claude-ctx 1.0.19 wheel and sdist; clean temp venv installed claude-ctx==1.0.19, ctx-init --graph --graph-install-mode runtime exited 0, and ctx-scan-repo --recommend exited 0.",,,,,2026-06-29,"Current main is version 1.0.20 but no v1.0.20 tag GitHub release or PyPI artifact exists yet; next release must tag and rerun the publish smoke before announcing 1.0.20 as published."
|
| 127 |
+
DIST-007,Distribution,Parallel pytest experiment workflow,.github/workflows/xdist-experiment.yml,.github/workflows/xdist-experiment.yml,As a maintainer I can benchmark pytest-xdist safely before adopting it,Workflow runs only when explicitly dispatched and does not affect required checks until proven stable,GitHub Actions available,Manual workflow_dispatch run for xdist experiment,Tested Pass,GitHub Actions run 28133264595 passed on ubuntu-latest windows-latest and macos-latest with Python 3.12.,,,,,2026-06-24,Dispatched manually on main; optional experiment remains out of required checks.
|
| 128 |
+
MAINT-001,Maintainer,Backup snapshot audit,scripts/audit_backup.py,scripts/audit_backup.py,As a maintainer I can inspect backup snapshots for missing expected files,Script summarizes backup contents and flags missing graph/wiki/report artifacts without mutating the repo,Backup fixture available,Run script against representative backup fixture,Retested Pass,FAIL: BOM-prefixed manifest.json from PowerShell Set-Content -Encoding UTF8 raised JSONDecodeError.,CTX-AZ-008,Backup audit read manifest JSON with utf-8 and rejected common Windows BOM input,Fixed by reading manifest.json with utf-8-sig,PASS: temp backup fixture with BOM manifest printed entries and OK coverage; regression pytest passed.,2026-06-23,
|
| 129 |
+
MAINT-002,Maintainer,Dashboard graph index builder,scripts/build_dashboard_graph_index.py,scripts/build_dashboard_graph_index.py,As a dashboard user I get fast graph search and neighborhoods,Script builds the dashboard SQLite/index artifacts from graph exports for fast monitor reads,Graph fixture available,Run script against small graph fixture and query resulting index,Retested Pass,FAIL: BOM-prefixed graph.json from PowerShell Set-Content -Encoding UTF8 raised JSONDecodeError.,CTX-AZ-008,Dashboard graph index builder read graph JSON with utf-8 and rejected common Windows BOM input,Fixed by reading graph JSON with utf-8-sig,PASS: temp graph fixture built SQLite index with 2 nodes and neighbor mcp-server:github; regression pytest passed.,2026-06-23,
|
| 130 |
+
MAINT-003,Maintainer,CI change classifier,scripts/ci_classifier.py,scripts/ci_classifier.py and .github/workflows/test.yml,As a contributor I get the right CI gates for the files I changed,Classifier marks docs graph source package browser and similarity changes conservatively,CI classifier tests available,python -m pytest src/tests/test_ci_classifier.py -q,Tested Pass,CI classifier suite covers path classes and workflow contract behavior.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 131 |
+
MAINT-004,Maintainer,No-test policy gate,scripts/ci_no_test_policy.py,scripts/ci_no_test_policy.py and .github/workflows/test.yml,As a reviewer I can reject risky code or workflow changes without test updates,Policy fails contract changes that omit matching tests while allowing metadata-only releases,CI policy tests available,python -m pytest src/tests/test_ci_classifier.py -q,Tested Pass,CI classifier suite covers no-test policy contract files and release metadata exceptions.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 132 |
+
MAINT-005,Maintainer,Required CI aggregate,scripts/ci_required.py,scripts/ci_required.py and .github/workflows/test.yml,As a branch maintainer I can trust the required CI summary,Aggregate rejects failed missing or wrongly skipped required jobs and allows documented conditional skips,CI required tests available,python -m pytest src/tests/test_ci_classifier.py -q,Tested Pass,CI classifier suite covers required job dependency success failure and conditional skip cases.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 133 |
+
MAINT-006,Maintainer,CI preflight gate,scripts/ci_preflight.py,scripts/ci_preflight.py and scripts/ci_classifier.py,As a contributor I can run the same preflight logic locally that CI uses,Preflight classifies changes then emits the exact docs graph browser package and similarity gates required,Repo checkout with git available,Run scripts/ci_preflight.py against representative changed files,Tested Pass,"select_checks(base_ref='origin/main', files=['README.md','docs/index.md'], profile='quick') returned whitespace repo stats and docs strict build.",,,,,2026-06-23,Validated through the script's public selection seam without launching expensive full preflight.
|
| 134 |
+
MAINT-007,Maintainer,Clean host contract script,scripts/clean_host_contract.py,scripts/clean_host_contract.py and .github/workflows/clean-host-contract.yml,As a new installer I can smoke ctx on a clean host,Script builds a clean venv installs ctx and runs init scan harness and monitor checks,Network and clean temp venv available,GitHub clean-host contract or local script smoke,Tested Pass,Clean host contract job passed inside PR #195 required checks.,,,,,2026-06-23,Workflow evidence covers the script path.
|
| 135 |
+
MAINT-008,Maintainer,Dashboard smoke script,scripts/dashboard_smoke.py,scripts/dashboard_smoke.py,As a maintainer I can smoke a running monitor before release,Script probes an already running ctx-monitor base URL and checks key pages/APIs with optional warmup,Monitor running or fake HTTP fixture available,python -m pytest src/tests/test_dashboard_smoke.py -q,Tested Pass,Dashboard smoke test suite covers route probing warmup and failure reporting for a supplied base URL.,,,,,2026-06-29,Corrected wording from starts-or-probes to probes-running-monitor; ctx-monitor startup is tracked separately by CLI-042.
|
| 136 |
+
MAINT-009,Maintainer,Graph artifact guard,scripts/graph_artifact_guard.py,scripts/graph_artifact_guard.py,As a maintainer I can prevent huge graph artifacts from bloating local Git state,Guard parks unparks and prunes graph artifacts safely without deleting unrelated files,Graph artifact fixture available,python -m pytest src/tests/test_graph_artifact_guard.py -q,Tested Pass,Graph artifact guard suite covers park unpark prune and explicit git prune safety.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 137 |
+
MAINT-010,Maintainer,Overlay wiki entities,scripts/overlay_wiki_entities.py,scripts/overlay_wiki_entities.py,As a graph maintainer I can apply curated entity overlays to the wiki artifact,Script overlays entity pages and rebuilds dashboard index without corrupting packed wiki structure,Overlay fixture available,python -m pytest src/tests/test_overlay_wiki_entities.py -q,Tested Pass,Overlay wiki entities tests cover page generation replacements and CLI help.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 138 |
+
MAINT-011,Maintainer,Full wiki tar repacker,scripts/pack_full_wiki_tar.py,scripts/pack_full_wiki_tar.py,As a maintainer I can ship a packed full LLM-wiki artifact without huge expanded fanout,Repacker moves high-fanout pages into wiki packs omits raw originals and is idempotent,Wiki tar fixture available,python -m pytest src/tests/test_pack_full_wiki_tar.py -q,Tested Pass,Pack full wiki tar tests cover packed wiki output original omission and idempotent repack.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 139 |
+
MAINT-012,Maintainer,SkillSpector wiki pruner,scripts/prune_skillspector_wiki.py,scripts/prune_skillspector_wiki.py,As a maintainer I can prune low-value SkillSpector wiki noise before shipping,Script builds pruned artifacts in dry-run/apply modes while preserving required catalog metadata,Prune fixture available,python -m pytest src/tests/test_prune_skillspector_wiki.py -q,Tested Pass,Prune SkillSpector wiki tests cover dry-run apply and artifact rewrite behavior.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 140 |
+
MAINT-013,Maintainer,Hugging Face sync script,scripts/sync_huggingface.py,scripts/sync_huggingface.py and .github/workflows/huggingface-sync.yml,As a Hugging Face visitor I get a clean repo-card snapshot without ignored local artifacts,Script exports tracked files adds repo-card metadata validates graph artifacts and removes stale remote files,HF token or fake API available,python -m pytest src/tests/test_huggingface_sync.py -q,Tested Pass,Hugging Face sync tests cover metadata wrapping stale remote cleanup and hardened workflow contract.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 141 |
+
MAINT-014,Maintainer,Similarity threshold tuner,scripts/tune_similarity_thresholds.py,scripts/tune_similarity_thresholds.py,As a graph maintainer I can calibrate similarity thresholds against fixtures,Tuner sweeps threshold settings and reports quality metrics without mutating graph artifacts,Similarity fixture corpus available,Run tuner against fixture corpus,Tested Pass,python scripts/tune_similarity_thresholds.py completed and printed near/distinct/adversarial score distributions plus threshold sweep.,,,,,2026-06-23,Validated with current fixture corpus; unauthenticated HF warning did not block local cached model load.
|
| 142 |
+
PUBLIC-001,Docs,Public catalog search JavaScript,docs/assets/javascripts/catalog.js,docs/assets/javascripts/catalog.js and docs/catalog.md,As a GitHub Pages visitor I can filter catalog tiles without a local dashboard,JavaScript wires input and checkbox filters and updates visible catalog cards/counts client-side,Docs assets available,python -m pytest src/tests/test_docs_catalog_page.py -q,Tested Pass,Docs catalog page tests verify script inclusion input listener and public non-local links.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
| 143 |
+
PUBLIC-002,Docs,Public repo stats refresh JavaScript,docs/assets/javascripts/repo-stats-refresh.js,docs/assets/javascripts/repo-stats-refresh.js and mkdocs.yml,As a docs visitor I see current repo stats when GitHub allows client refresh,JavaScript is included by MkDocs and degrades safely when live repo stats cannot be fetched,Docs assets available,python -m pytest src/tests/test_docs_repo_stats.py -q,Tested Pass,Docs repo stats tests verify MkDocs includes the script and the script has the expected refresh behavior.,,,,,2026-06-23,Validated by focused pytest in this tracker slice.
|
docs/skill-router/index.md
CHANGED
|
@@ -8,8 +8,7 @@ skills/agents/MCP recommendation layer can be used by that host.
|
|
| 8 |
## Problem
|
| 9 |
|
| 10 |
Every loaded skill, agent, and MCP server costs tokens, attention, and tool
|
| 11 |
-
surface area. Most sessions need a small top-scored bundle from the
|
| 12 |
-
460+ agents, and 10K+ MCP servers in the shipped graph, not the whole inventory.
|
| 13 |
Loading too much:
|
| 14 |
|
| 15 |
- wastes context on irrelevant instructions,
|
|
|
|
| 8 |
## Problem
|
| 9 |
|
| 10 |
Every loaded skill, agent, and MCP server costs tokens, attention, and tool
|
| 11 |
+
surface area. Most sessions need a small top-scored bundle from the 68,494 skills, 467 agents, and 10,790 MCP servers in the shipped graph, not the whole inventory.
|
|
|
|
| 12 |
Loading too much:
|
| 13 |
|
| 14 |
- wastes context on irrelevant instructions,
|
docs/telemetry.md
ADDED
|
@@ -0,0 +1,454 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Enterprise Telemetry
|
| 2 |
+
|
| 3 |
+
ctx records privacy-first operational telemetry for API, MCP, CLI, core-tool, and
|
| 4 |
+
runtime lifecycle boundaries. The default mode is local and redacted: events are
|
| 5 |
+
written to `~/.ctx/telemetry/events.jsonl`, metric points are written separately
|
| 6 |
+
to `~/.ctx/telemetry/metrics.jsonl`, raw prompts and queries are hashed or
|
| 7 |
+
removed, and network export is disabled unless an operator explicitly enables it
|
| 8 |
+
or runs an export.
|
| 9 |
+
|
| 10 |
+
## Event Shape
|
| 11 |
+
|
| 12 |
+
Events use the `ctx.telemetry.v1` envelope and OpenTelemetry-style naming:
|
| 13 |
+
|
| 14 |
+
- `ctx.api.recommend_bundle`
|
| 15 |
+
- `ctx.mcp.request`
|
| 16 |
+
- `ctx.core.recommend_bundle`
|
| 17 |
+
- `ctx.runtime_lifecycle.record`
|
| 18 |
+
- `ctx.cli.run`
|
| 19 |
+
- `ctx.cli.resume`
|
| 20 |
+
|
| 21 |
+
Outcome and dimensions live in attributes such as `otel.status_code`,
|
| 22 |
+
`ctx.operation`, `ctx.tool.name`, `ctx.result.count`, and hashed identifiers like
|
| 23 |
+
`ctx.query.hash`, `ctx.slug.hash`, or `ctx.session.hash`.
|
| 24 |
+
|
| 25 |
+
Every recorded event gets a generated OpenTelemetry-compatible `trace_id` and
|
| 26 |
+
`span_id` when the caller does not provide one. OTLP export maps those to the
|
| 27 |
+
log record `traceId` and `spanId` fields and also includes ctx release
|
| 28 |
+
provenance as `ctx.version`.
|
| 29 |
+
|
| 30 |
+
## Metric Shape
|
| 31 |
+
|
| 32 |
+
Metrics use the `ctx.telemetry.metrics.v1` envelope and the same local redaction
|
| 33 |
+
rules as events. `record_counter()` writes monotonic counter points and
|
| 34 |
+
`record_histogram()` writes histogram observations. OTLP export maps counters to
|
| 35 |
+
delta `sum` metrics and observations to delta `histogram` metrics under
|
| 36 |
+
`resourceMetrics`.
|
| 37 |
+
|
| 38 |
+
Metrics use a separate spool, checkpoint, and status file:
|
| 39 |
+
|
| 40 |
+
- `~/.ctx/telemetry/metrics.jsonl`
|
| 41 |
+
- `~/.ctx/telemetry/metrics.jsonl.export-checkpoint.json`
|
| 42 |
+
- `~/.ctx/telemetry/metrics.jsonl.export-status.json`
|
| 43 |
+
|
| 44 |
+
Metric checkpointing is independent from event/log checkpointing, so replaying
|
| 45 |
+
or repairing one signal does not advance the other.
|
| 46 |
+
|
| 47 |
+
## Privacy Defaults
|
| 48 |
+
|
| 49 |
+
The shipped config keeps telemetry local:
|
| 50 |
+
|
| 51 |
+
```json
|
| 52 |
+
{
|
| 53 |
+
"telemetry": {
|
| 54 |
+
"enabled": true,
|
| 55 |
+
"mode": "local_redacted",
|
| 56 |
+
"path": "~/.ctx/telemetry/events.jsonl",
|
| 57 |
+
"export": {
|
| 58 |
+
"enabled": false,
|
| 59 |
+
"sink": "otlp_http",
|
| 60 |
+
"otlp": {
|
| 61 |
+
"endpoint": "http://localhost:4318/v1/logs",
|
| 62 |
+
"allowed_hosts": []
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"metrics": {
|
| 66 |
+
"enabled": true,
|
| 67 |
+
"path": "~/.ctx/telemetry/metrics.jsonl",
|
| 68 |
+
"export": {
|
| 69 |
+
"enabled": false,
|
| 70 |
+
"sink": "otlp_http",
|
| 71 |
+
"path": "~/.ctx/telemetry/exported-metrics.jsonl",
|
| 72 |
+
"otlp": {
|
| 73 |
+
"endpoint": "http://localhost:4318/v1/metrics",
|
| 74 |
+
"allowed_hosts": []
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
"privacy": {
|
| 79 |
+
"store_raw_inputs": false,
|
| 80 |
+
"hash_identifiers": true,
|
| 81 |
+
"hash_salt_env": "CTX_TELEMETRY_HASH_SALT",
|
| 82 |
+
"hash_salt_path": "~/.ctx/telemetry/hash-salt"
|
| 83 |
+
},
|
| 84 |
+
"retention": {
|
| 85 |
+
"enabled": true,
|
| 86 |
+
"status_path": "~/.ctx/telemetry/retention-status.json",
|
| 87 |
+
"min_keep_records": 1000,
|
| 88 |
+
"drop_malformed": false,
|
| 89 |
+
"events": {
|
| 90 |
+
"max_age_days": 90,
|
| 91 |
+
"max_records": 100000
|
| 92 |
+
},
|
| 93 |
+
"metrics": {
|
| 94 |
+
"max_age_days": 30,
|
| 95 |
+
"max_records": 200000
|
| 96 |
+
}
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
}
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
`local_redacted` removes or hashes raw input fields such as `query`, `prompt`,
|
| 103 |
+
`tool_input`, `stdout`, `stderr`, paths, repo names, and secrets. The only
|
| 104 |
+
accepted modes are `local_redacted`, `disabled`, `off`, and `none`; unknown modes
|
| 105 |
+
fail closed instead of emitting raw fields.
|
| 106 |
+
|
| 107 |
+
Local JSONL records retain the top-level `session_id` field for compatibility
|
| 108 |
+
with existing local-only workflows, but they also include a salted
|
| 109 |
+
`session_hash`. Remote OTLP export sends `ctx.session.hash` and never sends the
|
| 110 |
+
raw session id, including when exporting legacy local records that predate
|
| 111 |
+
`session_hash`. Manual `local_jsonl` export preserves the same local envelope,
|
| 112 |
+
so treat exported JSONL as local-sensitive if session ids are present.
|
| 113 |
+
|
| 114 |
+
Identifier hashes are salted by default. ctx first checks the
|
| 115 |
+
`CTX_TELEMETRY_HASH_SALT` environment variable, then any configured
|
| 116 |
+
`privacy.hash_salt`, then an owner-only local salt file at
|
| 117 |
+
`~/.ctx/telemetry/hash-salt`. Set `CTX_TELEMETRY_HASH_SALT` per tenant or
|
| 118 |
+
deployment when multiple hosts need to correlate the same redacted identifiers.
|
| 119 |
+
Do not commit a literal `privacy.hash_salt` into shared source control.
|
| 120 |
+
|
| 121 |
+
## Manual Export
|
| 122 |
+
|
| 123 |
+
Use `ctx-telemetry-export` to export an existing local spool without changing
|
| 124 |
+
the default privacy posture.
|
| 125 |
+
|
| 126 |
+
Export to another JSONL file:
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
ctx-telemetry-export \
|
| 130 |
+
--sink local_jsonl \
|
| 131 |
+
--output /var/log/ctx/exported-events.jsonl
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
Export to an OpenTelemetry Collector logs endpoint:
|
| 135 |
+
|
| 136 |
+
```bash
|
| 137 |
+
ctx-telemetry-export \
|
| 138 |
+
--sink otlp_http \
|
| 139 |
+
--otlp-endpoint https://collector.example:4318/v1/logs \
|
| 140 |
+
--otlp-allowed-host collector.example
|
| 141 |
+
```
|
| 142 |
+
|
| 143 |
+
Remote OTLP endpoints must use `https://` and their host must be listed in
|
| 144 |
+
`telemetry.export.otlp.allowed_hosts`, or provided for a one-off command with
|
| 145 |
+
`--otlp-allowed-host`. Plain `http://` is accepted only for loopback collectors
|
| 146 |
+
(`localhost`, `127.0.0.1`, or `[::1]`). Literal metadata/link-local, multicast,
|
| 147 |
+
unspecified, and reserved IP endpoints are rejected even when a command-line or
|
| 148 |
+
`OTEL_EXPORTER_OTLP_*` endpoint override is used. Redirects are refused instead
|
| 149 |
+
of revalidating a second network target.
|
| 150 |
+
|
| 151 |
+
Preview the event count without exporting:
|
| 152 |
+
|
| 153 |
+
```bash
|
| 154 |
+
ctx-telemetry-export --dry-run --json
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
Export metrics with the same CLI:
|
| 158 |
+
|
| 159 |
+
```bash
|
| 160 |
+
ctx-telemetry-export \
|
| 161 |
+
--signal metrics \
|
| 162 |
+
--sink otlp_http \
|
| 163 |
+
--otlp-endpoint https://collector.example:4318/v1/metrics \
|
| 164 |
+
--otlp-allowed-host collector.example
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
Export metrics from Python:
|
| 168 |
+
|
| 169 |
+
```python
|
| 170 |
+
from pathlib import Path
|
| 171 |
+
|
| 172 |
+
from ctx.telemetry import export_metrics, record_counter, record_histogram
|
| 173 |
+
|
| 174 |
+
record_counter("ctx.api.requests", attributes={"ctx.source": "api"})
|
| 175 |
+
record_histogram("ctx.api.duration", value=42.0, unit="ms")
|
| 176 |
+
|
| 177 |
+
result = export_metrics(
|
| 178 |
+
Path("~/.ctx/telemetry/metrics.jsonl"),
|
| 179 |
+
config={
|
| 180 |
+
"metrics": {
|
| 181 |
+
"enabled": True,
|
| 182 |
+
"export": {
|
| 183 |
+
"enabled": True,
|
| 184 |
+
"sink": "otlp_http",
|
| 185 |
+
"otlp": {
|
| 186 |
+
"endpoint": "https://collector.example:4318/v1/metrics",
|
| 187 |
+
"allowed_hosts": ["collector.example"],
|
| 188 |
+
},
|
| 189 |
+
},
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
)
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
Metrics export uses its own checkpoint and status files next to
|
| 196 |
+
`metrics.jsonl`, and the `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` environment
|
| 197 |
+
variable overrides the configured metrics endpoint. `OTEL_EXPORTER_OTLP_ENDPOINT`
|
| 198 |
+
is also supported and automatically appends `/v1/metrics` for metric exports.
|
| 199 |
+
|
| 200 |
+
Successful exports advance an owner-only checkpoint file. By default it lives
|
| 201 |
+
next to the spool as `events.jsonl.export-checkpoint.json`, so later runs export
|
| 202 |
+
only new events. Use `--checkpoint /path/to/checkpoint.json` to choose another
|
| 203 |
+
checkpoint file, or `--all` when you intentionally want to replay the full spool.
|
| 204 |
+
|
| 205 |
+
The command exits non-zero if the selected exporter fails. Use
|
| 206 |
+
`--fail-on-degraded` when running from cron or CI and you also want malformed
|
| 207 |
+
pending records or checkpoint anomalies to fail the command. Real export
|
| 208 |
+
attempts also write an owner-only status file next to the spool as
|
| 209 |
+
`events.jsonl.export-status.json`. It records an explicit `status` of `ok`,
|
| 210 |
+
`noop`, `failed`, or `degraded`, plus the sink, destination hash,
|
| 211 |
+
attempted/exported/failed counts, checkpoint-before/checkpoint-after ids,
|
| 212 |
+
whether the checkpoint advanced, malformed pending record counts, and the last
|
| 213 |
+
exporter error kind.
|
| 214 |
+
|
| 215 |
+
`degraded` means the exporter delivered the well-formed events it could, but ctx
|
| 216 |
+
detected a condition an operator should inspect, such as malformed pending local
|
| 217 |
+
records or a checkpoint id that no longer appears in the spool. ctx does not
|
| 218 |
+
advance the checkpoint past malformed pending records; retrying after repair may
|
| 219 |
+
re-export already delivered events, so downstream collectors should deduplicate
|
| 220 |
+
by `event_id`.
|
| 221 |
+
|
| 222 |
+
## Retention
|
| 223 |
+
|
| 224 |
+
Retention is explicit operator action, never a background deletion. Plan first:
|
| 225 |
+
|
| 226 |
+
```bash
|
| 227 |
+
ctx-telemetry-retention plan --signal all --json
|
| 228 |
+
```
|
| 229 |
+
|
| 230 |
+
Then enforce:
|
| 231 |
+
|
| 232 |
+
```bash
|
| 233 |
+
ctx-telemetry-retention enforce --signal all --json
|
| 234 |
+
```
|
| 235 |
+
|
| 236 |
+
Malformed JSONL records are preserved by default so an operator can inspect and
|
| 237 |
+
repair them. Use `--drop-malformed` only when the malformed lines have already
|
| 238 |
+
been preserved elsewhere. Every enforcement run writes an owner-only status file
|
| 239 |
+
at `~/.ctx/telemetry/retention-status.json`.
|
| 240 |
+
|
| 241 |
+
## Continuous Export
|
| 242 |
+
|
| 243 |
+
To export every new event as it is recorded, enable the exporter in config. User
|
| 244 |
+
overrides live at `~/.claude/skill-system-config.json`.
|
| 245 |
+
|
| 246 |
+
```json
|
| 247 |
+
{
|
| 248 |
+
"telemetry": {
|
| 249 |
+
"export": {
|
| 250 |
+
"enabled": true,
|
| 251 |
+
"sink": "otlp_http",
|
| 252 |
+
"otlp": {
|
| 253 |
+
"endpoint": "https://collector.example:4318/v1/logs",
|
| 254 |
+
"allowed_hosts": ["collector.example"],
|
| 255 |
+
"service_name": "ctx",
|
| 256 |
+
"service_namespace": "ctx",
|
| 257 |
+
"deployment_environment": "prod"
|
| 258 |
+
}
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
}
|
| 262 |
+
```
|
| 263 |
+
|
| 264 |
+
`OTEL_EXPORTER_OTLP_LOGS_ENDPOINT` overrides the configured logs endpoint.
|
| 265 |
+
`OTEL_EXPORTER_OTLP_ENDPOINT` is also supported and automatically appends
|
| 266 |
+
`/v1/logs`.
|
| 267 |
+
|
| 268 |
+
## Collector Examples
|
| 269 |
+
|
| 270 |
+
Use an OpenTelemetry Collector between ctx and the observability backend. That
|
| 271 |
+
keeps ctx vendor-neutral and gives enterprise operators one place to add
|
| 272 |
+
batching, retry, TLS, auth, routing, and backend-specific exporters.
|
| 273 |
+
|
| 274 |
+
Local loopback smoke config:
|
| 275 |
+
|
| 276 |
+
```yaml
|
| 277 |
+
receivers:
|
| 278 |
+
otlp:
|
| 279 |
+
protocols:
|
| 280 |
+
http:
|
| 281 |
+
endpoint: 127.0.0.1:4318
|
| 282 |
+
|
| 283 |
+
processors:
|
| 284 |
+
batch:
|
| 285 |
+
|
| 286 |
+
exporters:
|
| 287 |
+
debug:
|
| 288 |
+
verbosity: detailed
|
| 289 |
+
|
| 290 |
+
service:
|
| 291 |
+
pipelines:
|
| 292 |
+
logs:
|
| 293 |
+
receivers: [otlp]
|
| 294 |
+
processors: [batch]
|
| 295 |
+
exporters: [debug]
|
| 296 |
+
metrics:
|
| 297 |
+
receivers: [otlp]
|
| 298 |
+
processors: [batch]
|
| 299 |
+
exporters: [debug]
|
| 300 |
+
```
|
| 301 |
+
|
| 302 |
+
Run it, then point ctx at the local Collector:
|
| 303 |
+
|
| 304 |
+
```bash
|
| 305 |
+
otelcol --config=file:ctx-otel-local.yaml
|
| 306 |
+
|
| 307 |
+
ctx-telemetry-export \
|
| 308 |
+
--sink otlp_http \
|
| 309 |
+
--otlp-endpoint http://127.0.0.1:4318/v1/logs \
|
| 310 |
+
--otlp-allowed-host 127.0.0.1
|
| 311 |
+
```
|
| 312 |
+
|
| 313 |
+
For production, keep ctx pointed at a tenant-approved HTTPS Collector and
|
| 314 |
+
allow-list only that host:
|
| 315 |
+
|
| 316 |
+
```json
|
| 317 |
+
{
|
| 318 |
+
"telemetry": {
|
| 319 |
+
"export": {
|
| 320 |
+
"enabled": true,
|
| 321 |
+
"sink": "otlp_http",
|
| 322 |
+
"otlp": {
|
| 323 |
+
"endpoint": "https://otel-gateway.example.com:4318/v1/logs",
|
| 324 |
+
"allowed_hosts": ["otel-gateway.example.com"],
|
| 325 |
+
"service_name": "ctx",
|
| 326 |
+
"service_namespace": "ctx",
|
| 327 |
+
"deployment_environment": "prod"
|
| 328 |
+
}
|
| 329 |
+
},
|
| 330 |
+
"metrics": {
|
| 331 |
+
"export": {
|
| 332 |
+
"enabled": true,
|
| 333 |
+
"sink": "otlp_http",
|
| 334 |
+
"otlp": {
|
| 335 |
+
"endpoint": "https://otel-gateway.example.com:4318/v1/metrics",
|
| 336 |
+
"allowed_hosts": ["otel-gateway.example.com"]
|
| 337 |
+
}
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
}
|
| 341 |
+
}
|
| 342 |
+
```
|
| 343 |
+
|
| 344 |
+
Production Collector sketch:
|
| 345 |
+
|
| 346 |
+
```yaml
|
| 347 |
+
receivers:
|
| 348 |
+
otlp:
|
| 349 |
+
protocols:
|
| 350 |
+
http:
|
| 351 |
+
endpoint: 0.0.0.0:4318
|
| 352 |
+
|
| 353 |
+
processors:
|
| 354 |
+
memory_limiter:
|
| 355 |
+
check_interval: 5s
|
| 356 |
+
limit_mib: 512
|
| 357 |
+
batch:
|
| 358 |
+
|
| 359 |
+
exporters:
|
| 360 |
+
otlphttp/vendor:
|
| 361 |
+
endpoint: https://observability-vendor.example.com/otlp
|
| 362 |
+
headers:
|
| 363 |
+
Authorization: ${env:OTEL_VENDOR_AUTH_HEADER}
|
| 364 |
+
|
| 365 |
+
service:
|
| 366 |
+
pipelines:
|
| 367 |
+
logs:
|
| 368 |
+
receivers: [otlp]
|
| 369 |
+
processors: [memory_limiter, batch]
|
| 370 |
+
exporters: [otlphttp/vendor]
|
| 371 |
+
metrics:
|
| 372 |
+
receivers: [otlp]
|
| 373 |
+
processors: [memory_limiter, batch]
|
| 374 |
+
exporters: [otlphttp/vendor]
|
| 375 |
+
```
|
| 376 |
+
|
| 377 |
+
Keep the Collector's public listener and upstream exporter TLS/auth policy under
|
| 378 |
+
the enterprise network owner. ctx still rejects non-loopback plaintext OTLP
|
| 379 |
+
endpoints before it sends data.
|
| 380 |
+
|
| 381 |
+
## Dashboards And Alerts
|
| 382 |
+
|
| 383 |
+
Build the first production dashboard from the stable ctx attributes instead of
|
| 384 |
+
raw message text:
|
| 385 |
+
|
| 386 |
+
| Panel | Query dimensions |
|
| 387 |
+
|---|---|
|
| 388 |
+
| Request volume | count logs grouped by `event.name`, `ctx.source`, `ctx.operation` |
|
| 389 |
+
| Error rate | count logs where `otel.status_code = ERROR`, grouped by `ctx.source` |
|
| 390 |
+
| Exception fingerprints | count logs grouped by `ctx.exception.fingerprint`, `ctx.exception.type` |
|
| 391 |
+
| API latency | histogram metric `ctx.api.duration` by `ctx.operation` |
|
| 392 |
+
| CLI/runtime usage | count logs for `ctx.cli.run`, `ctx.cli.resume`, `ctx.runtime_lifecycle.record` |
|
| 393 |
+
| Exporter health | status JSON fields `status`, `malformed_pending_count`, `last_error_kind` |
|
| 394 |
+
| Spool growth | `event_count`, `malformed_count`, and checkpoint age from `/api/status.json` |
|
| 395 |
+
|
| 396 |
+
Recommended enterprise alerts:
|
| 397 |
+
|
| 398 |
+
| Alert | Condition |
|
| 399 |
+
|---|---|
|
| 400 |
+
| `CtxTelemetryExporterFailed` | latest export status is `failed` for 2 consecutive runs |
|
| 401 |
+
| `CtxTelemetryExporterDegraded` | latest export status is `degraded` or `malformed_pending_count > 0` |
|
| 402 |
+
| `CtxTelemetrySilent` | telemetry is enabled but no new event appears during an expected active window |
|
| 403 |
+
| `CtxTelemetrySpoolGrowing` | local spool count grows while checkpoint id stays unchanged |
|
| 404 |
+
| `CtxTelemetryUnhandledExceptions` | new `ctx.exception.fingerprint` appears in prod |
|
| 405 |
+
|
| 406 |
+
For local dashboard checks, use:
|
| 407 |
+
|
| 408 |
+
```bash
|
| 409 |
+
ctx-monitor serve
|
| 410 |
+
curl -fsS http://127.0.0.1:8765/api/status.json
|
| 411 |
+
```
|
| 412 |
+
|
| 413 |
+
The monitor surfaces telemetry health, spool counts, malformed counts,
|
| 414 |
+
checkpoint presence, and exporter status without rendering event payloads.
|
| 415 |
+
|
| 416 |
+
## Operator Runbook
|
| 417 |
+
|
| 418 |
+
1. Confirm config posture:
|
| 419 |
+
`ctx-telemetry-export --dry-run --json`.
|
| 420 |
+
2. Inspect dashboard health:
|
| 421 |
+
`curl -fsS http://127.0.0.1:8765/api/status.json`.
|
| 422 |
+
3. Inspect exporter status:
|
| 423 |
+
`cat ~/.ctx/telemetry/events.jsonl.export-status.json` and
|
| 424 |
+
`cat ~/.ctx/telemetry/metrics.jsonl.export-status.json`.
|
| 425 |
+
4. Repair malformed local records by preserving the original file, removing only
|
| 426 |
+
invalid JSON lines, and rerunning export with `--fail-on-degraded`.
|
| 427 |
+
5. Replay intentionally with `--all` only after confirming the downstream
|
| 428 |
+
backend deduplicates by `event_id`.
|
| 429 |
+
6. Rotate tenant salts only during a planned privacy reset; rotation breaks
|
| 430 |
+
cross-run correlation for hashed identifiers and exception fingerprints.
|
| 431 |
+
|
| 432 |
+
## Verification
|
| 433 |
+
|
| 434 |
+
For a local smoke test, run:
|
| 435 |
+
|
| 436 |
+
```bash
|
| 437 |
+
ctx-telemetry-export --dry-run --json
|
| 438 |
+
ctx-telemetry-export --sink local_jsonl --output /tmp/ctx-telemetry-export.jsonl --json
|
| 439 |
+
ctx-telemetry-export --all --sink local_jsonl --output /tmp/ctx-telemetry-replay.jsonl --json
|
| 440 |
+
```
|
| 441 |
+
|
| 442 |
+
The exported JSONL should contain the same event ids as the local spool and no
|
| 443 |
+
raw prompt, query, path, repo, stdout, stderr, token, or secret values.
|
| 444 |
+
|
| 445 |
+
Inspect the durable exporter status after a real run:
|
| 446 |
+
|
| 447 |
+
```bash
|
| 448 |
+
cat ~/.ctx/telemetry/events.jsonl.export-status.json
|
| 449 |
+
```
|
| 450 |
+
|
| 451 |
+
The ctx monitor also surfaces the same local health summary on `/status` and
|
| 452 |
+
`/api/status.json`: capture enabled/mode, spool event and malformed counts, the
|
| 453 |
+
latest event name/outcome, checkpoint presence, and the last exporter status.
|
| 454 |
+
The monitor does not render telemetry payloads.
|
graph/README.md
CHANGED
|
@@ -4,15 +4,16 @@ This directory ships the pre-built ctx LLM-wiki and knowledge graph.
|
|
| 4 |
|
| 5 |
Current snapshot:
|
| 6 |
|
| 7 |
-
- **
|
| 8 |
-
- **
|
| 9 |
- **52 Louvain communities**
|
| 10 |
-
- **
|
| 11 |
- **467 agent pages**
|
| 12 |
- **10,790 MCP server pages**
|
| 13 |
- **207 harness pages**
|
| 14 |
-
- **
|
| 15 |
-
-
|
|
|
|
| 16 |
|
| 17 |
The runtime recommendation paths use this graph in two ways:
|
| 18 |
|
|
@@ -24,8 +25,9 @@ The runtime recommendation paths use this graph in two ways:
|
|
| 24 |
| File | Contents |
|
| 25 |
|---|---|
|
| 26 |
| `wiki-graph-runtime.tar.gz` | Fast install artifact used by default `ctx-init --graph`: `graphify-out/*`, the skill index, 207 harness pages, wiki index files, and Obsidian metadata needed for recommendations and harness dry-runs without expanding every entity page |
|
| 27 |
-
| `wiki-graph.tar.gz` | Full LLM-wiki: entity pages, converted skill bodies, mirrored agent bodies, concept pages, `graphify-out/graph.json`, `graph-delta.json`, export manifest, communities, skill indexes, and Obsidian metadata |
|
| 28 |
-
|
|
|
|
|
| 29 |
| `communities.json` | Current Louvain community export |
|
| 30 |
| `entity-overlays.jsonl` | Release overlay for first-class entities added after the base graph export; installed beside `graphify-out/graph.json` by `ctx-init --graph` |
|
| 31 |
| `graphify-out/dashboard-neighborhoods.sqlite3` inside both tarballs | Compact top-neighbor index used by `ctx-monitor` so `/api/graph/<slug>.json` does not cold-parse the 818 MiB graph JSON |
|
|
@@ -49,6 +51,30 @@ harness pages needed by `ctx-harness-install --dry-run`. Use
|
|
| 49 |
`ctx-init --graph --graph-install-mode full` or manual full extraction when you
|
| 50 |
want local wiki browsing, Obsidian, or the converted skill body tree.
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
## What Is Inside `wiki-graph.tar.gz`
|
| 53 |
|
| 54 |
- `entities/skills/` - all skill entity pages
|
|
@@ -59,6 +85,7 @@ want local wiki browsing, Obsidian, or the converted skill body tree.
|
|
| 59 |
- `converted-agents/` - mirrored agent bodies
|
| 60 |
- `concepts/` - community concept pages
|
| 61 |
- `external-catalogs/` - machine-readable skill index, summary, and coverage metadata
|
|
|
|
| 62 |
- `graphify-out/graph.json` - NetworkX node-link graph
|
| 63 |
- `graphify-out/graph-delta.json` - delta export for the latest graph generation
|
| 64 |
- `graphify-out/graph-export-manifest.json` - export manifest tying graph, delta, communities, and report to one generation
|
|
@@ -111,14 +138,14 @@ For release-count validation, pin the exact snapshot numbers:
|
|
| 111 |
|
| 112 |
```bash
|
| 113 |
python src/validate_graph_artifacts.py --deep \
|
| 114 |
-
--expected-nodes
|
| 115 |
-
--expected-edges
|
| 116 |
-
--expected-semantic-edges
|
| 117 |
--expected-harness-nodes 207 \
|
| 118 |
-
--expected-skills-sh-nodes
|
| 119 |
-
--expected-skills-sh-catalog-entries
|
| 120 |
-
--expected-skills-sh-converted
|
| 121 |
-
--expected-skill-pages
|
| 122 |
--expected-agent-pages 467 \
|
| 123 |
--expected-mcp-pages 10790 \
|
| 124 |
--expected-harness-pages 207
|
|
@@ -190,6 +217,42 @@ It reports precision/recall, top-k agreement, score deltas, and bad examples;
|
|
| 190 |
the release gate fails when recall at the largest requested top-k is below the
|
| 191 |
overlap floor.
|
| 192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
For release artifact rebuilds:
|
| 194 |
|
| 195 |
```bash
|
|
@@ -231,8 +294,21 @@ python src/import_skills_sh_catalog.py \
|
|
| 231 |
--update-wiki-tar
|
| 232 |
```
|
| 233 |
|
| 234 |
-
For a full local wiki repack
|
| 235 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
```bash
|
| 238 |
cd ~/.claude/skill-wiki
|
|
|
|
| 4 |
|
| 5 |
Current snapshot:
|
| 6 |
|
| 7 |
+
- **79,958 graph nodes**
|
| 8 |
+
- **1,778,069 graph edges**
|
| 9 |
- **52 Louvain communities**
|
| 10 |
+
- **68,494 skill entity pages**; **67,024** have hydrated catalog bodies
|
| 11 |
- **467 agent pages**
|
| 12 |
- **10,790 MCP server pages**
|
| 13 |
- **207 harness pages**
|
| 14 |
+
- **67,024 hydrated imported `SKILL.md` bodies**
|
| 15 |
+
- Long skill bodies are kept behind the configured micro-skill line gate; the
|
| 16 |
+
shipped tarball excludes raw `SKILL.md.original` backups.
|
| 17 |
|
| 18 |
The runtime recommendation paths use this graph in two ways:
|
| 19 |
|
|
|
|
| 25 |
| File | Contents |
|
| 26 |
|---|---|
|
| 27 |
| `wiki-graph-runtime.tar.gz` | Fast install artifact used by default `ctx-init --graph`: `graphify-out/*`, the skill index, 207 harness pages, wiki index files, and Obsidian metadata needed for recommendations and harness dry-runs without expanding every entity page |
|
| 28 |
+
| `wiki-graph.tar.gz` | Full LLM-wiki: entity pages, converted skill bodies, mirrored agent bodies, concept pages, `graphify-out/graph.json`, `graph-delta.json`, export manifest, communities, skill indexes, SkillSpector stamps, and Obsidian metadata |
|
| 29 |
+
| `skillspector-audit.jsonl.gz` | Compact per-skill audit records produced by a ctx-run static `--no-llm` pass with [NVIDIA SkillSpector](https://github.com/NVIDIA/SkillSpector). This is not NVIDIA endorsement or certification. The same gzip is embedded in `wiki-graph.tar.gz` as `security/skillspector-audit.jsonl.gz`. |
|
| 30 |
+
| Skill catalog gzip | Compressed skill index for the 67,024 body-backed skill entries shipped in the wiki |
|
| 31 |
| `communities.json` | Current Louvain community export |
|
| 32 |
| `entity-overlays.jsonl` | Release overlay for first-class entities added after the base graph export; installed beside `graphify-out/graph.json` by `ctx-init --graph` |
|
| 33 |
| `graphify-out/dashboard-neighborhoods.sqlite3` inside both tarballs | Compact top-neighbor index used by `ctx-monitor` so `/api/graph/<slug>.json` does not cold-parse the 818 MiB graph JSON |
|
|
|
|
| 51 |
`ctx-init --graph --graph-install-mode full` or manual full extraction when you
|
| 52 |
want local wiki browsing, Obsidian, or the converted skill body tree.
|
| 53 |
|
| 54 |
+
## Modular Pack Model
|
| 55 |
+
|
| 56 |
+
The installed graph/wiki can be maintained as immutable base packs plus small
|
| 57 |
+
overlay packs. The merged view is intended to behave like the old single graph:
|
| 58 |
+
dashboard, search, recommendations, and harness setup still see one catalog,
|
| 59 |
+
but local adds, updates, and deletes no longer need to rewrite the full graph
|
| 60 |
+
and full wiki tarball.
|
| 61 |
+
|
| 62 |
+
Active pack layout:
|
| 63 |
+
|
| 64 |
+
```text
|
| 65 |
+
~/.claude/skill-wiki/
|
| 66 |
+
graphify-out/packs/base-<export-id>/
|
| 67 |
+
graphify-out/packs/overlay-<id>/
|
| 68 |
+
wiki-packs/base-<export-id>/
|
| 69 |
+
wiki-packs/overlay-<id>/
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Overlay packs carry changed nodes, edges, wiki page upserts, and tombstones.
|
| 73 |
+
Periodic compaction merges the active base plus overlays into a new staged base
|
| 74 |
+
pack set. The full release artifact is still rebuilt explicitly for published
|
| 75 |
+
snapshots, but normal local updates should use overlays and the SQLite graph
|
| 76 |
+
store refresh path.
|
| 77 |
+
|
| 78 |
## What Is Inside `wiki-graph.tar.gz`
|
| 79 |
|
| 80 |
- `entities/skills/` - all skill entity pages
|
|
|
|
| 85 |
- `converted-agents/` - mirrored agent bodies
|
| 86 |
- `concepts/` - community concept pages
|
| 87 |
- `external-catalogs/` - machine-readable skill index, summary, and coverage metadata
|
| 88 |
+
- `security/skillspector-audit.jsonl.gz` - per-skill SkillSpector audit records
|
| 89 |
- `graphify-out/graph.json` - NetworkX node-link graph
|
| 90 |
- `graphify-out/graph-delta.json` - delta export for the latest graph generation
|
| 91 |
- `graphify-out/graph-export-manifest.json` - export manifest tying graph, delta, communities, and report to one generation
|
|
|
|
| 138 |
|
| 139 |
```bash
|
| 140 |
python src/validate_graph_artifacts.py --deep \
|
| 141 |
+
--expected-nodes 79958 \
|
| 142 |
+
--expected-edges 1778069 \
|
| 143 |
+
--expected-semantic-edges 1088763 \
|
| 144 |
--expected-harness-nodes 207 \
|
| 145 |
+
--expected-skills-sh-nodes 67028 \
|
| 146 |
+
--expected-skills-sh-catalog-entries 67024 \
|
| 147 |
+
--expected-skills-sh-converted 67024 \
|
| 148 |
+
--expected-skill-pages 68494 \
|
| 149 |
--expected-agent-pages 467 \
|
| 150 |
--expected-mcp-pages 10790 \
|
| 151 |
--expected-harness-pages 207
|
|
|
|
| 217 |
the release gate fails when recall at the largest requested top-k is below the
|
| 218 |
overlap floor.
|
| 219 |
|
| 220 |
+
To compact local graph/wiki overlays into a new coordinated base pack set:
|
| 221 |
+
|
| 222 |
+
```bash
|
| 223 |
+
ctx-pack-compact compact \
|
| 224 |
+
--wiki-path ~/.claude/skill-wiki \
|
| 225 |
+
--base-export-id <new-export-id> \
|
| 226 |
+
--staging-dir /tmp/ctx-pack-stage \
|
| 227 |
+
--json
|
| 228 |
+
```
|
| 229 |
+
|
| 230 |
+
Then validate and promote the staged graph and wiki packs together:
|
| 231 |
+
|
| 232 |
+
```bash
|
| 233 |
+
ctx-pack-compact promote \
|
| 234 |
+
--wiki-path ~/.claude/skill-wiki \
|
| 235 |
+
--staged-graph-packs-dir /tmp/ctx-pack-stage/graph-packs \
|
| 236 |
+
--staged-wiki-packs-dir /tmp/ctx-pack-stage/wiki-packs \
|
| 237 |
+
--json
|
| 238 |
+
```
|
| 239 |
+
|
| 240 |
+
Promotion requires the top-level `pack-compaction-manifest.json`, matching graph
|
| 241 |
+
and wiki export IDs, valid checksums, non-empty merged graph/wiki contents, and
|
| 242 |
+
entity consistency between known graph nodes and wiki pages. It refreshes
|
| 243 |
+
`graphify-out/graph-store.sqlite3` by default so dashboard graph APIs do not
|
| 244 |
+
fall back to cold-parsing `graph.json`. If you disable that refresh, rebuild and
|
| 245 |
+
validate the store explicitly:
|
| 246 |
+
|
| 247 |
+
```bash
|
| 248 |
+
ctx-graph-store build \
|
| 249 |
+
--graph-dir ~/.claude/skill-wiki/graphify-out \
|
| 250 |
+
--db ~/.claude/skill-wiki/graphify-out/graph-store.sqlite3
|
| 251 |
+
|
| 252 |
+
ctx-graph-store validate \
|
| 253 |
+
--db ~/.claude/skill-wiki/graphify-out/graph-store.sqlite3
|
| 254 |
+
```
|
| 255 |
+
|
| 256 |
For release artifact rebuilds:
|
| 257 |
|
| 258 |
```bash
|
|
|
|
| 294 |
--update-wiki-tar
|
| 295 |
```
|
| 296 |
|
| 297 |
+
For a full local wiki repack from an existing artifact, use the packed-page
|
| 298 |
+
repacker. It writes `wiki-packs/base-<export-id>/`, removes expanded
|
| 299 |
+
skill/agent/MCP entity pages from the tar member list, and leaves harness pages
|
| 300 |
+
directly available for fast runtime setup:
|
| 301 |
+
|
| 302 |
+
```bash
|
| 303 |
+
python scripts/pack_full_wiki_tar.py \
|
| 304 |
+
--source graph/wiki-graph.tar.gz \
|
| 305 |
+
--target graph/wiki-graph.tar.gz.staged
|
| 306 |
+
python -c "from pathlib import Path; from ctx.core.wiki.artifact_promotion import promote_staged_artifact; from import_skills_sh_catalog import _validate_wiki_tarball_candidate; promote_staged_artifact(Path('graph/wiki-graph.tar.gz.staged'), Path('graph/wiki-graph.tar.gz'), validate=_validate_wiki_tarball_candidate)"
|
| 307 |
+
```
|
| 308 |
+
|
| 309 |
+
For a full local wiki repack from an expanded `~/.claude/skill-wiki` tree, write
|
| 310 |
+
the tarball to the sibling staged path, then promote that staged candidate after
|
| 311 |
+
validation:
|
| 312 |
|
| 313 |
```bash
|
| 314 |
cd ~/.claude/skill-wiki
|
graph/communities.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/sample-top60.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/skills-sh-catalog.json.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1bb927e93d65ef86cdbc6d68c7f57511d64c8f13026e8193287a9c4ca6f5815
|
| 3 |
+
size 10763626
|
graph/skillspector-audit.jsonl.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b1b7627317c516ca1b2a9eb383750777d34e3bb58b3d99316ee401b66a6588a
|
| 3 |
+
size 4932061
|
graph/viz-ai-agents.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/viz-overview.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/viz-python.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/viz-security.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
graph/wiki-graph-runtime.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:993fc08377fdb09edcff4414c59b10fc121189b4a161bf796e3f8f6600907bb1
|
| 3 |
+
size 122141091
|
graph/wiki-graph-stats.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"schema_version": 1,
|
| 3 |
+
"artifact": {
|
| 4 |
+
"path": "graph/wiki-graph.tar.gz",
|
| 5 |
+
"size": 296113770,
|
| 6 |
+
"sha256": "d051d4f21208abe3e73975a9c30650150138d88919c27979d725be936a6ea10a"
|
| 7 |
+
},
|
| 8 |
+
"source": "validated graph artifact release contract",
|
| 9 |
+
"counts": {
|
| 10 |
+
"nodes": 79958,
|
| 11 |
+
"edges": 1778069,
|
| 12 |
+
"semantic_edges": 1088763,
|
| 13 |
+
"skills": 68494,
|
| 14 |
+
"agents": 467,
|
| 15 |
+
"mcps": 10790,
|
| 16 |
+
"harnesses": 207,
|
| 17 |
+
"communities": 52,
|
| 18 |
+
"skills_sh_entries": 67024,
|
| 19 |
+
"skills_sh_bodies": 67024,
|
| 20 |
+
"tag_edges": 474837,
|
| 21 |
+
"token_edges": 280275,
|
| 22 |
+
"hydrated_incident_edges": 1516298,
|
| 23 |
+
"hydrated_semantic_incident_edges": 911922,
|
| 24 |
+
"cross_skill_agent_edges": 52382,
|
| 25 |
+
"cross_skill_mcp_edges": 30295,
|
| 26 |
+
"cross_agent_mcp_edges": 229,
|
| 27 |
+
"harness_edges": 5063
|
| 28 |
+
}
|
| 29 |
+
}
|
graph/wiki-graph.tar.gz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d051d4f21208abe3e73975a9c30650150138d88919c27979d725be936a6ea10a
|
| 3 |
+
size 296113770
|