Stevesolun commited on
Commit
ff72b9c
·
verified ·
1 Parent(s): 1eea488

Sync ctx eea3f60

Browse files

GitHub commit: eea3f60109fad1541eef0ec95b811f7025d8a79f

.github/workflows/dependency-audit.yml CHANGED
@@ -37,7 +37,7 @@ jobs:
37
  strategy:
38
  fail-fast: false
39
  matrix:
40
- os: [ubuntu-latest, windows-latest, macos-latest]
41
  python-version: ["3.11", "3.12"]
42
  steps:
43
  - name: Checkout
 
37
  strategy:
38
  fail-fast: false
39
  matrix:
40
+ os: [ubuntu-latest, macos-latest]
41
  python-version: ["3.11", "3.12"]
42
  steps:
43
  - name: Checkout
.github/workflows/test.yml CHANGED
@@ -32,7 +32,6 @@ jobs:
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
- windows_changed: ${{ steps.classify.outputs.windows_changed }}
36
  steps:
37
  - name: Checkout with full history
38
  uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
@@ -196,10 +195,6 @@ jobs:
196
  include:
197
  - os: ubuntu-latest
198
  python-version: "3.12"
199
- - os: windows-latest
200
- python-version: "3.11"
201
- - os: windows-latest
202
- python-version: "3.12"
203
  - os: macos-latest
204
  python-version: "3.11"
205
  - os: macos-latest
@@ -226,38 +221,6 @@ jobs:
226
  - name: Run tests without coverage
227
  run: pytest -q -m "not browser and not integration" --no-cov
228
 
229
- windows-high-risk:
230
- name: "Windows high-risk"
231
- needs: classify
232
- if: ${{ github.event_name == 'pull_request' && needs.classify.outputs.windows_changed == 'true' }}
233
- runs-on: windows-latest
234
- steps:
235
- - name: Checkout
236
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
237
- with:
238
- lfs: false
239
-
240
- - name: Set up Python 3.12
241
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
242
- with:
243
- python-version: "3.12"
244
- cache: pip
245
- cache-dependency-path: pyproject.toml
246
-
247
- - name: Install dependencies
248
- run: |
249
- python -m pip install --upgrade pip
250
- python -m pip install ".[dev]"
251
-
252
- - name: Run focused Windows tests
253
- run: >-
254
- python -m pytest -q --no-cov
255
- src/tests/test_import_designdotmd_skills.py
256
- src/tests/test_import_mattpocock_skills.py
257
- src/tests/test_import_strix_skills.py
258
- src/tests/test_ctx_ab_benchmark.py
259
- src/tests/test_ctx_ab_swebench.py
260
-
261
  contract-compat:
262
  name: "Contract compatibility (${{ matrix.os }})"
263
  needs: classify
@@ -266,7 +229,7 @@ jobs:
266
  strategy:
267
  fail-fast: false
268
  matrix:
269
- os: [windows-latest, macos-latest]
270
 
271
  steps:
272
  - name: Checkout
@@ -725,7 +688,7 @@ jobs:
725
  strategy:
726
  fail-fast: false
727
  matrix:
728
- os: [ubuntu-latest, windows-latest, macos-latest]
729
  defaults:
730
  run:
731
  shell: bash
@@ -751,11 +714,7 @@ jobs:
751
  - name: Install wheel in clean venv
752
  run: |
753
  python -m venv .venv-smoke
754
- if [[ "$RUNNER_OS" == "Windows" ]]; then
755
- . .venv-smoke/Scripts/activate
756
- else
757
- . .venv-smoke/bin/activate
758
- fi
759
  python -m pip install --upgrade pip
760
  python -m pip install dist/*.whl
761
  python -m pip check
@@ -905,7 +864,6 @@ jobs:
905
  - clean-host-contract
906
  - no-test-no-merge
907
  - telemetry-enterprise
908
- - windows-high-risk
909
  if: ${{ always() }}
910
  steps:
911
  - name: Checkout
 
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@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
 
195
  include:
196
  - os: ubuntu-latest
197
  python-version: "3.12"
 
 
 
 
198
  - os: macos-latest
199
  python-version: "3.11"
200
  - os: macos-latest
 
221
  - name: Run tests without coverage
222
  run: pytest -q -m "not browser and not integration" --no-cov
223
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  contract-compat:
225
  name: "Contract compatibility (${{ matrix.os }})"
226
  needs: classify
 
229
  strategy:
230
  fail-fast: false
231
  matrix:
232
+ os: [macos-latest]
233
 
234
  steps:
235
  - name: Checkout
 
688
  strategy:
689
  fail-fast: false
690
  matrix:
691
+ os: [ubuntu-latest, macos-latest]
692
  defaults:
693
  run:
694
  shell: bash
 
714
  - name: Install wheel in clean venv
715
  run: |
716
  python -m venv .venv-smoke
717
+ . .venv-smoke/bin/activate
 
 
 
 
718
  python -m pip install --upgrade pip
719
  python -m pip install dist/*.whl
720
  python -m pip check
 
864
  - clean-host-contract
865
  - no-test-no-merge
866
  - telemetry-enterprise
 
867
  if: ${{ always() }}
868
  steps:
869
  - name: Checkout
.github/workflows/xdist-experiment.yml CHANGED
@@ -24,7 +24,7 @@ jobs:
24
  strategy:
25
  fail-fast: false
26
  matrix:
27
- os: [ubuntu-latest, windows-latest, macos-latest]
28
  python-version: ["3.12"]
29
  defaults:
30
  run:
 
24
  strategy:
25
  fail-fast: false
26
  matrix:
27
+ os: [ubuntu-latest, macos-latest]
28
  python-version: ["3.12"]
29
  defaults:
30
  run:
AGENTS.md CHANGED
@@ -7,7 +7,7 @@ agents, MCP servers, and harnesses.
7
 
8
  - The project is migrating from legacy flat modules to the `ctx` package. Both
9
  layouts are intentional until the migration phase removes the old one.
10
- - Integration, browser, graph, native-Windows, and release checks have different
11
  dependencies and costs. Select checks from the changed surface; validation,
12
  platform, and package-migration contracts live in `CONTRIBUTING.md`.
13
 
 
7
 
8
  - The project is migrating from legacy flat modules to the `ctx` package. Both
9
  layouts are intentional until the migration phase removes the old one.
10
+ - Integration, browser, graph, platform, and release checks have different
11
  dependencies and costs. Select checks from the changed surface; validation,
12
  platform, and package-migration contracts live in `CONTRIBUTING.md`.
13
 
CONTRIBUTING.md CHANGED
@@ -7,7 +7,7 @@ Thank you for your interest in contributing.
7
  ```bash
8
  git clone https://github.com/stevesolun/ctx && cd ctx
9
  python -m venv .venv
10
- source .venv/bin/activate # Windows: .venv\Scripts\activate
11
  pip install -e ".[dev]"
12
  ```
13
 
@@ -62,15 +62,13 @@ new package path exists: shim removal requires an explicit migration phase plus
62
  clean-install and packaging evidence. Run the package-scaffold tests and the
63
  affected module tests before the repository gates.
64
 
65
- GitHub PRs skip the broad OS/Python `test` matrix. The full
66
- Ubuntu/Windows/macOS pytest matrix runs after merge on `main`; PRs use focused
67
- required jobs selected from the changed surface.
68
 
69
- PRs matching `WINDOWS_PATTERNS` in `scripts/ci_classifier.py` also run the
70
- required `windows-high-risk` job on native Windows 3.12, focused on Windows
71
- sensitive importers and benchmark process/filesystem behavior. Local-fast and
72
- preflight remain the first pass, but they do not replace that native Windows
73
- evidence. After merge, the full Windows matrix supersedes the focused job.
74
 
75
  ## Documentation changes
76
 
 
7
  ```bash
8
  git clone https://github.com/stevesolun/ctx && cd ctx
9
  python -m venv .venv
10
+ source .venv/bin/activate
11
  pip install -e ".[dev]"
12
  ```
13
 
 
62
  clean-install and packaging evidence. Run the package-scaffold tests and the
63
  affected module tests before the repository gates.
64
 
65
+ Development and CI support CPython 3.11+ on Linux and macOS. Other POSIX
66
+ systems are best-effort. Native Windows and PowerShell are unsupported; use a
67
+ Linux installation under WSL2 when developing on a Windows machine.
68
 
69
+ GitHub PRs skip the broad OS/Python `test` matrix. The full Linux/macOS pytest
70
+ matrix runs after merge on `main`; PRs use focused required jobs selected from
71
+ the changed surface. Local-fast and preflight remain the first pass.
 
 
72
 
73
  ## Documentation changes
74
 
README.md CHANGED
@@ -16,7 +16,7 @@ tags:
16
  # ctx
17
 
18
  [![CI](https://github.com/stevesolun/ctx/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
19
- [![Tests](https://img.shields.io/badge/Tests-6219_inventory-blue.svg)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
20
  [![PyPI](https://img.shields.io/pypi/v/claude-ctx.svg)](https://pypi.org/project/claude-ctx/)
21
 
22
  ctx is a Python CLI and library that recommends a small, relevant set of
@@ -31,7 +31,9 @@ this source tree declares `1.0.21` for unreleased work.
31
 
32
  ## Install
33
 
34
- Requires Python 3.11 or newer.
 
 
35
 
36
  ```bash
37
  pip install claude-ctx
 
16
  # ctx
17
 
18
  [![CI](https://github.com/stevesolun/ctx/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
19
+ [![Tests](https://img.shields.io/badge/Tests-6195_inventory-blue.svg)](https://github.com/stevesolun/ctx/actions/workflows/test.yml)
20
  [![PyPI](https://img.shields.io/pypi/v/claude-ctx.svg)](https://pypi.org/project/claude-ctx/)
21
 
22
  ctx is a Python CLI and library that recommends a small, relevant set of
 
31
 
32
  ## Install
33
 
34
+ Requires CPython 3.11 or newer. Linux and macOS are the tested host platforms;
35
+ other POSIX systems are best-effort. Native Windows and PowerShell are not
36
+ supported. On a Windows machine, run ctx inside WSL2 as a Linux installation.
37
 
38
  ```bash
39
  pip install claude-ctx
benchmarks/ctx_ab/README.md CHANGED
@@ -46,10 +46,26 @@ filtering to one scenario does not reset it.
46
 
47
  ## Official production-graph V2 campaign
48
 
49
- Current status (2026-07-30): the framework is validated, but the official
50
  campaign has not run (`0/10` controls, `0/30` pairs, `0/60` arms). CTX benefit
51
  remains unproven; `not_beneficial` is a valid final result.
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  Run V2 only from a clean worktree at the merged `origin/main` revision. The
54
  worktree, private scenario artifacts, and run output must be on a persistent
55
  filesystem, not under `/tmp`, `/private/tmp`, or `/var/tmp`. Use an isolated
 
46
 
47
  ## Official production-graph V2 campaign
48
 
49
+ Current status (2026-08-01): the framework is validated, but the official
50
  campaign has not run (`0/10` controls, `0/30` pairs, `0/60` arms). CTX benefit
51
  remains unproven; `not_beneficial` is a valid final result.
52
 
53
+ The pre-selection descriptive contract is frozen in
54
+ `descriptive-metrics-v1.json`. It reports completed shell-command executions,
55
+ failed executions, output bytes, repeated commands, the CTX
56
+ recommend/select/deliver/semantic-use funnel, lifecycle event counts, timeouts,
57
+ and nonzero agent/verifier outcomes. These metrics are descriptive and
58
+ non-confirmatory: they have no thresholds, do not change the primary
59
+ time/token/quality verdict, and do not support a causal claim on their own.
60
+
61
+ Every assigned arm remains in the descriptive population regardless of outcome.
62
+ Unknown or malformed evidence stays missing rather than becoming zero. Semantic
63
+ use is not inferred from context delivery. The public descriptive block is
64
+ withheld until all 60 unique final arm records are present and authenticated;
65
+ when released, it contains only whole-arm and whole-campaign aggregates, never
66
+ task-level identifiers, commands, outputs, errors, paths, patches, or entity
67
+ identifiers.
68
+
69
  Run V2 only from a clean worktree at the merged `origin/main` revision. The
70
  worktree, private scenario artifacts, and run output must be on a persistent
71
  filesystem, not under `/tmp`, `/private/tmp`, or `/var/tmp`. Use an isolated
benchmarks/ctx_ab/descriptive-metrics-v1.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "analysis_role": "descriptive_non_confirmatory",
4
+ "causal_interpretation": "unsupported",
5
+ "used_by_primary_verdict": false,
6
+ "thresholds": null,
7
+ "population": {
8
+ "arm_records": "every authenticated final frozen assignment, including failed and harness-error outcomes",
9
+ "expected_arm_count": 60,
10
+ "expected_pair_count": 30,
11
+ "outcome_filtering": "none",
12
+ "duplicate_assignment_policy": "schema_error"
13
+ },
14
+ "raw_arm_record": {
15
+ "schema_version_field": "descriptive_record_schema_version",
16
+ "schema_version_value": 1,
17
+ "completed_shell_command_executions": {
18
+ "trace_complete_field": "descriptive_trace_complete",
19
+ "trace_complete_when": "every nonblank record is a JSON object with a nonempty string event type, every item.completed has an object item with a nonempty string item type, and the final event is turn.completed",
20
+ "definition": "item.completed records whose item.type is command_execution; not all tool families",
21
+ "calls_field": "tool_command_count",
22
+ "exit_code_known_calls_field": "tool_command_exit_code_known_count",
23
+ "failed_calls_field": "tool_failure_count",
24
+ "failed_calls_known_when": "every completed command execution has a non-boolean integer exit_code",
25
+ "output_bytes_field": "tool_output_bytes",
26
+ "output_bytes_known_when": "every completed command execution has a string aggregated_output",
27
+ "output_encoding": "UTF-8",
28
+ "repeated_calls_field": "repeated_tool_command_count",
29
+ "repeated_calls_known_when": "every completed command execution has a string command",
30
+ "command_normalization": "collapse whitespace only; preserve case and punctuation"
31
+ },
32
+ "ctx_funnel": {
33
+ "scope": "ctx-light only",
34
+ "recommendation_invocation": "recommendation_invocation_verified",
35
+ "candidates": "length(candidate_ids) after verified recommendation invocation",
36
+ "selected": "length(selected_ids) after verified delivery or verified policy abstention",
37
+ "delivered": "length(delivered_ids) after verified delivery; verified abstention is zero",
38
+ "semantic_use": "length(used_ids) only when semantic_context_use_verified is true; verified abstention is zero",
39
+ "delivery_is_not_use": true
40
+ },
41
+ "lifecycle": {
42
+ "scope": "ctx-light only",
43
+ "actions": [
44
+ "load_applied",
45
+ "used",
46
+ "unload_applied"
47
+ ],
48
+ "known_when": "lifecycle digest is valid, actions end in session_end, session status is present, and final_loaded is empty",
49
+ "unit": "event count"
50
+ },
51
+ "errors": {
52
+ "harness_error": "status is harness_error rather than passed or failed",
53
+ "agent_timeout": "agent_timed_out is a boolean",
54
+ "agent_nonzero_returncode": "agent_returncode is a non-boolean integer and is not zero",
55
+ "verifier_nonzero_returncode": "verification_returncode is a non-boolean integer and is not zero",
56
+ "overlap_policy": "report independently; do not add categories"
57
+ }
58
+ },
59
+ "aggregation": {
60
+ "arm": [
61
+ "assigned_n",
62
+ "known_n",
63
+ "missing_n",
64
+ "total",
65
+ "median"
66
+ ],
67
+ "paired_numeric": "within frozen scenario and trial, include only pairs where both arm values are known; report median ctx-minus-baseline and lower/equal/higher counts",
68
+ "paired_binary": "within frozen scenario and trial, report the four boolean cells",
69
+ "missing_is_zero": false,
70
+ "outlier_removal": "none",
71
+ "significance_testing": "none"
72
+ },
73
+ "publication": {
74
+ "release_when": "all 60 expected arm records are authenticated, sealed, unique, and present",
75
+ "partial_release": "withhold the complete descriptive_metrics block",
76
+ "granularity": "two whole-arm aggregates, whole-campaign pairs, and ctx-light funnel/lifecycle aggregates only"
77
+ },
78
+ "privacy": {
79
+ "allow": "fixed labels, fixed enums, aggregate counts, medians, and differences",
80
+ "deny": [
81
+ "scenario or repository identifiers",
82
+ "tasks or prompts",
83
+ "commands or command output",
84
+ "return-code values or error text",
85
+ "exceptions, incidents, stack traces, patches, tests, paths, or timestamps",
86
+ "entity identifiers or slugs",
87
+ "per-run hashes"
88
+ ]
89
+ }
90
+ }
docs/backup-hook-install.md CHANGED
@@ -26,8 +26,8 @@ the backup layer cannot stall a Claude session.
26
 
27
  Edit `~/.claude/settings.json` and add the following under `hooks` (keep
28
  any existing entries alongside it). Replace `<REPO>` with the absolute
29
- path to this checkout on Windows this is a path like
30
- `C:/Steves_Files/Work/Research_and_Papers/ctx`.
31
 
32
  ```json
33
  {
@@ -52,10 +52,8 @@ Notes:
52
  - The `matcher` is a regex against the tool name. The three names above are the
53
  supported direct file-edit events; use the watchdog below to catch changes
54
  made by Bash commands, external editors, or other processes.
55
- - Use forward slashes in the path even on Windows.
56
  - If `python` on your PATH is not the interpreter you want, give the
57
- absolute path instead (e.g.
58
- `C:/Users/you/.pyenv/pyenv-win/versions/3.13.2/python.exe`).
59
 
60
  ## Verify it works
61
 
@@ -146,7 +144,7 @@ Flags:
146
  | --- | --- |
147
  | `--interval N` | Seconds between polls. Clamped to `[5, 3600]`. Default 60. |
148
  | `--reason-prefix LBL` | Prefix used for each snapshot's `--reason` label. Default `watchdog`. |
149
- | `--once` | Run exactly one tick and exit. Useful for cron / Task Scheduler. |
150
  | `--json` | Emit run stats as JSON on exit. |
151
 
152
  Because change detection is SHA-gated, polling is cheap — a tick with
@@ -168,14 +166,7 @@ that guesses where you keep the checkout.
168
  Edit the `ProgramArguments` paths, drop into
169
  `~/Library/LaunchAgents/`, then
170
  `launchctl load -w ~/Library/LaunchAgents/com.claude.backup.watchdog.plist`.
171
- - **Windows (Task Scheduler installer)**
172
- [`docs/services/windows/install-backup-watchdog.ps1`](https://github.com/stevesolun/ctx/blob/main/docs/services/windows/install-backup-watchdog.ps1).
173
- Run `pwsh -File docs/services/windows/install-backup-watchdog.ps1`
174
- from the repo root; it detects Python on PATH, registers a
175
- `ClaudeBackupWatchdog` scheduled task that runs at logon, and kicks
176
- off the first tick. `-Uninstall` removes it.
177
-
178
- All three manifests assume the watchdog runs as an **unprivileged
179
  user** — no admin/root — because it only reads `~/.claude/` and writes
180
  `~/.claude/backups/`.
181
 
 
26
 
27
  Edit `~/.claude/settings.json` and add the following under `hooks` (keep
28
  any existing entries alongside it). Replace `<REPO>` with the absolute
29
+ path to this checkout, such as `/home/you/src/ctx` on Linux or
30
+ `/Users/you/src/ctx` on macOS.
31
 
32
  ```json
33
  {
 
52
  - The `matcher` is a regex against the tool name. The three names above are the
53
  supported direct file-edit events; use the watchdog below to catch changes
54
  made by Bash commands, external editors, or other processes.
 
55
  - If `python` on your PATH is not the interpreter you want, give the
56
+ absolute path instead (for example, `/Users/you/.pyenv/shims/python`).
 
57
 
58
  ## Verify it works
59
 
 
144
  | --- | --- |
145
  | `--interval N` | Seconds between polls. Clamped to `[5, 3600]`. Default 60. |
146
  | `--reason-prefix LBL` | Prefix used for each snapshot's `--reason` label. Default `watchdog`. |
147
+ | `--once` | Run exactly one tick and exit. Useful for cron. |
148
  | `--json` | Emit run stats as JSON on exit. |
149
 
150
  Because change detection is SHA-gated, polling is cheap — a tick with
 
166
  Edit the `ProgramArguments` paths, drop into
167
  `~/Library/LaunchAgents/`, then
168
  `launchctl load -w ~/Library/LaunchAgents/com.claude.backup.watchdog.plist`.
169
+ Both manifests assume the watchdog runs as an **unprivileged
 
 
 
 
 
 
 
170
  user** — no admin/root — because it only reads `~/.claude/` and writes
171
  `~/.claude/backups/`.
172
 
docs/huggingface-publish.md CHANGED
@@ -56,38 +56,34 @@ inputs, then replaces just those remote paths.
56
  Do not paste the token into a command line. Prompt for it, set it only for the
57
  current process, and clear it after the upload.
58
 
59
- ```powershell
60
  python -m pip install --upgrade huggingface_hub
61
 
62
- $secureToken = Read-Host "HF write token" -AsSecureString
63
- $tokenPtr = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureToken)
64
- try {
65
- $env:HF_TOKEN = [Runtime.InteropServices.Marshal]::PtrToStringBSTR($tokenPtr)
66
- python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset
67
- } finally {
68
- if ($tokenPtr -ne [IntPtr]::Zero) {
69
- [Runtime.InteropServices.Marshal]::ZeroFreeBSTR($tokenPtr)
70
- }
71
- Remove-Item Env:\HF_TOKEN -ErrorAction SilentlyContinue
72
- }
73
  ```
74
 
75
  For a README/changelog/docs-only refresh:
76
 
77
- ```powershell
78
  python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset --card-only
79
  ```
80
 
81
  ## Verify
82
 
83
- ```powershell
84
- @'
85
  from huggingface_hub import HfApi
86
 
87
  api = HfApi()
88
  info = api.repo_info(repo_id="Stevesolun/ctx", repo_type="dataset")
89
  print(info.id, info.sha)
90
- '@ | python -
91
  ```
92
 
93
  The dataset page should show the MIT license and the tags from the metadata
 
56
  Do not paste the token into a command line. Prompt for it, set it only for the
57
  current process, and clear it after the upload.
58
 
59
+ ```bash
60
  python -m pip install --upgrade huggingface_hub
61
 
62
+ read -rsp "HF write token: " HF_TOKEN
63
+ printf '\n'
64
+ export HF_TOKEN
65
+ trap 'unset HF_TOKEN' EXIT
66
+ python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset
67
+ unset HF_TOKEN
68
+ trap - EXIT
 
 
 
 
69
  ```
70
 
71
  For a README/changelog/docs-only refresh:
72
 
73
+ ```bash
74
  python scripts/sync_huggingface.py --repo . --repo-id Stevesolun/ctx --repo-type dataset --card-only
75
  ```
76
 
77
  ## Verify
78
 
79
+ ```bash
80
+ python - <<'PY'
81
  from huggingface_hub import HfApi
82
 
83
  api = HfApi()
84
  info = api.repo_info(repo_id="Stevesolun/ctx", repo_type="dataset")
85
  print(info.id, info.sha)
86
+ PY
87
  ```
88
 
89
  The dataset page should show the MIT license and the tags from the metadata
docs/index.md CHANGED
@@ -251,8 +251,8 @@ ones are flagged. New ones self-ingest.
251
 
252
  ---
253
 
254
- Current main is **v1.0.21** — MIT, CI-matrixed (Ubuntu 3.12 plus Windows/macOS 3.11/3.12),
255
- 6,219 test inventory. Adds enterprise OpenTelemetry-ready telemetry and
256
  ships console scripts including `ctx-init`,
257
  `ctx-monitor` (local dashboard with graph + wiki + load/unload for
258
  skills, agents, and MCP servers, plus Harness Setup for user-owned LLMs),
 
251
 
252
  ---
253
 
254
+ Current main is **v1.0.21** — MIT, tested on CPython 3.11+ for Linux and macOS,
255
+ 6,195 test inventory. Adds enterprise OpenTelemetry-ready telemetry and
256
  ships console scripts including `ctx-init`,
257
  `ctx-monitor` (local dashboard with graph + wiki + load/unload for
258
  skills, agents, and MCP servers, plus Harness Setup for user-owned LLMs),
docs/knowledge-graph.md CHANGED
@@ -87,14 +87,6 @@ mkdir -p ~/.claude/skill-wiki
87
  tar xzf graph/wiki-graph.tar.gz -C ~/.claude/skill-wiki/
88
  ```
89
 
90
- On Windows PowerShell, create the target and use the built-in `tar.exe`
91
- without `--force-local`:
92
-
93
- ```powershell
94
- New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude\skill-wiki" | Out-Null
95
- tar -xzf graph\wiki-graph.tar.gz -C "$env:USERPROFILE\.claude\skill-wiki"
96
- ```
97
-
98
  The extracted tree also opens directly as an Obsidian vault — the
99
  `.obsidian/` config ships inside the tarball — so you can use
100
  Obsidian's native graph view if you prefer it to the web dashboard.
 
87
  tar xzf graph/wiki-graph.tar.gz -C ~/.claude/skill-wiki/
88
  ```
89
 
 
 
 
 
 
 
 
 
90
  The extracted tree also opens directly as an Obsidian vault — the
91
  `.obsidian/` config ships inside the tarball — so you can use
92
  Obsidian's native graph view if you prefer it to the web dashboard.
docs/qa/feature-user-story-status.csv CHANGED
@@ -127,7 +127,7 @@ DOC-NAV-024,Docs,Memory anchoring page,docs/memory-anchor.md,mkdocs.yml nav,As a
127
  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.
128
  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.
129
  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.
130
- DIST-002,Distribution,Main CI test workflow,.github/workflows/test.yml,qa/feature_status.csv,As a contributor I can trust the required main test workflow,See canonical DIST-002 in qa/feature_status.csv for the current required-gate contract.,GitHub Actions available,See canonical DIST-002 test_command_or_steps in qa/feature_status.csv,Retested Pass,Canonical DIST-002 records the successful required aggregate and native Windows importer evidence.,,,,,2026-07-20,Pointer only; qa/feature_status.csv owns the exact contract and passing evidence.
131
  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 29021393673 and curl public docs URLs,Retested Pass,PASS: Deploy docs to GitHub Pages run 29021393673 for de646b52 succeeded and the generated README/docs stats check is up to date.,,,,,2026-07-11,Public docs reflect merged main at de646b52; the volatile test inventory remains generator-owned in README and docs/index.md.
132
  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 from matching release assets or size-capped targeted LFS for full publishes while refusing stale README/docs stats and limiting card-only sync to README/CHANGELOG/docs inputs,Valid write-scoped HF_TOKEN configured in GitHub secrets,GitHub Actions Sync Hugging Face workflow on main,Blocked/Human Decision,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,Post-exposure HF_TOKEN rotation remains open after successful sync proof,"Replace and revoke the token that was exposed during incident handling, update GitHub HF_TOKEN, then rerun the Sync Hugging Face workflow.","PASS: workflow_dispatch Sync Hugging Face run 28362276544 proved the replacement secret could publish the dataset at that time; current repo stats are enforced separately by update_repo_stats.py and PR #239 refreshed GitHub docs to 4,473 inventory.",2026-07-05,"Successful run proved the replacement secret worked, but the exposed credential still requires another rotation before this row can pass; workflow classifier now full-syncs source test and workflow changes."
133
  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.
@@ -151,8 +151,8 @@ MAINT-011,Maintainer,Full wiki tar repacker,scripts/pack_full_wiki_tar.py,script
151
  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.
152
  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 removes stale remote files and limits card-only uploads to README/CHANGELOG/docs inputs,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 including full sync selection for source test and workflow changes.
153
  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 prints help without loading the embedding model and sweeps threshold settings with precision/recall/F1 output without mutating graph artifacts,Similarity fixture corpus available,python scripts/tune_similarity_thresholds.py --help; run tuner against fixture corpus,Retested Pass,"PASS: --help printed usage without loading the embedder; focused pytest passed; tuner prints precision, recall, F1, and confusion counts.",CTX-QA-035,Similarity tuner --help previously loaded the embedding backend and could fail before usage output,Fixed by model-free help handling and F1 metric reporting in PR #210,PASS: /tmp/ctx-verify-venv/bin/python scripts/tune_similarity_thresholds.py --help; focused pytest 62 passed 1 skipped; GitHub Similarity precision/recall passed.,2026-07-02,Full sweep still depends on embedding backend availability; --help stays model-free and CI covers fixture precision/recall/F1.
154
- MAINT-016,Maintainer,Adaptive ctx development benchmark,scripts/ctx_ab_benchmark.py,scripts/ctx_ab_benchmark.py; scripts/ctx_ab_exposure_ledger.py; scripts/ctx_ab_failure_evidence.py; scripts/ctx_ab_holdout.py; scripts/ctx_ab_holdout_acquire.py; scripts/ctx_ab_holdout_freeze.py; scripts/ctx_ab_holdout_materialize.py; scripts/ctx_ab_holdout_prepare.py; scripts/ctx_ab_swebench.py; benchmarks/ctx_ab/holdout-protocol-v1.json; benchmarks/ctx_ab/scenarios.yaml; qa/ctx_benchmark_status.csv; src/tests/test_ctx_ab_benchmark.py; src/tests/test_ctx_ab_exposure_ledger.py; src/tests/test_ctx_ab_failure_evidence.py; src/tests/test_ctx_ab_holdout_freeze.py; src/tests/test_ctx_ab_holdout_materialize.py; src/tests/test_ctx_ab_holdout_prepare.py; src/tests/test_ctx_ab_holdout_protocol.py; src/tests/test_ctx_ab_holdout_selection.py; src/tests/test_ctx_ab_swebench.py,As a product owner I can compare the same feature development task with and without production CTX using reproducible quality token time lifecycle and failure evidence,The authenticated V2 runner freezes ten hidden repository tasks and a 30-pair schedule evaluates baseline and CTX with the same blinded official verifier and emits no benefit claim unless every evidence and quality gate passes,Python 3.12 authenticated Codex pinned SWE-bench runtimes owner-only frozen inputs and a clean merged-main worktree,.venv/bin/python -m pytest -q src/tests/test_ctx_ab_benchmark.py src/tests/test_ctx_ab_swebench.py src/tests/test_ctx_ab_exposure_ledger.py src/tests/test_ctx_ab_holdout_selection.py src/tests/test_ctx_ab_holdout_protocol.py src/tests/test_ctx_ab_holdout_materialize.py src/tests/test_ctx_ab_holdout_freeze.py src/tests/test_ctx_ab_holdout_prepare.py; then run 10 controls and 30 pairs as documented,Needs Validation,CURRENT CANDIDATE: exact combined V2 suite passed 505/505 on code HEAD 547b80a5; mypy passed 404 source files; both independent review lanes returned MERGE after exact attack retests. Official campaign remains NOT RUN: 0/10 controls 0/30 pairs and 0/60 arms.,BENCH-010; BENCH-034; BENCH-035; BENCH-036; BENCH-037; BENCH-038; BENCH-039; BENCH-040; BENCH-041; BENCH-042,The framework is authenticated and independently reviewed but native Windows CI merge and the official campaign remain open.,Framework fixed; live validation pending,CURRENT CANDIDATE: 505/505 passed on code HEAD 547b80a5; official campaign remains 0/10 controls 0/30 pairs and 0/60 arms.,2026-07-30,Canonical MAINT-016 in qa/feature_status.csv owns live KPI and review state; a valid not_beneficial result is final and any outcome-informed later study requires task-disjoint tasks or a new pinned universe.
155
  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.
156
  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.
157
- PUBLIC-003,Docs,Backup watchdog service manifests,"docs/services/systemd/claude-backup-watchdog.service, docs/services/macos/com.claude.backup.watchdog.plist, docs/services/windows/install-backup-watchdog.ps1","docs/services and docs/backup-hook-install.md",As an operator I can install the backup watchdog as a least-privilege background service on Linux macOS or Windows,Public service assets point at backup_mirror watchdog use user-scope execution and expose install/remove/status guidance without requiring admin rights,Docs services assets available,"python -m pytest src/tests/test_feature_user_story_tracker.py src/tests/test_backup_watchdog.py -q",Tested Pass,Tracker enforcement covers every docs/services asset and watchdog CLI tests cover --once JSON and real snapshot behavior.,,,,,2026-06-29,Added for public linked service assets referenced from backup hook install docs.
158
  PUBLIC-004,Docs,Starter toolbox template JSON,"docs/toolbox/templates/docs-review.json, docs/toolbox/templates/fresh-repo-init.json, docs/toolbox/templates/refactor-safety.json, docs/toolbox/templates/security-sweep.json, docs/toolbox/templates/ship-it.json","docs/toolbox/templates, docs/toolbox/starters.md, src/toolbox.py",As a toolbox user I can rely on public starter template JSON matching ctx-toolbox init behavior,Public starter JSON files remain in sync with embedded wheel fallback templates so docs checkout users and PyPI users seed the same starter toolboxes,Docs template assets available,python -m pytest src/tests/test_toolbox_cli.py -q,Tested Pass,Toolbox CLI regression compares docs/toolbox/templates JSON to the embedded fallback path used when templates are absent from installed wheels.,,,,,2026-06-29,Added for public starter preset assets referenced from starter toolbox docs.
 
127
  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.
128
  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.
129
  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.
130
+ DIST-002,Distribution,Main CI test workflow,.github/workflows/test.yml,qa/feature_status.csv,As a contributor I can trust the required main test workflow,See canonical DIST-002 in qa/feature_status.csv for the current required-gate contract.,GitHub Actions available,See canonical DIST-002 test_command_or_steps in qa/feature_status.csv,Retested Pass,Historical evidence in canonical DIST-002 records the successful required aggregate and retired native Windows importer run.,,,,,2026-07-20,Pointer only; qa/feature_status.csv owns the current supported-host contract and preserves dated platform evidence.
131
  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 29021393673 and curl public docs URLs,Retested Pass,PASS: Deploy docs to GitHub Pages run 29021393673 for de646b52 succeeded and the generated README/docs stats check is up to date.,,,,,2026-07-11,Public docs reflect merged main at de646b52; the volatile test inventory remains generator-owned in README and docs/index.md.
132
  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 from matching release assets or size-capped targeted LFS for full publishes while refusing stale README/docs stats and limiting card-only sync to README/CHANGELOG/docs inputs,Valid write-scoped HF_TOKEN configured in GitHub secrets,GitHub Actions Sync Hugging Face workflow on main,Blocked/Human Decision,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,Post-exposure HF_TOKEN rotation remains open after successful sync proof,"Replace and revoke the token that was exposed during incident handling, update GitHub HF_TOKEN, then rerun the Sync Hugging Face workflow.","PASS: workflow_dispatch Sync Hugging Face run 28362276544 proved the replacement secret could publish the dataset at that time; current repo stats are enforced separately by update_repo_stats.py and PR #239 refreshed GitHub docs to 4,473 inventory.",2026-07-05,"Successful run proved the replacement secret worked, but the exposed credential still requires another rotation before this row can pass; workflow classifier now full-syncs source test and workflow changes."
133
  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.
 
151
  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.
152
  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 removes stale remote files and limits card-only uploads to README/CHANGELOG/docs inputs,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 including full sync selection for source test and workflow changes.
153
  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 prints help without loading the embedding model and sweeps threshold settings with precision/recall/F1 output without mutating graph artifacts,Similarity fixture corpus available,python scripts/tune_similarity_thresholds.py --help; run tuner against fixture corpus,Retested Pass,"PASS: --help printed usage without loading the embedder; focused pytest passed; tuner prints precision, recall, F1, and confusion counts.",CTX-QA-035,Similarity tuner --help previously loaded the embedding backend and could fail before usage output,Fixed by model-free help handling and F1 metric reporting in PR #210,PASS: /tmp/ctx-verify-venv/bin/python scripts/tune_similarity_thresholds.py --help; focused pytest 62 passed 1 skipped; GitHub Similarity precision/recall passed.,2026-07-02,Full sweep still depends on embedding backend availability; --help stays model-free and CI covers fixture precision/recall/F1.
154
+ MAINT-016,Maintainer,Adaptive ctx development benchmark,scripts/ctx_ab_benchmark.py,scripts/ctx_ab_benchmark.py; scripts/ctx_ab_exposure_ledger.py; scripts/ctx_ab_failure_evidence.py; scripts/ctx_ab_holdout.py; scripts/ctx_ab_holdout_acquire.py; scripts/ctx_ab_holdout_freeze.py; scripts/ctx_ab_holdout_materialize.py; scripts/ctx_ab_holdout_prepare.py; scripts/ctx_ab_swebench.py; benchmarks/ctx_ab/descriptive-metrics-v1.json; benchmarks/ctx_ab/holdout-protocol-v1.json; benchmarks/ctx_ab/scenarios.yaml; qa/ctx_benchmark_status.csv; src/tests/test_ctx_ab_benchmark.py; src/tests/test_ctx_ab_exposure_ledger.py; src/tests/test_ctx_ab_failure_evidence.py; src/tests/test_ctx_ab_holdout_freeze.py; src/tests/test_ctx_ab_holdout_materialize.py; src/tests/test_ctx_ab_holdout_prepare.py; src/tests/test_ctx_ab_holdout_protocol.py; src/tests/test_ctx_ab_holdout_selection.py; src/tests/test_ctx_ab_swebench.py,As a product owner I can compare the same feature development task with and without production CTX using reproducible quality token time lifecycle and failure evidence,The authenticated V2 runner freezes ten hidden repository tasks and a 30-pair schedule evaluates baseline and CTX with the same blinded official verifier and emits no benefit claim unless every evidence and quality gate passes,Python 3.12 authenticated Codex pinned SWE-bench runtimes owner-only frozen inputs and a clean merged-main worktree,.venv/bin/python -m pytest -q src/tests/test_ctx_ab_benchmark.py src/tests/test_ctx_ab_swebench.py src/tests/test_ctx_ab_exposure_ledger.py src/tests/test_ctx_ab_holdout_selection.py src/tests/test_ctx_ab_holdout_protocol.py src/tests/test_ctx_ab_holdout_materialize.py src/tests/test_ctx_ab_holdout_freeze.py src/tests/test_ctx_ab_holdout_prepare.py; then run 10 controls and 30 pairs as documented,Needs Validation,CURRENT STACKED CANDIDATE: the descriptive-metrics-v1 contract is frozen before selection and 244 benchmark tests pass locally including all-arm retention missingness privacy primary-verdict invariance and sealed harness-failure coverage. Official campaign remains 0/10 controls 0/30 pairs and 0/60 arms.,BENCH-010; BENCH-034; BENCH-035; BENCH-036; BENCH-037; BENCH-038; BENCH-039; BENCH-040; BENCH-041; BENCH-042; BENCH-043,The framework and preselected descriptive contract are implemented locally; publication required CI and the official campaign remain open.,Framework and descriptive contract fixed locally; publication and live validation pending,CURRENT STACKED CANDIDATE: 244/244 benchmark tests pass; official campaign remains 0/10 controls 0/30 pairs and 0/60 arms.,2026-08-01,Canonical MAINT-016 in qa/feature_status.csv owns live KPI and review state; descriptive metrics are non-confirmatory and a valid not_beneficial result is final.
155
  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.
156
  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.
157
+ PUBLIC-003,Docs,Backup watchdog service manifests,"docs/services/systemd/claude-backup-watchdog.service, docs/services/macos/com.claude.backup.watchdog.plist","docs/services and docs/backup-hook-install.md",As an operator I can install the backup watchdog as a least-privilege background service on Linux or macOS,Public service assets point at backup_mirror watchdog use user-scope execution and expose install/remove/status guidance without requiring root privileges,Docs services assets available,"python -m pytest src/tests/test_feature_user_story_tracker.py src/tests/test_backup_watchdog.py -q",Tested Pass,Tracker enforcement covers every docs/services asset and watchdog CLI tests cover --once JSON and real snapshot behavior.,,,,,2026-06-29,Added for public linked service assets referenced from backup hook install docs.
158
  PUBLIC-004,Docs,Starter toolbox template JSON,"docs/toolbox/templates/docs-review.json, docs/toolbox/templates/fresh-repo-init.json, docs/toolbox/templates/refactor-safety.json, docs/toolbox/templates/security-sweep.json, docs/toolbox/templates/ship-it.json","docs/toolbox/templates, docs/toolbox/starters.md, src/toolbox.py",As a toolbox user I can rely on public starter template JSON matching ctx-toolbox init behavior,Public starter JSON files remain in sync with embedded wheel fallback templates so docs checkout users and PyPI users seed the same starter toolboxes,Docs template assets available,python -m pytest src/tests/test_toolbox_cli.py -q,Tested Pass,Toolbox CLI regression compares docs/toolbox/templates JSON to the embedded fallback path used when templates are absent from installed wheels.,,,,,2026-06-29,Added for public starter preset assets referenced from starter toolbox docs.
docs/services/windows/install-backup-watchdog.ps1 DELETED
@@ -1,120 +0,0 @@
1
- # install-backup-watchdog.ps1
2
- #
3
- # Registers the ctx backup watchdog as a Windows Scheduled Task.
4
- # The task runs under the current user, starts at logon, and restarts
5
- # on failure. Nothing elevated — a standard user can install, run, and
6
- # remove the task without administrator rights.
7
- #
8
- # Usage:
9
- # # From a PowerShell prompt inside this repo:
10
- # pwsh -File docs/services/windows/install-backup-watchdog.ps1
11
- #
12
- # Flags:
13
- # -RepoPath Absolute path to this ctx checkout. Defaults to the
14
- # repo the script lives in.
15
- # -Python Absolute path to the Python interpreter. Auto-detected
16
- # via `where python` when omitted.
17
- # -Interval Seconds between polls. Default 60.
18
- # -Uninstall Remove the task and exit.
19
- #
20
- # Inspect afterwards:
21
- # Get-ScheduledTask -TaskName 'ClaudeBackupWatchdog'
22
- # Get-ScheduledTaskInfo -TaskName 'ClaudeBackupWatchdog'
23
- #
24
- # Remove:
25
- # pwsh -File docs/services/windows/install-backup-watchdog.ps1 -Uninstall
26
-
27
- [CmdletBinding()]
28
- param(
29
- [string]$RepoPath = (Resolve-Path "$PSScriptRoot\..\..\..").Path,
30
- [string]$Python = $null,
31
- [int]$Interval = 60,
32
- [switch]$Uninstall
33
- )
34
-
35
- $ErrorActionPreference = 'Stop'
36
- $TaskName = 'ClaudeBackupWatchdog'
37
-
38
- if ($Uninstall) {
39
- if (Get-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue) {
40
- Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false
41
- Write-Host "[uninstall] removed scheduled task $TaskName"
42
- } else {
43
- Write-Host "[uninstall] task $TaskName is not registered; nothing to do"
44
- }
45
- return
46
- }
47
-
48
- # --- Validate inputs ----------------------------------------------------------
49
-
50
- $MirrorScript = Join-Path $RepoPath 'src\backup_mirror.py'
51
- if (-not (Test-Path $MirrorScript)) {
52
- throw "backup_mirror.py not found under $RepoPath. Pass -RepoPath correctly."
53
- }
54
-
55
- if (-not $Python) {
56
- $Python = (Get-Command python -ErrorAction SilentlyContinue).Source
57
- if (-not $Python) {
58
- throw "Python interpreter not found on PATH. Pass -Python <path>."
59
- }
60
- }
61
- if (-not (Test-Path $Python)) {
62
- throw "Python path does not exist: $Python"
63
- }
64
-
65
- if ($Interval -lt 5 -or $Interval -gt 3600) {
66
- throw "Interval must be between 5 and 3600 seconds (got $Interval)."
67
- }
68
-
69
- # --- Build the task ----------------------------------------------------------
70
-
71
- $Arguments = "`"$MirrorScript`" watchdog --interval $Interval"
72
-
73
- $Action = New-ScheduledTaskAction `
74
- -Execute $Python `
75
- -Argument $Arguments `
76
- -WorkingDirectory $RepoPath
77
-
78
- # Run at user logon. The watchdog itself sleeps between polls, so we
79
- # don't need a repetition trigger on top.
80
- $Trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME
81
-
82
- # Settings: allow on battery, restart on failure, no time limit.
83
- $Settings = New-ScheduledTaskSettingsSet `
84
- -AllowStartIfOnBatteries `
85
- -DontStopIfGoingOnBatteries `
86
- -RestartCount 3 `
87
- -RestartInterval (New-TimeSpan -Minutes 1) `
88
- -ExecutionTimeLimit (New-TimeSpan -Days 0) `
89
- -StartWhenAvailable
90
-
91
- $Principal = New-ScheduledTaskPrincipal `
92
- -UserId $env:USERNAME `
93
- -LogonType Interactive `
94
- -RunLevel Limited
95
-
96
- $Description = "Snapshots ~/.claude/ on change. Source: $RepoPath"
97
-
98
- $Task = New-ScheduledTask `
99
- -Action $Action `
100
- -Trigger $Trigger `
101
- -Settings $Settings `
102
- -Principal $Principal `
103
- -Description $Description
104
-
105
- # Replace any previous registration.
106
- if (Get-ScheduledTask -TaskName $TaskName -ErrorAction SilentlyContinue) {
107
- Unregister-ScheduledTask -TaskName $TaskName -Confirm:$false
108
- }
109
- Register-ScheduledTask -TaskName $TaskName -InputObject $Task | Out-Null
110
-
111
- # Kick it off now so the user sees a snapshot folder appear.
112
- Start-ScheduledTask -TaskName $TaskName
113
-
114
- Write-Host "[install] registered scheduled task $TaskName"
115
- Write-Host " python: $Python"
116
- Write-Host " script: $MirrorScript"
117
- Write-Host " interval: ${Interval}s"
118
- Write-Host ""
119
- Write-Host "Inspect: Get-ScheduledTaskInfo -TaskName '$TaskName'"
120
- Write-Host "Remove: pwsh -File '$PSCommandPath' -Uninstall"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docs/skill-quality-install.md CHANGED
@@ -42,7 +42,7 @@ its last run, collects every slug that appeared, and calls
42
  incremental (touched skills only), not a full 2,000-page sweep.
43
 
44
  Edit `~/.claude/settings.json` and add, replacing `<REPO>` with the
45
- absolute path to this checkout (use forward slashes on Windows):
46
 
47
  ```json
48
  {
 
42
  incremental (touched skills only), not a full 2,000-page sweep.
43
 
44
  Edit `~/.claude/settings.json` and add, replacing `<REPO>` with the
45
+ absolute path to this checkout:
46
 
47
  ```json
48
  {
graph/README.md CHANGED
@@ -121,20 +121,6 @@ mkdir -p ~/.claude/skill-wiki
121
  tar xzf graph/wiki-graph.tar.gz -C ~/.claude/skill-wiki/
122
  ```
123
 
124
- On Windows PowerShell, use the built-in `tar.exe` without `--force-local`:
125
-
126
- ```powershell
127
- New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude\skill-wiki"
128
- tar -xzf graph\wiki-graph.tar.gz -C "$env:USERPROFILE\.claude\skill-wiki"
129
- ```
130
-
131
- With Git Bash or MSYS tar, use `--force-local` only when the `-C` target is a
132
- drive-letter path:
133
-
134
- ```bash
135
- tar --force-local xzf graph/wiki-graph.tar.gz -C C:/Users/<you>/.claude/skill-wiki/
136
- ```
137
-
138
  ## Validate
139
 
140
  ```bash
@@ -174,16 +160,6 @@ tar -tzf graph/wiki-graph.tar.gz | grep '\.lock$' && exit 1 || true
174
  tar -tzf graph/wiki-graph.tar.gz | grep '^\./\.ctx/' && exit 1 || true
175
  ```
176
 
177
- Windows PowerShell equivalent for the exclusion checks:
178
-
179
- ```powershell
180
- tar -tzf graph/wiki-graph.tar.gz | Select-String 'SKILL.md.original'
181
- tar -tzf graph/wiki-graph.tar.gz | Select-String '\.lock$'
182
- tar -tzf graph/wiki-graph.tar.gz | Select-String '^\./\.ctx/'
183
- ```
184
-
185
- The PowerShell commands should print nothing.
186
-
187
  ## Rebuild
188
 
189
  After adding or updating skills, agents, MCP servers, or harnesses:
@@ -326,7 +302,7 @@ validation:
326
 
327
  ```bash
328
  cd ~/.claude/skill-wiki
329
- tar --force-local -czf /path/to/ctx/graph/wiki-graph.tar.gz.staged \
330
  --exclude='.trash' \
331
  --exclude='__pycache__' \
332
  --exclude='./raw' \
@@ -342,9 +318,6 @@ cd /path/to/ctx
342
  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)"
343
  ```
344
 
345
- The repack command above is for Git Bash/MSYS. In Linux/macOS shells omit
346
- `--force-local`; in PowerShell use `tar -czf` without `--force-local`.
347
-
348
  Both flows validate candidates before atomic promotion. Queue-driven artifact
349
  promotion accepts only `graph.json`, `graph-delta.json`, `communities.json`,
350
  `graph-report.md`, and `graph-export-manifest.json` under
 
121
  tar xzf graph/wiki-graph.tar.gz -C ~/.claude/skill-wiki/
122
  ```
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  ## Validate
125
 
126
  ```bash
 
160
  tar -tzf graph/wiki-graph.tar.gz | grep '^\./\.ctx/' && exit 1 || true
161
  ```
162
 
 
 
 
 
 
 
 
 
 
 
163
  ## Rebuild
164
 
165
  After adding or updating skills, agents, MCP servers, or harnesses:
 
302
 
303
  ```bash
304
  cd ~/.claude/skill-wiki
305
+ tar -czf /path/to/ctx/graph/wiki-graph.tar.gz.staged \
306
  --exclude='.trash' \
307
  --exclude='__pycache__' \
308
  --exclude='./raw' \
 
318
  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)"
319
  ```
320
 
 
 
 
321
  Both flows validate candidates before atomic promotion. Queue-driven artifact
322
  promotion accepts only `graph.json`, `graph-delta.json`, `communities.json`,
323
  `graph-report.md`, and `graph-export-manifest.json` under
install.ps1 DELETED
@@ -1,42 +0,0 @@
1
- param(
2
- [Parameter(ValueFromRemainingArguments = $true)]
3
- [string[]]$RemainingArgs
4
- )
5
-
6
- $ErrorActionPreference = "Stop"
7
-
8
- $CtxDir = $PSScriptRoot
9
- $ForwardArgs = @()
10
-
11
- if ($RemainingArgs.Count -ge 2 -and $RemainingArgs[0] -eq "--ctx-dir") {
12
- $CtxDir = $RemainingArgs[1]
13
- if ($RemainingArgs.Count -gt 2) {
14
- $ForwardArgs = $RemainingArgs[2..($RemainingArgs.Count - 1)]
15
- }
16
- }
17
- elseif ($RemainingArgs.Count -ge 1 -and -not $RemainingArgs[0].StartsWith("--")) {
18
- $CtxDir = $RemainingArgs[0]
19
- if ($RemainingArgs.Count -gt 1) {
20
- $ForwardArgs = $RemainingArgs[1..($RemainingArgs.Count - 1)]
21
- }
22
- }
23
- else {
24
- $ForwardArgs = $RemainingArgs
25
- }
26
-
27
- $Python = $env:PYTHON
28
- if (-not $Python) {
29
- $Python = "python"
30
- }
31
-
32
- $SrcDir = Join-Path $CtxDir "src"
33
- $Separator = [System.IO.Path]::PathSeparator
34
- if ($env:PYTHONPATH) {
35
- $env:PYTHONPATH = "$SrcDir$Separator$env:PYTHONPATH"
36
- }
37
- else {
38
- $env:PYTHONPATH = $SrcDir
39
- }
40
-
41
- & $Python -m ctx_init @ForwardArgs
42
- exit $LASTEXITCODE