jellycell 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jellycell-1.0.0/.claude/agents/spec-reviewer.md +53 -0
- jellycell-1.0.0/.claude/commands/bump.md +41 -0
- jellycell-1.0.0/.claude/commands/phase-status.md +43 -0
- jellycell-1.0.0/.claude/commands/spec-check.md +57 -0
- jellycell-1.0.0/.claude/launch.json +41 -0
- jellycell-1.0.0/.claude/skills/phase-budget/SKILL.md +50 -0
- jellycell-1.0.0/.claude/skills/piggyback-first/SKILL.md +51 -0
- jellycell-1.0.0/.claude/skills/release-bump/SKILL.md +39 -0
- jellycell-1.0.0/.claude/skills/spec-invariant/SKILL.md +58 -0
- jellycell-1.0.0/.github/ISSUE_TEMPLATE/bug.md +52 -0
- jellycell-1.0.0/.github/ISSUE_TEMPLATE/feature.md +41 -0
- jellycell-1.0.0/.github/pull_request_template.md +61 -0
- jellycell-1.0.0/.github/workflows/ci.yml +102 -0
- jellycell-1.0.0/.github/workflows/release.yml +65 -0
- jellycell-1.0.0/.gitignore +109 -0
- jellycell-1.0.0/.pre-commit-config.yaml +38 -0
- jellycell-1.0.0/.readthedocs.yaml +20 -0
- jellycell-1.0.0/CHANGELOG.md +169 -0
- jellycell-1.0.0/CLAUDE.md +88 -0
- jellycell-1.0.0/CONTRIBUTING.md +95 -0
- jellycell-1.0.0/LICENSE +201 -0
- jellycell-1.0.0/Makefile +57 -0
- jellycell-1.0.0/PKG-INFO +218 -0
- jellycell-1.0.0/README.md +129 -0
- jellycell-1.0.0/docs/agent-guide.md +233 -0
- jellycell-1.0.0/docs/api/index.md +11 -0
- jellycell-1.0.0/docs/cli-reference.md +155 -0
- jellycell-1.0.0/docs/conf.py +98 -0
- jellycell-1.0.0/docs/development/adding-commands.md +59 -0
- jellycell-1.0.0/docs/development/adding-lint-rules.md +75 -0
- jellycell-1.0.0/docs/development/contributing.md +48 -0
- jellycell-1.0.0/docs/development/dev-setup.md +45 -0
- jellycell-1.0.0/docs/development/preview.md +39 -0
- jellycell-1.0.0/docs/development/releasing.md +74 -0
- jellycell-1.0.0/docs/file-format.md +164 -0
- jellycell-1.0.0/docs/getting-started.md +121 -0
- jellycell-1.0.0/docs/index.md +129 -0
- jellycell-1.0.0/docs/project-layout.md +205 -0
- jellycell-1.0.0/docs/reference/architecture.md +156 -0
- jellycell-1.0.0/docs/reference/contracts.md +197 -0
- jellycell-1.0.0/docs/reference/index.md +55 -0
- jellycell-1.0.0/docs/spec/v0.md +548 -0
- jellycell-1.0.0/examples/README.md +88 -0
- jellycell-1.0.0/examples/demo/README.md +67 -0
- jellycell-1.0.0/examples/demo/artifacts/headline.json +3 -0
- jellycell-1.0.0/examples/demo/artifacts/summary.json +6 -0
- jellycell-1.0.0/examples/demo/jellycell.toml +25 -0
- jellycell-1.0.0/examples/demo/manuscripts/README.md +13 -0
- jellycell-1.0.0/examples/demo/manuscripts/analysis.md +40 -0
- jellycell-1.0.0/examples/demo/manuscripts/tearsheets/tour.md +63 -0
- jellycell-1.0.0/examples/demo/notebooks/tour.py +78 -0
- jellycell-1.0.0/examples/demo/site/index.html +685 -0
- jellycell-1.0.0/examples/demo/site/tour.html +882 -0
- jellycell-1.0.0/examples/large-data/.gitignore +9 -0
- jellycell-1.0.0/examples/large-data/README.md +104 -0
- jellycell-1.0.0/examples/large-data/artifacts/large_data/class_balance.png +0 -0
- jellycell-1.0.0/examples/large-data/artifacts/large_data/headline.json +8 -0
- jellycell-1.0.0/examples/large-data/data/seed.json +6 -0
- jellycell-1.0.0/examples/large-data/jellycell.toml +17 -0
- jellycell-1.0.0/examples/large-data/manuscripts/README.md +11 -0
- jellycell-1.0.0/examples/large-data/manuscripts/data-notes.md +65 -0
- jellycell-1.0.0/examples/large-data/manuscripts/tearsheets/large_data.md +48 -0
- jellycell-1.0.0/examples/large-data/notebooks/large_data.py +93 -0
- jellycell-1.0.0/examples/large-data/site/_assets/703820105d88a836.png +0 -0
- jellycell-1.0.0/examples/large-data/site/_assets/7e6da765df8bde96.png +0 -0
- jellycell-1.0.0/examples/large-data/site/index.html +667 -0
- jellycell-1.0.0/examples/large-data/site/large_data.html +792 -0
- jellycell-1.0.0/examples/minimal/README.md +51 -0
- jellycell-1.0.0/examples/minimal/jellycell.toml +25 -0
- jellycell-1.0.0/examples/minimal/manuscripts/README.md +17 -0
- jellycell-1.0.0/examples/minimal/manuscripts/notes.md +32 -0
- jellycell-1.0.0/examples/minimal/notebooks/hello.py +13 -0
- jellycell-1.0.0/examples/ml-experiment/README.md +67 -0
- jellycell-1.0.0/examples/ml-experiment/artifacts/checkpoint.json +45 -0
- jellycell-1.0.0/examples/ml-experiment/artifacts/loss_curve.png +0 -0
- jellycell-1.0.0/examples/ml-experiment/artifacts/metrics.json +9 -0
- jellycell-1.0.0/examples/ml-experiment/jellycell.toml +25 -0
- jellycell-1.0.0/examples/ml-experiment/manuscripts/README.md +14 -0
- jellycell-1.0.0/examples/ml-experiment/manuscripts/model-card.md +67 -0
- jellycell-1.0.0/examples/ml-experiment/manuscripts/tearsheets/train.md +56 -0
- jellycell-1.0.0/examples/ml-experiment/notebooks/train.py +95 -0
- jellycell-1.0.0/examples/ml-experiment/site/_assets/e4b789e0db96c497.png +0 -0
- jellycell-1.0.0/examples/ml-experiment/site/index.html +685 -0
- jellycell-1.0.0/examples/ml-experiment/site/train.html +841 -0
- jellycell-1.0.0/examples/paper/README.md +70 -0
- jellycell-1.0.0/examples/paper/artifacts/country_totals.png +0 -0
- jellycell-1.0.0/examples/paper/artifacts/summary.json +12 -0
- jellycell-1.0.0/examples/paper/artifacts/totals.json +6 -0
- jellycell-1.0.0/examples/paper/artifacts/yoy_change.png +0 -0
- jellycell-1.0.0/examples/paper/data/sample.csv +9 -0
- jellycell-1.0.0/examples/paper/jellycell.toml +25 -0
- jellycell-1.0.0/examples/paper/manuscripts/README.md +16 -0
- jellycell-1.0.0/examples/paper/manuscripts/journal.md +59 -0
- jellycell-1.0.0/examples/paper/manuscripts/paper.md +54 -0
- jellycell-1.0.0/examples/paper/manuscripts/tearsheets/analysis.md +53 -0
- jellycell-1.0.0/examples/paper/notebooks/analysis.py +118 -0
- jellycell-1.0.0/examples/paper/site/_assets/446b37cd9e012abe.png +0 -0
- jellycell-1.0.0/examples/paper/site/_assets/91f922ce79febe15.png +0 -0
- jellycell-1.0.0/examples/paper/site/analysis.html +878 -0
- jellycell-1.0.0/examples/paper/site/index.html +685 -0
- jellycell-1.0.0/examples/timeseries/README.md +71 -0
- jellycell-1.0.0/examples/timeseries/artifacts/daily.parquet +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/decomposed.parquet +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/decomposition.png +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/forecast.parquet +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/forecast_plot.png +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/raw_plot.png +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/report.json +17 -0
- jellycell-1.0.0/examples/timeseries/artifacts/residuals.png +0 -0
- jellycell-1.0.0/examples/timeseries/artifacts/summary.json +9 -0
- jellycell-1.0.0/examples/timeseries/artifacts/weekday_profile.png +0 -0
- jellycell-1.0.0/examples/timeseries/jellycell.toml +25 -0
- jellycell-1.0.0/examples/timeseries/manuscripts/README.md +52 -0
- jellycell-1.0.0/examples/timeseries/manuscripts/findings.md +78 -0
- jellycell-1.0.0/examples/timeseries/manuscripts/tearsheets/01-explore.md +33 -0
- jellycell-1.0.0/examples/timeseries/manuscripts/tearsheets/02-decompose.md +19 -0
- jellycell-1.0.0/examples/timeseries/manuscripts/tearsheets/03-forecast.md +32 -0
- jellycell-1.0.0/examples/timeseries/notebooks/01-explore.py +91 -0
- jellycell-1.0.0/examples/timeseries/notebooks/02-decompose.py +75 -0
- jellycell-1.0.0/examples/timeseries/notebooks/03-forecast.py +123 -0
- jellycell-1.0.0/examples/timeseries/site/01-explore.html +882 -0
- jellycell-1.0.0/examples/timeseries/site/02-decompose.html +853 -0
- jellycell-1.0.0/examples/timeseries/site/03-forecast.html +909 -0
- jellycell-1.0.0/examples/timeseries/site/_assets/63499a094d6fbf6d.png +0 -0
- jellycell-1.0.0/examples/timeseries/site/_assets/636f07e5cdeca436.png +0 -0
- jellycell-1.0.0/examples/timeseries/site/_assets/9f188546629b6143.png +0 -0
- jellycell-1.0.0/examples/timeseries/site/_assets/aca4d3a330bff337.png +0 -0
- jellycell-1.0.0/examples/timeseries/site/_assets/eda42c77efd939d2.png +0 -0
- jellycell-1.0.0/examples/timeseries/site/index.html +807 -0
- jellycell-1.0.0/jellycell.toml.example +104 -0
- jellycell-1.0.0/pyproject.toml +159 -0
- jellycell-1.0.0/scripts/preview.sh +20 -0
- jellycell-1.0.0/src/jellycell/__init__.py +8 -0
- jellycell-1.0.0/src/jellycell/__main__.py +14 -0
- jellycell-1.0.0/src/jellycell/_version.py +29 -0
- jellycell-1.0.0/src/jellycell/api.py +375 -0
- jellycell-1.0.0/src/jellycell/cache/__init__.py +28 -0
- jellycell-1.0.0/src/jellycell/cache/function_cache.py +130 -0
- jellycell-1.0.0/src/jellycell/cache/hashing.py +93 -0
- jellycell-1.0.0/src/jellycell/cache/index.py +194 -0
- jellycell-1.0.0/src/jellycell/cache/manifest.py +144 -0
- jellycell-1.0.0/src/jellycell/cache/store.py +101 -0
- jellycell-1.0.0/src/jellycell/cli/__init__.py +0 -0
- jellycell-1.0.0/src/jellycell/cli/app.py +90 -0
- jellycell-1.0.0/src/jellycell/cli/commands/__init__.py +0 -0
- jellycell-1.0.0/src/jellycell/cli/commands/cache.py +296 -0
- jellycell-1.0.0/src/jellycell/cli/commands/checkpoint.py +403 -0
- jellycell-1.0.0/src/jellycell/cli/commands/export.py +173 -0
- jellycell-1.0.0/src/jellycell/cli/commands/init.py +71 -0
- jellycell-1.0.0/src/jellycell/cli/commands/lint.py +115 -0
- jellycell-1.0.0/src/jellycell/cli/commands/new.py +82 -0
- jellycell-1.0.0/src/jellycell/cli/commands/prompt.py +35 -0
- jellycell-1.0.0/src/jellycell/cli/commands/render.py +109 -0
- jellycell-1.0.0/src/jellycell/cli/commands/run.py +133 -0
- jellycell-1.0.0/src/jellycell/cli/commands/view.py +80 -0
- jellycell-1.0.0/src/jellycell/cli/journal.py +159 -0
- jellycell-1.0.0/src/jellycell/config.py +170 -0
- jellycell-1.0.0/src/jellycell/export/__init__.py +20 -0
- jellycell-1.0.0/src/jellycell/export/ipynb.py +132 -0
- jellycell-1.0.0/src/jellycell/export/myst.py +112 -0
- jellycell-1.0.0/src/jellycell/export/tearsheet.py +327 -0
- jellycell-1.0.0/src/jellycell/format/__init__.py +24 -0
- jellycell-1.0.0/src/jellycell/format/cells.py +77 -0
- jellycell-1.0.0/src/jellycell/format/parse.py +106 -0
- jellycell-1.0.0/src/jellycell/format/pep723.py +121 -0
- jellycell-1.0.0/src/jellycell/format/static_deps.py +97 -0
- jellycell-1.0.0/src/jellycell/format/tags.py +95 -0
- jellycell-1.0.0/src/jellycell/lint/__init__.py +13 -0
- jellycell-1.0.0/src/jellycell/lint/rules.py +374 -0
- jellycell-1.0.0/src/jellycell/paths.py +168 -0
- jellycell-1.0.0/src/jellycell/py.typed +0 -0
- jellycell-1.0.0/src/jellycell/render/__init__.py +11 -0
- jellycell-1.0.0/src/jellycell/render/manuscript.py +218 -0
- jellycell-1.0.0/src/jellycell/render/markdown.py +31 -0
- jellycell-1.0.0/src/jellycell/render/outputs.py +113 -0
- jellycell-1.0.0/src/jellycell/render/renderer.py +462 -0
- jellycell-1.0.0/src/jellycell/render/templates/index.html.j2 +129 -0
- jellycell-1.0.0/src/jellycell/render/templates/manuscript.html.j2 +104 -0
- jellycell-1.0.0/src/jellycell/render/templates/manuscripts_index.html.j2 +98 -0
- jellycell-1.0.0/src/jellycell/render/templates/page.html.j2 +85 -0
- jellycell-1.0.0/src/jellycell/render/templates/partials/cell.html.j2 +43 -0
- jellycell-1.0.0/src/jellycell/render/templates/partials/script.js.j2 +50 -0
- jellycell-1.0.0/src/jellycell/render/templates/partials/styles.css.j2 +403 -0
- jellycell-1.0.0/src/jellycell/run/__init__.py +8 -0
- jellycell-1.0.0/src/jellycell/run/capture.py +53 -0
- jellycell-1.0.0/src/jellycell/run/context.py +57 -0
- jellycell-1.0.0/src/jellycell/run/env_hash.py +68 -0
- jellycell-1.0.0/src/jellycell/run/kernel.py +114 -0
- jellycell-1.0.0/src/jellycell/run/pool.py +87 -0
- jellycell-1.0.0/src/jellycell/run/runner.py +525 -0
- jellycell-1.0.0/src/jellycell/server/__init__.py +21 -0
- jellycell-1.0.0/src/jellycell/server/app.py +338 -0
- jellycell-1.0.0/src/jellycell/server/sse.py +71 -0
- jellycell-1.0.0/src/jellycell/server/watch.py +72 -0
- jellycell-1.0.0/tests/__init__.py +0 -0
- jellycell-1.0.0/tests/conftest.py +42 -0
- jellycell-1.0.0/tests/examples/__init__.py +0 -0
- jellycell-1.0.0/tests/examples/test_examples_run.py +80 -0
- jellycell-1.0.0/tests/fixtures/README.md +11 -0
- jellycell-1.0.0/tests/fixtures/sample_notebook.py +20 -0
- jellycell-1.0.0/tests/fixtures/sample_project/jellycell.toml +25 -0
- jellycell-1.0.0/tests/integration/__init__.py +0 -0
- jellycell-1.0.0/tests/integration/test_api_in_run.py +68 -0
- jellycell-1.0.0/tests/integration/test_artifact_layout.py +170 -0
- jellycell-1.0.0/tests/integration/test_artifact_metadata.py +142 -0
- jellycell-1.0.0/tests/integration/test_checkpoint.py +224 -0
- jellycell-1.0.0/tests/integration/test_cli_prompt_and_new.py +65 -0
- jellycell-1.0.0/tests/integration/test_export_ipynb.py +148 -0
- jellycell-1.0.0/tests/integration/test_export_md.py +87 -0
- jellycell-1.0.0/tests/integration/test_export_roundtrip.py +67 -0
- jellycell-1.0.0/tests/integration/test_export_tearsheet.py +138 -0
- jellycell-1.0.0/tests/integration/test_init.py +127 -0
- jellycell-1.0.0/tests/integration/test_journal.py +132 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/cache_list.yml +4 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/cache_prune.yml +6 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/cache_rebuild.yml +3 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/init.yml +5 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/lint.yml +7 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/new.yml +3 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/render.yml +8 -0
- jellycell-1.0.0/tests/integration/test_json_schemas/run_report.yml +13 -0
- jellycell-1.0.0/tests/integration/test_json_schemas.py +147 -0
- jellycell-1.0.0/tests/integration/test_kernel_pool.py +92 -0
- jellycell-1.0.0/tests/integration/test_kernel_timeout.py +32 -0
- jellycell-1.0.0/tests/integration/test_render_index.py +73 -0
- jellycell-1.0.0/tests/integration/test_render_page.py +87 -0
- jellycell-1.0.0/tests/integration/test_render_parity.py +93 -0
- jellycell-1.0.0/tests/integration/test_render_standalone.py +102 -0
- jellycell-1.0.0/tests/integration/test_run_basic.py +97 -0
- jellycell-1.0.0/tests/integration/test_run_cached.py +70 -0
- jellycell-1.0.0/tests/integration/test_run_invalidation.py +74 -0
- jellycell-1.0.0/tests/integration/test_server_html_shape.py +243 -0
- jellycell-1.0.0/tests/integration/test_server_manuscripts.py +245 -0
- jellycell-1.0.0/tests/integration/test_server_no_disk_writes.py +196 -0
- jellycell-1.0.0/tests/integration/test_server_routes.py +89 -0
- jellycell-1.0.0/tests/integration/test_server_sse.py +75 -0
- jellycell-1.0.0/tests/integration/test_server_sse_e2e.py +88 -0
- jellycell-1.0.0/tests/test_smoke.py +22 -0
- jellycell-1.0.0/tests/unit/__init__.py +0 -0
- jellycell-1.0.0/tests/unit/test_api_standalone.py +79 -0
- jellycell-1.0.0/tests/unit/test_config.py +121 -0
- jellycell-1.0.0/tests/unit/test_format_parse.py +122 -0
- jellycell-1.0.0/tests/unit/test_format_tags.py +90 -0
- jellycell-1.0.0/tests/unit/test_function_cache.py +132 -0
- jellycell-1.0.0/tests/unit/test_hashing/test_key_snapshot.yml +5 -0
- jellycell-1.0.0/tests/unit/test_hashing/test_normalize_snapshot.yml +15 -0
- jellycell-1.0.0/tests/unit/test_hashing.py +142 -0
- jellycell-1.0.0/tests/unit/test_index.py +168 -0
- jellycell-1.0.0/tests/unit/test_lint_rules.py +165 -0
- jellycell-1.0.0/tests/unit/test_manifest.py +125 -0
- jellycell-1.0.0/tests/unit/test_paths.py +79 -0
- jellycell-1.0.0/tests/unit/test_pep723.py +185 -0
- jellycell-1.0.0/tests/unit/test_pep723_overrides.py +89 -0
- jellycell-1.0.0/tests/unit/test_prompt_snapshot/test_prompt_snapshot.yml +8 -0
- jellycell-1.0.0/tests/unit/test_prompt_snapshot.py +39 -0
- jellycell-1.0.0/tests/unit/test_static_deps.py +54 -0
- jellycell-1.0.0/tests/unit/test_store.py +86 -0
- jellycell-1.0.0/tests/unit/test_tearsheet.py +390 -0
- jellycell-1.0.0/uv.lock +3791 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-reviewer
|
|
3
|
+
description: Review a diff against jellycell spec §10 invariants. Read-only; reports deviations without fixing them. Use when preparing a PR that touches cache/hashing.py, cli/commands/prompt.py, _version.py, or any pydantic model with a schema_version field.
|
|
4
|
+
tools: Glob, Grep, Read, Bash
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are the jellycell spec reviewer. Your job is to read the current working-tree diff and report any violations of the three cross-cutting contracts in `docs/reference/contracts.md`.
|
|
9
|
+
|
|
10
|
+
## The three invariants
|
|
11
|
+
|
|
12
|
+
1. **`--json` output schemas** (§10.1) — every command's JSON output has `schema_version`. Renames/removals/type changes break the contract; additive fields are safe.
|
|
13
|
+
2. **Cache key algorithm** (§10.2) — any change to `src/jellycell/cache/hashing.py` requires bumping `MINOR_VERSION` in `src/jellycell/_version.py` + major bump.
|
|
14
|
+
3. **Agent guide content** (§10.3) — `src/jellycell/cli/commands/prompt.py` and `docs/agent-guide.md` classified as typo (patch) / additive (minor) / breaking (major).
|
|
15
|
+
|
|
16
|
+
## Your process
|
|
17
|
+
|
|
18
|
+
1. **Ground yourself**: read `docs/reference/contracts.md` and `CLAUDE.md`.
|
|
19
|
+
2. **Inspect the diff**: `git diff`, `git diff --staged`, `git log --oneline -5`.
|
|
20
|
+
3. **For each invariant**, determine:
|
|
21
|
+
- Is it touched?
|
|
22
|
+
- If yes: was the required ceremony followed?
|
|
23
|
+
4. **Report**: one paragraph per invariant. Terse. File:line citations.
|
|
24
|
+
|
|
25
|
+
## Report format
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
SPEC REVIEW — <branch name>
|
|
29
|
+
|
|
30
|
+
Invariant 1 (--json schemas): [clean | VIOLATED]
|
|
31
|
+
<one-line explanation with file:line pointers if violated>
|
|
32
|
+
|
|
33
|
+
Invariant 2 (cache key): [clean | VIOLATED]
|
|
34
|
+
<one-line explanation>
|
|
35
|
+
|
|
36
|
+
Invariant 3 (agent guide): [clean | VIOLATED]
|
|
37
|
+
<one-line explanation>
|
|
38
|
+
|
|
39
|
+
Verdict: [merge safe | needs ceremony]
|
|
40
|
+
Missing ceremony (if any):
|
|
41
|
+
- <specific action needed>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Rules
|
|
45
|
+
|
|
46
|
+
- **Read-only.** Do not edit files, do not run format/lint/test. Report only.
|
|
47
|
+
- **Cite sections** in your explanations (e.g., "§10.2" — linked to `docs/reference/contracts.md`).
|
|
48
|
+
- **Be terse.** This runs often; keep it short.
|
|
49
|
+
- **If no invariant is touched**, say `no invariants touched; merge safe` and stop.
|
|
50
|
+
|
|
51
|
+
## Escalation
|
|
52
|
+
|
|
53
|
+
If you find something ambiguous that `docs/reference/contracts.md` doesn't clearly cover, flag it under `Verdict:` with a "clarification needed" note. Do not invent rules.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Bump the jellycell version for the change currently on this branch. Defaults to patch; argument overrides to `minor` or `major`.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Bump the jellycell version and move `[Unreleased]` changelog entries under the new heading. Use the argument (`patch`, `minor`, or `major`) or default to `patch`.
|
|
6
|
+
|
|
7
|
+
Argument (optional): `$ARGUMENTS`
|
|
8
|
+
|
|
9
|
+
## Steps
|
|
10
|
+
|
|
11
|
+
1. **Decide the level.** If the user passed `minor` or `major`, use it. Otherwise default to `patch` and tell the user what you chose. Consult `docs/development/releasing.md` for the decision rule if uncertain — but err toward patch.
|
|
12
|
+
|
|
13
|
+
2. **Read current `__version__`** in `src/jellycell/_version.py`.
|
|
14
|
+
|
|
15
|
+
3. **Compute the new version**:
|
|
16
|
+
- patch: `MAJOR.MINOR.PATCH+1`
|
|
17
|
+
- minor: `MAJOR.MINOR+1.0`
|
|
18
|
+
- major: `MAJOR+1.0.0`
|
|
19
|
+
|
|
20
|
+
4. **Confirm contract ceremonies if major**:
|
|
21
|
+
- If the cache-key algorithm changed (`cache/hashing.py` diff), bump `MINOR_VERSION` too and regenerate `tests/unit/test_hashing.py` snapshot (`uv run pytest tests/unit/test_hashing.py --force-regen`). Add a dated line in `_version.py` docstring.
|
|
22
|
+
- If the `--json` schema changed in a breaking way, increment `schema_version` in the owning pydantic model and regenerate `tests/integration/test_json_schemas.py` snapshots.
|
|
23
|
+
- If the agent guide content changed, regenerate `tests/unit/test_prompt_snapshot.py` snapshot.
|
|
24
|
+
|
|
25
|
+
5. **Edit `src/jellycell/_version.py`** to the new version string.
|
|
26
|
+
|
|
27
|
+
6. **Edit `CHANGELOG.md`**: move everything currently under `[Unreleased]` under a new `## [NEW_VERSION] — YYYY-MM-DD` heading. If `[Unreleased]` is empty, add a one-line entry describing the change on this branch. Update the comparison links at the bottom of the file.
|
|
28
|
+
|
|
29
|
+
7. **Run the pre-release checks**: `make lint && make test && make docs-build`. If anything fails, STOP and report. Do not commit a bump with red checks.
|
|
30
|
+
|
|
31
|
+
8. **Report** to the user:
|
|
32
|
+
- The new version string
|
|
33
|
+
- The level chosen and why
|
|
34
|
+
- The checks run
|
|
35
|
+
- Whether a tag push is the next step (or if they want to add more to the PR first)
|
|
36
|
+
|
|
37
|
+
## Do not
|
|
38
|
+
|
|
39
|
+
- Do not tag or push. The user tags after merge to `main`.
|
|
40
|
+
- Do not re-enter the §10 ceremony if the diff doesn't warrant it — a patch that touched zero contract files needs no snapshot regen.
|
|
41
|
+
- Do not split the bump into a separate commit unless the user asked; prefer including it with the change on the branch.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Report src file counts per phase against spec §8 budgets.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Count source files under `src/jellycell/` organized by phase, compare against the budgets in `docs/spec/v0.md` §8, and report status.
|
|
6
|
+
|
|
7
|
+
## Steps
|
|
8
|
+
|
|
9
|
+
1. Enumerate files:
|
|
10
|
+
- Phase 0 files (root): `src/jellycell/__init__.py`, `__main__.py`, `_version.py` — budget **3** src files (15 total repo-wide).
|
|
11
|
+
- Phase 1 files: `src/jellycell/config.py`, `src/jellycell/paths.py`, `src/jellycell/format/**`, `src/jellycell/lint/**`, `src/jellycell/cli/__init__.py`, `src/jellycell/cli/app.py`, `src/jellycell/cli/commands/{__init__,init,lint}.py` — budget **13** src files.
|
|
12
|
+
- Phase 2 files: `src/jellycell/api.py`, `src/jellycell/cache/**`, `src/jellycell/run/**`, `src/jellycell/cli/commands/{run,cache}.py` — budget **13** src files.
|
|
13
|
+
- Phase 3 files: `src/jellycell/render/**`, `src/jellycell/cli/commands/render.py` — budget **10** src files.
|
|
14
|
+
- Phase 4 files: `src/jellycell/server/**`, `src/jellycell/cli/commands/view.py` — budget **4** src files.
|
|
15
|
+
- Phase 5 files: `src/jellycell/export/**`, `src/jellycell/cli/commands/export.py` — budget **3** src files.
|
|
16
|
+
- Phase 6 files: `src/jellycell/cli/commands/{prompt,new}.py` — budget **2** new src files (plus doc/example modifications).
|
|
17
|
+
|
|
18
|
+
Use `git ls-files 'src/jellycell/**/*.py'` for accuracy (don't count cached `.pyc`).
|
|
19
|
+
|
|
20
|
+
2. For each phase, compute: present / budget / status (✅ within, ⚠️ at budget, ❌ over).
|
|
21
|
+
|
|
22
|
+
3. Also count tests per phase at the `tests/` level and tag unreleased commits since the last tagged release.
|
|
23
|
+
|
|
24
|
+
## Output
|
|
25
|
+
|
|
26
|
+
Print a table:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
PHASE STATUS (against docs/spec/v0.md §8)
|
|
30
|
+
|
|
31
|
+
Phase | src present | budget | status
|
|
32
|
+
------|-------------|--------|-------
|
|
33
|
+
0 | 3 | 3 | ✅
|
|
34
|
+
1 | 14 | 13 | ⚠️ (+1)
|
|
35
|
+
2 | 16 | 13 | ❌ (+3)
|
|
36
|
+
...
|
|
37
|
+
|
|
38
|
+
Unreleased commits since v1.0.0: N
|
|
39
|
+
Current branch: main
|
|
40
|
+
Last tag: v1.0.0
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If any phase is over budget, flag it prominently and remind: **"Over budget = scope-creep signal. Cut back; do not raise the ceiling."**
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Review current diff against jellycell §10 invariants.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Run a focused review of the current working-tree diff against the three cross-cutting contracts in `docs/reference/contracts.md`.
|
|
6
|
+
|
|
7
|
+
## Steps
|
|
8
|
+
|
|
9
|
+
1. Read `docs/reference/contracts.md` for the authoritative contract definitions + the ceremony each change requires.
|
|
10
|
+
2. Run `git diff` and `git diff --staged` to see what changed.
|
|
11
|
+
3. For each of the three invariants, check whether the diff touches it:
|
|
12
|
+
|
|
13
|
+
### Invariant 1 — `--json` schemas (§10.1)
|
|
14
|
+
|
|
15
|
+
Files that matter: any pydantic model with a `schema_version` field, especially in:
|
|
16
|
+
- `src/jellycell/cli/commands/*.py` (command report models)
|
|
17
|
+
- `src/jellycell/cache/manifest.py`
|
|
18
|
+
- `src/jellycell/run/runner.py` (RunReport)
|
|
19
|
+
|
|
20
|
+
Ask: did a field get added/removed/renamed? Was `schema_version` bumped?
|
|
21
|
+
|
|
22
|
+
### Invariant 2 — Cache key algorithm (§10.2)
|
|
23
|
+
|
|
24
|
+
Files that matter:
|
|
25
|
+
- `src/jellycell/cache/hashing.py` — the algorithm itself
|
|
26
|
+
- `src/jellycell/_version.py` — where `MINOR_VERSION` lives
|
|
27
|
+
- `tests/unit/test_hashing.py` — the regression snapshot
|
|
28
|
+
|
|
29
|
+
Ask:
|
|
30
|
+
- Did `cache/hashing.py` change at all? If so, was `MINOR_VERSION` bumped in `_version.py`?
|
|
31
|
+
- Was the regression snapshot in `tests/unit/test_hashing.py` regenerated intentionally (and noted in CHANGELOG)?
|
|
32
|
+
|
|
33
|
+
### Invariant 3 — Agent guide content (§10.3)
|
|
34
|
+
|
|
35
|
+
Files that matter:
|
|
36
|
+
- `src/jellycell/cli/commands/prompt.py`
|
|
37
|
+
- `docs/agent-guide.md`
|
|
38
|
+
|
|
39
|
+
Ask: did either change? If so, is this a minor-version bump release (not a patch)? Is there a CHANGELOG note?
|
|
40
|
+
|
|
41
|
+
## Output
|
|
42
|
+
|
|
43
|
+
Report format:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
SPEC CHECK
|
|
47
|
+
|
|
48
|
+
Invariant 1 (--json schemas): [clean | VIOLATED: <details>]
|
|
49
|
+
Invariant 2 (cache key): [clean | VIOLATED: <details>]
|
|
50
|
+
Invariant 3 (agent guide): [clean | VIOLATED: <details>]
|
|
51
|
+
|
|
52
|
+
Recommendation: [merge safe | needs ceremony first]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
If any invariant is touched without the required ceremony, list the specific ceremony missing with file:line pointers. Reference `docs/reference/contracts.md` in the explanation.
|
|
56
|
+
|
|
57
|
+
If nothing in the diff touches any invariant, say so plainly in one line.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.0.1",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"name": "jellycell-view",
|
|
6
|
+
"runtimeExecutable": "uv",
|
|
7
|
+
"runtimeArgs": ["run", "jellycell", "view", "examples/demo"],
|
|
8
|
+
"port": 5179
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "jellycell-timeseries",
|
|
12
|
+
"runtimeExecutable": "uv",
|
|
13
|
+
"runtimeArgs": ["run", "jellycell", "view", "examples/timeseries", "--port", "5183"],
|
|
14
|
+
"port": 5183
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "jellycell-paper",
|
|
18
|
+
"runtimeExecutable": "uv",
|
|
19
|
+
"runtimeArgs": ["run", "jellycell", "view", "examples/paper", "--port", "5185"],
|
|
20
|
+
"port": 5185
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "docs-preview",
|
|
24
|
+
"runtimeExecutable": "uv",
|
|
25
|
+
"runtimeArgs": [
|
|
26
|
+
"run",
|
|
27
|
+
"sphinx-autobuild",
|
|
28
|
+
"-a",
|
|
29
|
+
"--watch",
|
|
30
|
+
"src",
|
|
31
|
+
"docs",
|
|
32
|
+
"docs/_build/html",
|
|
33
|
+
"--host",
|
|
34
|
+
"127.0.0.1",
|
|
35
|
+
"--port",
|
|
36
|
+
"5190"
|
|
37
|
+
],
|
|
38
|
+
"port": 5190
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: phase-budget
|
|
3
|
+
description: Check against spec §8 phase file-count budgets before creating new files under src/jellycell/ or tests/. Prevents scope creep by treating drift as a cut-scope signal, not a raise-ceiling signal.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Each phase in `docs/spec/v0.md` §8 has a soft file-count budget per area of the codebase. Significant drift is a **scope-creep signal** — cut features or defer them, don't raise the ceiling.
|
|
7
|
+
|
|
8
|
+
## How to check
|
|
9
|
+
|
|
10
|
+
**First: run `/phase-status`.** That slash command counts `git ls-files 'src/jellycell/**/*.py'` grouped by phase and reports drift. It is the authoritative source. The table below is a reference snapshot.
|
|
11
|
+
|
|
12
|
+
## Snapshot as of v1.0.0 (April 2026)
|
|
13
|
+
|
|
14
|
+
| Phase | src .py | Budget | Drift | Notes |
|
|
15
|
+
| ----- | ------: | -----: | ----: | ----------------------------------------------------- |
|
|
16
|
+
| 0 | 3 | 3 | = | `__init__`, `__main__`, `_version` |
|
|
17
|
+
| 1 | 14 | 13 | +1 | `cli/commands/__init__.py` counted (spec didn't) |
|
|
18
|
+
| 2 | 16 | 13 | +3 | Added `run/pool.py`, `run/env_hash.py`, `cache/function_cache.py` |
|
|
19
|
+
| 3 | 5 | 10 | −5 | Templates/static live as subdir, not counted as .py |
|
|
20
|
+
| 4 | 5 | 4 | +1 | `cli/commands/view.py` counted |
|
|
21
|
+
| 5 | 4 | 3 | +1 | `cli/commands/export.py` counted |
|
|
22
|
+
| 6 | 3 | 2 | +1 | `format/static_deps.py` landed with agent-surface work|
|
|
23
|
+
|
|
24
|
+
Total: **~50 src .py files** (spec target was ~45 across all phases).
|
|
25
|
+
|
|
26
|
+
## When to use this skill
|
|
27
|
+
|
|
28
|
+
- About to create a new `src/jellycell/<phase-dir>/*.py`.
|
|
29
|
+
- About to create a new test under `tests/unit/` or `tests/integration/`.
|
|
30
|
+
- Reviewing a PR that adds multiple files.
|
|
31
|
+
|
|
32
|
+
## Decision rule
|
|
33
|
+
|
|
34
|
+
1. **First run `/phase-status`** — get the real count.
|
|
35
|
+
2. If drift ≤ +2: probably fine. Commit message should explain why the new file is necessary.
|
|
36
|
+
3. If drift > +2 or phase chronically over: STOP. Ask:
|
|
37
|
+
- Is this genuinely within this phase's area, or has scope crept?
|
|
38
|
+
- Could it go in a follow-up release?
|
|
39
|
+
- Can existing files absorb the change instead of adding a new one?
|
|
40
|
+
4. Updating the table above is a **manual** step — do it as part of a patch release when counts drift, not as a drive-by edit.
|
|
41
|
+
|
|
42
|
+
## Anti-pattern
|
|
43
|
+
|
|
44
|
+
Do not interpret "the budget was close to exceeded so I expanded it" as a reasonable outcome. The phases were sized deliberately. Growth is a signal to cut.
|
|
45
|
+
|
|
46
|
+
## Reference
|
|
47
|
+
|
|
48
|
+
- `docs/spec/v0.md` §8 — the original phase descriptions + file-count budgets (frozen historical snapshot; numbers still used as scope-creep ceilings today).
|
|
49
|
+
- `docs/spec/v0.md` §9 — "Total scope" principle.
|
|
50
|
+
- `/phase-status` — live count command (always preferred over this table).
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: piggyback-first
|
|
3
|
+
description: Check the piggyback map in docs/reference/architecture.md before writing parsing, caching, rendering, file-watching, templating, or HTML-conversion code for jellycell. Also use when adding a new dependency to pyproject.toml. Prevents reimplementing what well-maintained libraries already do.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The entire point of jellycell is the **composition** of mature libraries, not reinventing them. Before writing code, ask: **is this job already done by one of our dependencies?**
|
|
7
|
+
|
|
8
|
+
## The piggyback map (reference/architecture)
|
|
9
|
+
|
|
10
|
+
| Task | We use | What we own |
|
|
11
|
+
| --------------------------------- | ------------------------------------------------------ | -------------------------------------------------- |
|
|
12
|
+
| Parse `.py` / `.md` notebooks | `jupytext` | Tag vocabulary, PEP-723 extraction, dep graph |
|
|
13
|
+
| In-memory notebook IR | `nbformat.NotebookNode` for I/O | Our pydantic `Notebook`/`Cell` for logic |
|
|
14
|
+
| Kernel subprocess | `jupyter-client` (`KernelManager`, `BlockingKernelClient`) | Per-cell orchestration, timeouts, streaming |
|
|
15
|
+
| Output capture | Jupyter message protocol (via jupyter-client) | Writing mime bundles to the cache |
|
|
16
|
+
| Cache blob store | `diskcache` | Key derivation, manifest format, SQLite index |
|
|
17
|
+
| Mime bundle → safe HTML | `nbconvert` output helpers (NOT full HTMLExporter) | The page shell, navigation, artifact links |
|
|
18
|
+
| Markdown rendering | `markdown-it-py` + MyST plugins | Tag-aware preprocessing |
|
|
19
|
+
| Templating | `jinja2` | The templates themselves |
|
|
20
|
+
| File watching | `watchfiles` | Debouncing, mapping file → notebook → clients |
|
|
21
|
+
| Live-reload transport | `sse-starlette` | Event schema, client reconnect story |
|
|
22
|
+
| ASGI server | `starlette` + `uvicorn` | Routes |
|
|
23
|
+
| CLI framework | `typer` | Command shape, `--json` contract |
|
|
24
|
+
| Config validation | `pydantic` + `tomllib` / `tomli-w` | Schemas |
|
|
25
|
+
| ipynb round-trip | `nbformat` (write) + our cache (reattach outputs) | Conversion logic |
|
|
26
|
+
|
|
27
|
+
## Two anti-piggybacks (deliberately not used)
|
|
28
|
+
|
|
29
|
+
- **jupyter-cache** — caches whole notebooks; we need per-cell keying with explicit deps. Thin cache over `diskcache` is smaller than bending jupyter-cache.
|
|
30
|
+
- **full `nbconvert.HTMLExporter`** — has its own template system assuming notebook-as-document. We want project-wide catalogue. Use `nbconvert`'s output transformers, write the shell ourselves.
|
|
31
|
+
|
|
32
|
+
## Use this skill by asking
|
|
33
|
+
|
|
34
|
+
1. **What job am I about to do?** (e.g., "parse PEP-723 block", "watch a directory for changes")
|
|
35
|
+
2. **Is it in the piggyback map above?** Check column 1.
|
|
36
|
+
3. **If yes**: use the named lib. Our value-add is in column 3 (what we own), not column 2.
|
|
37
|
+
4. **If no**: proceed, but sanity-check — is there a widely-used lib you're not seeing? `WebSearch` for `"python <job> library"` if unsure.
|
|
38
|
+
|
|
39
|
+
## When adding a new dependency
|
|
40
|
+
|
|
41
|
+
Before running `uv add foo`:
|
|
42
|
+
|
|
43
|
+
1. Read pyproject.toml — is something similar already in our dep tree?
|
|
44
|
+
2. Check the piggyback map — are we supposed to use an existing dep for this?
|
|
45
|
+
3. If truly new: add with a version floor (`foo>=N.M`), add a comment explaining why, and update the piggyback map in `docs/reference/architecture.md` if it's a load-bearing dep.
|
|
46
|
+
|
|
47
|
+
## Reference
|
|
48
|
+
|
|
49
|
+
- `docs/reference/architecture.md` — living authoritative piggyback map + 8-layer dependency order.
|
|
50
|
+
- `CLAUDE.md` — the "Piggyback reminders" section for quick lookup.
|
|
51
|
+
- `docs/spec/v0.md` §1 — frozen genesis map (historical).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: release-bump
|
|
3
|
+
description: Use when finishing a user-visible change in jellycell to determine whether a version bump is warranted and what level (patch / minor / major). Reminds the agent of the project's lean-into-small-releases policy so changes don't accumulate in an unreleased pile.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
jellycell prefers **frequent small releases** over accumulated feature batches. If a change is worth merging, it is worth a version bump. The policy lives in `docs/development/releasing.md` — this skill is the short reminder.
|
|
7
|
+
|
|
8
|
+
## When to invoke
|
|
9
|
+
|
|
10
|
+
After wrapping up any user-visible change (a bug fix, a new flag, a doc clarification) and before moving on — ask: does this warrant a bump? If yes, prepare the change as part of the same PR.
|
|
11
|
+
|
|
12
|
+
Do not skip the bump for "it's small." Patch bumps are the default; small is the point.
|
|
13
|
+
|
|
14
|
+
## Decision rule
|
|
15
|
+
|
|
16
|
+
1. Did the change touch one of the three §10 contracts in a way the `spec-invariant` skill considers breaking? → **major**.
|
|
17
|
+
2. Is the change a user-visible addition (new CLI flag, new `jc.*` function, new config key, new lint rule, new `--json` field that is optional/additive)? → **minor**.
|
|
18
|
+
3. Everything else (bug fixes, refactors, docs, tests, examples, CI, deps with no behavior change) → **patch**.
|
|
19
|
+
|
|
20
|
+
If in doubt, **patch**. Patch releases are cheap.
|
|
21
|
+
|
|
22
|
+
## What to do
|
|
23
|
+
|
|
24
|
+
1. Bump `__version__` in `src/jellycell/_version.py` to the chosen level.
|
|
25
|
+
2. Move entries from `[Unreleased]` in `CHANGELOG.md` under the new version heading with today's date.
|
|
26
|
+
3. If it's a major and the cache-key algorithm changed, the `spec-invariant` skill's §10.2 ceremony also applies (bump `MINOR_VERSION`, regen `tests/unit/test_hashing.py`).
|
|
27
|
+
4. Include the bump in the same commit or PR as the change — do not split "the fix" from "the version."
|
|
28
|
+
|
|
29
|
+
## What NOT to do
|
|
30
|
+
|
|
31
|
+
- Don't hoard changes in `[Unreleased]` waiting for "something big." Ship the patches.
|
|
32
|
+
- Don't raise major just because the change feels significant. Major is reserved for §10 contract breaks.
|
|
33
|
+
- Don't split the version bump into a separate PR from the change. One commit, one PR.
|
|
34
|
+
|
|
35
|
+
## Reference
|
|
36
|
+
|
|
37
|
+
- `docs/development/releasing.md` — full policy and the checklist for cutting a tag.
|
|
38
|
+
- `CHANGELOG.md` — the shape to match.
|
|
39
|
+
- `.claude/skills/spec-invariant/SKILL.md` — when the change is contract-breaking.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-invariant
|
|
3
|
+
description: Follow this ceremony when editing spec §10 contract-protected files — src/jellycell/cache/hashing.py, src/jellycell/_version.py, src/jellycell/cli/commands/prompt.py, docs/agent-guide.md, docs/spec/v0.md, or any pydantic model carrying a schema_version field. Ensures cache invalidation, JSON schema versioning, and agent-guide stability are not breached silently.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are about to touch a file governed by one of jellycell's three cross-cutting contracts (spec §10). These are "expensive to change later" — the ceremony here prevents silent drift.
|
|
7
|
+
|
|
8
|
+
## Which contract applies?
|
|
9
|
+
|
|
10
|
+
| If you're editing... | Contract | Section |
|
|
11
|
+
| --------------------------------------------- | -------------------- | ------- |
|
|
12
|
+
| `src/jellycell/cache/hashing.py` | Cache key algorithm | §10.2 |
|
|
13
|
+
| `src/jellycell/_version.py` MINOR_VERSION | Cache key algorithm | §10.2 |
|
|
14
|
+
| Any pydantic model with `schema_version: int` | `--json` schema | §10.1 |
|
|
15
|
+
| `src/jellycell/cli/commands/prompt.py` | Agent guide content | §10.3 |
|
|
16
|
+
| `docs/agent-guide.md` | Agent guide content | §10.3 |
|
|
17
|
+
| `docs/spec/v0.md` | The spec itself | all |
|
|
18
|
+
|
|
19
|
+
## Ceremony
|
|
20
|
+
|
|
21
|
+
### Cache key changes (§10.2)
|
|
22
|
+
|
|
23
|
+
Cache-key changes are **major** bumps — every existing cached result invalidates. Don't do this lightly.
|
|
24
|
+
|
|
25
|
+
1. Bump `MINOR_VERSION` in `src/jellycell/_version.py` by 1, and add a dated one-liner in the docstring explaining what changed.
|
|
26
|
+
2. Regenerate the hashing regression snapshot:
|
|
27
|
+
```
|
|
28
|
+
uv run pytest tests/unit/test_hashing.py --force-regen
|
|
29
|
+
```
|
|
30
|
+
3. Commit the regenerated snapshot file alongside the code change.
|
|
31
|
+
4. Bump the semver **major** (`X.0.0`) in `_version.py::__version__` as well — cache invalidation is breaking.
|
|
32
|
+
5. Add a `CHANGELOG.md` entry under `[Unreleased]` in the `### Changed` section with "Cache key algorithm: <what changed>. Existing caches invalidated."
|
|
33
|
+
6. In the PR description, explain **why** the change is needed.
|
|
34
|
+
|
|
35
|
+
### `--json` schema changes (§10.1)
|
|
36
|
+
|
|
37
|
+
- **Additive** (new optional field) → **minor bump** (`1.X.0`). Keep `schema_version` unchanged; add the field to the pydantic model; document in `docs/cli-reference.md`.
|
|
38
|
+
- **Breaking** (field removed, renamed, or type-changed) → **major bump** (`X.0.0`). Increment `schema_version` in the owning model (1 → 2). Search for downstream consumers: `rg 'schema_version' tests/ src/` — update parsers that hard-code `== 1`.
|
|
39
|
+
- Regenerate `tests/integration/test_json_schemas.py` snapshots with `--force-regen`.
|
|
40
|
+
- Add a `CHANGELOG.md` entry with a before/after example.
|
|
41
|
+
|
|
42
|
+
### Agent guide changes (§10.3)
|
|
43
|
+
|
|
44
|
+
- **Typo / clarification** (no meaning change) → **patch**.
|
|
45
|
+
- **Additive** (new section for a new feature; existing sections unchanged) → **minor**.
|
|
46
|
+
- **Breaking** (existing guidance removed, rewritten with different meaning, or changed in a way that would mislead an agent following the previous version) → **major** (`X.0.0`). Agents in the wild depend on this output.
|
|
47
|
+
- Any regen of `tests/unit/test_prompt_snapshot.py` must accompany a CHANGELOG entry.
|
|
48
|
+
|
|
49
|
+
## After the change
|
|
50
|
+
|
|
51
|
+
Run `/spec-check` on the resulting diff to confirm the ceremony was complete. The `spec-reviewer` subagent will verify each invariant and report any missing steps.
|
|
52
|
+
|
|
53
|
+
## Reference
|
|
54
|
+
|
|
55
|
+
- `CLAUDE.md` — one-paragraph summary of each invariant.
|
|
56
|
+
- `docs/reference/contracts.md` — living authoritative contract text + ceremonies.
|
|
57
|
+
- `docs/spec/v0.md` §10 — frozen genesis statement (historical).
|
|
58
|
+
- `docs/development/releasing.md` — versioning policy + release workflow.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Something isn't working as documented
|
|
4
|
+
title: "[bug] "
|
|
5
|
+
labels: bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Summary
|
|
9
|
+
|
|
10
|
+
<!-- One sentence: what went wrong. -->
|
|
11
|
+
|
|
12
|
+
## Environment
|
|
13
|
+
|
|
14
|
+
- jellycell version: <!-- `jellycell --version` -->
|
|
15
|
+
- Python version: <!-- `python --version` -->
|
|
16
|
+
- OS: <!-- macOS 14.x / Ubuntu 22.04 / Windows WSL / ... -->
|
|
17
|
+
- Installed via: <!-- pip / uv / editable / ... -->
|
|
18
|
+
|
|
19
|
+
## Reproduction
|
|
20
|
+
|
|
21
|
+
<!-- Minimal. The smallest notebook + command that triggers the bug. -->
|
|
22
|
+
|
|
23
|
+
```python
|
|
24
|
+
# notebooks/repro.py
|
|
25
|
+
# /// script
|
|
26
|
+
# requires-python = ">=3.11"
|
|
27
|
+
# dependencies = []
|
|
28
|
+
# ///
|
|
29
|
+
|
|
30
|
+
# %% tags=["jc.step"]
|
|
31
|
+
...
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
jellycell run notebooks/repro.py
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Expected
|
|
39
|
+
|
|
40
|
+
<!-- What should have happened. -->
|
|
41
|
+
|
|
42
|
+
## Actual
|
|
43
|
+
|
|
44
|
+
<!-- What actually happened. Paste the full command output and any tracebacks. -->
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
<output>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Notes
|
|
51
|
+
|
|
52
|
+
<!-- Anything else useful: related issues, workarounds, hypotheses. -->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest a new capability or an enhancement
|
|
4
|
+
title: "[feat] "
|
|
5
|
+
labels: enhancement
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What
|
|
9
|
+
|
|
10
|
+
<!-- One sentence: what the feature does. -->
|
|
11
|
+
|
|
12
|
+
## Why
|
|
13
|
+
|
|
14
|
+
<!-- What problem does it solve? Who does it help? -->
|
|
15
|
+
|
|
16
|
+
## Proposed shape (optional)
|
|
17
|
+
|
|
18
|
+
<!-- CLI signature, API sketch, or UI description. -->
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
jellycell <new-command> --flag value
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Alternatives considered
|
|
25
|
+
|
|
26
|
+
<!-- What did you try or think about? -->
|
|
27
|
+
|
|
28
|
+
## Spec impact
|
|
29
|
+
|
|
30
|
+
<!--
|
|
31
|
+
Does this interact with any §10 invariant? (see docs/reference/contracts.md)
|
|
32
|
+
- [ ] Changes --json schemas of existing commands
|
|
33
|
+
- [ ] Changes cache key algorithm or inputs
|
|
34
|
+
- [ ] Changes agent guide content
|
|
35
|
+
|
|
36
|
+
If any are checked, expect at least a minor bump — or a major for breaking changes to the existing shape.
|
|
37
|
+
-->
|
|
38
|
+
|
|
39
|
+
## Phase placement
|
|
40
|
+
|
|
41
|
+
<!-- Which phase in v0 spec §8 would this land in? Does it fit the phase's file budget? -->
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Thanks for contributing! Please fill in the sections below.
|
|
3
|
+
See CONTRIBUTING.md for the full PR checklist.
|
|
4
|
+
-->
|
|
5
|
+
|
|
6
|
+
## Summary
|
|
7
|
+
|
|
8
|
+
<!-- One paragraph: what changes and why. -->
|
|
9
|
+
|
|
10
|
+
## Type
|
|
11
|
+
|
|
12
|
+
- [ ] `feat` — new feature
|
|
13
|
+
- [ ] `fix` — bug fix
|
|
14
|
+
- [ ] `docs` — docs only
|
|
15
|
+
- [ ] `refactor` — no behavior change
|
|
16
|
+
- [ ] `test` — tests only
|
|
17
|
+
- [ ] `chore` — tooling, CI, release
|
|
18
|
+
|
|
19
|
+
## Version bump
|
|
20
|
+
|
|
21
|
+
<!-- jellycell prefers frequent small bumps. See docs/development/releasing.md. -->
|
|
22
|
+
|
|
23
|
+
- [ ] patch (`1.0.X`) — bug fix / refactor / docs / non-user-visible plumbing (default)
|
|
24
|
+
- [ ] minor (`1.X.0`) — new CLI flag / new `jc.*` function / new config key / additive `--json` field
|
|
25
|
+
- [ ] major (`X.0.0`) — §10 contract break (cache key / agent-guide content / breaking `--json` schema)
|
|
26
|
+
|
|
27
|
+
`__version__` bumped in `_version.py` and `CHANGELOG.md` updated under the new heading? If not, explain why.
|
|
28
|
+
|
|
29
|
+
## Area / budget
|
|
30
|
+
|
|
31
|
+
<!-- Which v0 spec §8 area does this touch? Does the phase's src file budget still hold? -->
|
|
32
|
+
|
|
33
|
+
- Area (phase): <!-- 0 / 1 / 2 / ... -->
|
|
34
|
+
- File count after this PR: `src/jellycell/<subdir>/` has N files (budget M).
|
|
35
|
+
|
|
36
|
+
## Invariant check (§10 — see docs/reference/contracts.md)
|
|
37
|
+
|
|
38
|
+
Does this PR touch any of the three cross-cutting contracts?
|
|
39
|
+
|
|
40
|
+
- [ ] **`--json` schemas** (any pydantic model with `schema_version`)
|
|
41
|
+
- [ ] **Cache key algorithm** (`src/jellycell/cache/hashing.py`, `_version.py`)
|
|
42
|
+
- [ ] **Agent guide content** (`cli/commands/prompt.py`, `docs/agent-guide.md`)
|
|
43
|
+
|
|
44
|
+
If any are checked, describe the ceremony followed:
|
|
45
|
+
|
|
46
|
+
<!--
|
|
47
|
+
- For cache key changes: MINOR_VERSION bumped? test_hashing snapshot regenerated? Major version bump? CHANGELOG entry?
|
|
48
|
+
- For --json schema changes: schema_version incremented (breaking only)? Parsers updated? CHANGELOG entry?
|
|
49
|
+
- For agent guide changes: classified correctly (typo=patch, additive=minor, breaking=major)? prompt snapshot regenerated? CHANGELOG entry?
|
|
50
|
+
-->
|
|
51
|
+
|
|
52
|
+
## Testing
|
|
53
|
+
|
|
54
|
+
- [ ] `make lint` passes
|
|
55
|
+
- [ ] `make test` passes
|
|
56
|
+
- [ ] `make docs-build` passes (`sphinx-build -W`)
|
|
57
|
+
- [ ] New public functions have docstrings
|
|
58
|
+
|
|
59
|
+
## Notes for reviewer
|
|
60
|
+
|
|
61
|
+
<!-- Anything subtle, any design decisions worth calling out, linked issues. -->
|