Création de la branche Main #1

Open
eric wants to merge 62 commits from main into push-uqpokywxstyt
Owner
No description provided.
feat: adopt CECILL-2.1 license and update kit versioning logic
All checks were successful
Release / release (push) Successful in 15s
56b7dad8f1
Update the project template to use the CeCILL-2.1 license, adding both French and English license files. Enhance `adopt.sh` to enforce this license in `Cargo.toml` and verify its presence in generated projects. Update `kit/VERSION` to 0.1.3 and refine `kit/crate.mk` for stricter version requirements.

- Add `template/LICENSE` and `template/LICENSE.en` containing the CeCILL-2.1 agreement under French law.
- Modify `adopt.sh` to check that `Cargo.toml` declares `license = "CECILL-2.1"` and ensure license files are present.
- Update `kit/VERSION` from 0.1.2 to 0.1.3.
- Refine `kit/crate.mk` to determine required versions based on crate version (major.minor for 0.x, major otherwise) and warn if unmet.
- Update `kit/scripts/api-snapshot.sh` to include `--document-private-items` in rustdoc calls for stable JSON output.
- Update `tests/e2e.sh` to verify license presence and update the `lib_base` test implementation with an opaque structure.
- Refresh `docs/autonomize-pmo-crate.md` to reflect new license requirements and kit installation steps.
- Update `README.md` to include `LICENSE` and `.gitea/workflows/release.yaml` in the template file list.
Reviewed-on: pmo/crate-kit#3
docs: clarify kit sync behavior and add dev-patch automation
All checks were successful
Release / release (push) Successful in 36s
a471ce2bc6
Update documentation to reflect that `.crate-kit/` synchronizes automatically on `make`, with `kit-update` forcing a resync. Add `kit/dev-patch.mk` and `kit/scripts/dev-patch.sh` to automate `.cargo/config.toml` generation for local development, removing the static template file.

- Update README.md to clarify that crates should not modify `.crate-kit/` directly as changes are overwritten by `make`, and that `adopt.sh` does not replace existing files.
- Modify `adopt.sh` to check for CECILL-2.1 license in `Cargo.toml` and run `dev-patch.sh` if present.
- Update `docs/autonomize-pmo-crate.md` to describe automatic PMO registry configuration via environment variables and the new `dev-patch` workflow.
- Bump `kit/VERSION` from 0.1.3 to 0.1.4.
- Add color definitions and include `dev-patch.mk` in `kit/crate.mk`.
- Define `PMO_REGISTRY_INDEX` in `kit/scripts/common.sh` with a fallback URL.
- Update `template/Makefile` to synchronize `.crate-kit/kit` from `../crate-kit` before including `crate.mk`.
- Add `/.cargo/config.toml` to `template/.gitignore` as it is now generated dynamically.
- Update `tests/e2e.sh` to handle dynamic Cargo configuration and verify patching logic.
- Add `kit/dev-patch.mk` to configure private registry variables and define the `dev-patch` target.
- Add `kit/scripts/dev-patch.sh` to generate `.cargo/config.toml` for local development dependencies.
- Delete `template/.cargo/config.toml` as it is no longer a static template file.
Reviewed-on: pmo/crate-kit#4
feat: add jjfetch script and update kit version
All checks were successful
Release / release (push) Successful in 17s
37f6295870
Introduce `kit/scripts/jjfetch.sh` to handle fetching commits and rebasing local mutable work, integrating it into the Makefile's check target. Update `kit/VERSION` to 0.1.5 and document the new workflow in README.md.

- Add `kit/scripts/jjfetch.sh` to fetch latest commits from origin and rebase local mutable revisions, handling conflicts via `jj`.
- Modify `Makefile` to include `@tests/jjfetch.sh` in the `check` target and define `JJ_KIT_DIR` for locating scripts.
- Update `kit/VERSION` from 0.1.4 to 0.1.5.
- Add `tests/jjfetch.sh` test suite covering scenarios like modified work, pending PRs, and up-to-date states using helper functions (`ok`, `ko`, `run`).
- Update `README.md` to describe `make jjfetch`, `make kit-check`, and `make jjrelease` behaviors, including version checks and conflict handling.
Reviewed-on: pmo/crate-kit#5
feat(kit): update version to 0.1.6 and add unstable filter logic
All checks were successful
Release / release (push) Successful in 25s
effd82d8f4
Update the kit version to 0.1.6 and introduce `filtre_instable` in `kit/scripts/api-level.sh` to exclude `Freeze` trait implementations from diff calculations.

- Update `kit/VERSION` from 0.1.5 to 0.1.6
- Add `filtre_instable` function to `kit/scripts/api-level.sh` to filter lines starting with 'impl core::marker::Freeze for '
- Modify `diff_out` calculation in `kit/scripts/api-level.sh` to use `filtre_instable` on diff output
Reviewed-on: pmo/crate-kit#6
feat: add PMO dependency version checking and bumping tools
All checks were successful
Release / release (push) Successful in 19s
8b6b153ed8
Introduce `deps-check` and `deps-bump` targets to verify that PMO crates use the latest published versions and to update them automatically. This ensures projects do not run with deprecated or incompatible dependency versions, integrating these checks into CI pipelines (`make ci`, `jjpush`, `jjrelease`) and the `watch` pipeline.

- Add `kit/scripts/deps-check.sh` with functions `bad`, `index_path`, `latest_published`, `req_accepts`, `req_for`, and `lock_entries` to analyze `Cargo.lock` entries against published registry versions.
- Add `tests/deps-check.sh` with test utilities (`ok`, `ko`, `make_index`, `new_project`, `neighbor`, `lock_pkg`, `run`, `expect`) to validate dependency resolution logic in isolated environments.
- Update `kit/dev-patch.mk` to define phony targets `deps-check` and `deps-bump` that invoke the new script for checking and bumping PMO dependencies.
- Integrate `deps-check` into CI workflows by updating `template/AGENTS.md` (`make ci`) and `kit/crate.mk` (`watch`, `jjpush`, `jjrelease` pipelines).
- Update `README.md` to document the new dependency management process, including version constraints, flagging conditions, and the `make deps-bump` workflow.
- Add a new end-to-end test case in `Makefile` using `@tests/deps-check.sh` to verify API verdicts and dependency control on a mini-crate.
- Bump kit version from 0.1.6 to 0.1.7 in `kit/VERSION`.
Reviewed-on: pmo/crate-kit#7
refactor: move filtre_instable to common.sh and add tests
All checks were successful
Release / release (push) Successful in 16s
b47722cdc3
Relocate `filtre_instable` from `kit/scripts/api-level.sh` to `kit/scripts/common.sh` to better organize filtering logic. Add a dedicated test script `tests/api-filter.sh` to verify the function's behavior against expected API outputs. Update documentation in `docs/autonomize-pmo-crate.md` to reflect the new structure and version bump `kit/VERSION` to 0.1.8.

- Move `filtre_instable` from `kit/scripts/api-level.sh` to `kit/scripts/common.sh`, including its logic for filtering unstable traits using `grep` and `awk`.
- Add `tests/api-filter.sh` to the test suite, which validates `filtre_instable` against the `pmoutils::ip_utils::IpFamily` API.
- Update `docs/autonomize-pmo-crate.md`: rename sections 5 and 7, replace `version.txt` with `README.md` in the checklist, and update structure targets.
- Bump version in `kit/VERSION` from 0.1.7 to 0.1.8.
Reviewed-on: pmo/crate-kit#8
feat: add external dependency checking and refactor shared logic
All checks were successful
Release / release (push) Successful in 16s
c3a85203af
Add `deps-check-external.sh` to verify direct dependencies against crates.io, updating Makefile targets and documentation. Relocate shared utility functions from `deps-check.sh` to a new `deps-lib.sh` for better organization.

- Add kit/scripts/deps-check-external.sh with functions bad, declarations, rewrite_req, and floor_for to check published versions against requirements.
- Create kit/scripts/deps-lib.sh containing relocated functions index_path, latest_published, lock_entries, req_accepts, and req_for from deps-check.sh.
- Update Makefile to include new test script @tests/deps-check-external.sh and modify deps-check/descriptions to reflect PMO and external checks.
- Update README.md with "Dépendances externes (crates.io)" section explaining make deps-check behavior, failure conditions, and environment variables.
- Update kit/scripts/deps-check.sh to source deps-lib.sh and remove relocated definitions.
- Add tests/deps-check-external.sh with helper functions ok, ko, index, project, lock, run, expect for testing external dependency logic.
- Bump version in kit/VERSION from 0.1.8 to 0.1.9.
Reviewed-on: pmo/crate-kit#9
docs: update testing commands and external dependency checks
All checks were successful
Release / release (push) Successful in 17s
8ec6a3ad4f
Update kit/VERSION to 0.1.10. Modify Makefile targets in kit/crate.mk to use --all-features for test and doc commands. Update docs/autonomize-pmo-crate.md to reflect new test commands. Refactor kit/scripts/deps-check-external.sh to support DEPS_CHECK_EXTERNAL_IGNORE and improve requirement parsing. Update tests/deps-check-external.sh to verify ignore list behavior.
Reviewed-on: pmo/crate-kit#10
fix(jjfetch): prevent rebase on identical merged revisions and update version
All checks were successful
Release / release (push) Successful in 16s
bd177ab2ce
Update `kit/VERSION` to 0.1.11 and refine `jjfetch` logic to detect when a local revision has been merged into the base with identical content, preventing unnecessary rebases. Add test coverage for divergent merge scenarios in `tests/jjfetch.sh`.

- Update `kit/VERSION` from 0.1.10 to 0.1.11
- Modify `kit/scripts/jjfetch.sh` to check for divergent revisions by comparing local revisions against a twin in `$base`
- Abandon local revisions that have already been merged into `$base`, even if the change ID is the same but content differs
- Stop processing for revisions found to be merged, reporting an error instead of rebasing
- Update `README.md` to clarify that `make jjfetch` should stop if content is identical to the merged version
- Clarify `make kit-check` in `README.md` to indicate it compares content, not just version
- Add `divergent_world` function to `tests/jjfetch.sh` to simulate PR merge scenarios
- Add `merge_pr_on_remote` function to `tests/jjfetch.sh` for handling PR merges
- Update test logic to handle cases where PR was merged after local rewrite
- Add checks in tests to verify output messages and local history state after divergence
Reviewed-on: pmo/crate-kit#11
docs: update README and kit version to 0.1.12 with jjfetch improvements
All checks were successful
Release / release (push) Successful in 14s
c8a68b29a9
Update `kit/VERSION` to 0.1.12 and refine documentation in `README.md`. The script now stops before rewriting pushed but unmerged PRs and relaunches `make` to resynchronize `.crate-kit/`, potentially leaving conflict markers. Update `kit/jj.mk` to clarify `jjfetch` purpose and add a help check command.

- Modify README to explain that the script stops before rewriting pushed but unmerged PRs
- Document that make is relaunched after rebase to resynchronize .crate-kit/, noting potential conflicts
- Clarify that make kit-check compares .crate-kit/ to ../crate-kit/kit/ by content, not VERSION
- Update kit/VERSION from 0.1.11 to 0.1.12
- Add jjfetch section in kit/jj.mk describing recovery of origin and rebasing local work
- Add comment in kit/jj.mk explaining make rerun before rebase and potential conflict markers
- Add $(MAKE) --no-print-directory -s help >/dev/null execution to jjfetch target
Reviewed-on: pmo/crate-kit#12
docs: update API snapshot format to gzip-compressed JSON
All checks were successful
Release / release (push) Successful in 19s
5f1229dbce
Update the API snapshot generation and verification process to use `.json.gz` files instead of uncompressed `.json` files. This reduces storage size for large snapshots (over 1MB) and aligns documentation, build scripts, and tests with the new compressed format.

- Update `kit/scripts/api-snapshot.sh` to compress JSON output using `gzip -9 -n -c` into `.json.gz` files
- Modify `kit/scripts/common.sh`'s `latest_snapshot` function to locate `.json.gz` files instead of `.json`
- Change `kit/scripts/api-level.sh` to decompress baseline JSON via `gzip -d -c` before semver checks
- Update `kit/crate.mk` comments and targets to reflect the new `.gz` extension for API snapshots
- Adjust `tests/e2e.sh` assertions to verify existence of `.json.gz` files in initial snapshot tests
- Refresh `README.md` and `docs/autonomize-pmo-crate.md` to document the `.json.gz` format and size limits
- Bump version in `kit/VERSION` from 0.1.12 to 0.1.13
Reviewed-on: pmo/crate-kit#13
feat: introduce Claude agent infrastructure and streamline crate adoption
All checks were successful
Release / release (push) Successful in 17s
dbcf93885b
Add comprehensive configuration for Claude Code agents (explorer, task-planner, code-reviewer) and hooks to enforce safety and context limits. Update `adopt.sh` to simplify the kit application process by removing per-crate `AGENTS.md` generation in favor of centralized rules.

- Add `.serena/project.yml` and `.gitignore` for project configuration and cache management.
- Introduce Claude agents in `claude/agents/`: `explorer` for read-only code exploration, `task-planner` for decomposition and risk analysis, and `code-reviewer` for Rust/Go review.
- Add safety hooks in `claude/hooks/`: `pre-bash-guard.sh` to block dangerous commands and enforce Jujutsu (`jj`) over Git, `read-guard.sh` to limit file sizes, and `compact-reinject.sh` for context retention.
- Update `adopt.sh` to document that existing files like `Makefile` are migrated but never replaced, and remove the generation of per-crate `AGENTS.md`.
- Delete `template/AGENTS.md` as agent rules are now centralized in `pmo/AGENTS.md` with crate-specific details in `README.md`.
- Add Ollama model files (`for_claude_explorer`, `for_claude_worker`) and tools for local asking, backlog management, and token reporting.
- Update `kit/VERSION` to 0.1.14 and refresh documentation in `docs/autonomize-pmo-crate.md`.
Reviewed-on: pmo/crate-kit#14
docs: clarify claude config and restrict installation to pmo/.claude
All checks were successful
Release / release (push) Successful in 18s
d62fce2fe8
Update documentation to reflect that context cost depends on size rather than reads, set autoCompactWindow to 200k tokens, and specify that hooks and agents are sourced from crate-kit/claude/ with copies restricted to pmo/.claude. Restrict the install script to a single target directory and update task-planner constraints.

- Update claude/agents/task-planner.md to limit calls to refactoring or explicit requests, set model to claude-opus-5-5, and restrict tools to Read, Grep, Glob
- Modify kit/VERSION from 0.1.14 to 0.1.15
- Restrict claude/install.sh to install hooks and agents only into pmo/.claude, replacing the multi-target loop with a single TARGET definition
- Update docs/claude-config-tokens.md to clarify context cost measurement, set autoCompactWindow to 200,000 tokens, and update archive locations
Reviewed-on: pmo/crate-kit#15
feat: update kit version and switch claude agents from hooks to agents
All checks were successful
Release / release (push) Successful in 20s
1f379599ed
Update kit version to 0.1.16 and refine API snapshot generation by excluding generic implementations. Replace the previous hook-based script installation with a new agent-based workflow, introducing dedicated markdown definitions for explorer, code-reviewer, task-planner, and task-worker roles.

- Update `kit/VERSION` from 0.1.15 to 0.1.16
- Modify `claude/install.sh` to install agent markdown files into `$KIT/agents/` with 644 permissions instead of hooks in `$TARGET/hooks/` with 755 permissions
- Update `kit/scripts/api-level.sh` and `kit/scripts/api-snapshot.sh` to use `cargo public-api -s`, excluding generic implementations from snapshots
- Add `claude/agents/task-worker.md` defining the task-worker agent role, its tools, strict execution methodology, and output format constraints
Reviewed-on: pmo/crate-kit#16
feat: introduce task triage agent and update task worker instructions
All checks were successful
Release / release (push) Successful in 32s
2bf32b7e63
Add a new `task-triage.md` agent to evaluate backlog tasks against the current code state, determining validity and remaining work. Update `task-worker.md` to clarify that the principal assistant handles final status transitions for tasks. Refactor `install.sh` to install agents into `$TARGET/agents/` with 644 permissions and include the new triage script.

- Add `claude/agents/task-triage.md`: defines a mechanism for judging backlog tasks using tools like Read, Grep, and mcp__backlog__ tools; outputs verdicts, proofs, and decisions for user action.
- Modify `claude/agents/task-worker.md`: clarify that the assistant principal handles final status changes ("To Do" or "Done") and never marks tasks as "Done" directly; update debugging budget to stop after 3 verified hypotheses or ~15 calls.
- Update `claude/install.sh`: change installation target from `$TARGET/hooks/` to `$TARGET/agents/`; set file permissions to 644; include `task-triage.md` in the installation loop alongside existing agents.
- Bump version in `kit/VERSION` from 0.1.16 to 0.1.17.
Reviewed-on: pmo/crate-kit#17
docs: remove metadata fields and update kit version to 0.1.18
All checks were successful
Release / release (push) Successful in 18s
8f706d5461
Refactor crate documentation by removing homepage, repository, and license
fields. Update the kit version to 0.1.18 and switch coverage reporting
from tarpaulin to llvm-cov. Refactor API snapshotting logic in common.sh
to use new emit_snapshot and regenerate_snapshot functions.

- Remove homepage, repository, and license fields from docs/autonomize-pmo-crate.md
- Update kit/VERSION from 0.1.17 to 0.1.18
- Switch coverage reporting in kit/crate.mk from tarpaulin to llvm-cov
- Refactor API snapshotting in kit/scripts/common.sh with new helper functions
Reviewed-on: pmo/crate-kit#18
feat: update version and enhance API/dev-patch scripts
All checks were successful
Release / release (push) Successful in 17s
c56d62ebfe
Update kit/VERSION to 0.1.19. Add `is_proc_macro` to api-level.sh to skip cargo-semver-checks for proc-macros. Refactor dev-patch.sh with `registry_deps` to handle transitive dependencies.

- Update version in `kit/VERSION` from 0.1.18 to 0.1.19.
- Add `is_proc_macro` function to `kit/scripts/api-level.sh` to detect proc-macros via `cargo metadata` and skip semver checks if true.
- Refactor `kit/scripts/dev-patch.sh` by adding `registry_deps` to extract registry names from Cargo.toml, replacing direct sed usage.
- Implement recursive dependency handling in `dev-patch.sh` to ensure transitive patched dependencies are also processed.
Reviewed-on: pmo/crate-kit#19
feat: add support for WebAssembly plugin crates
All checks were successful
Release / release (push) Successful in 27s
57d76b386e
Introduce a new `plugin` crate kind in `kit/crate.mk` to handle the build,
distribution, and installation of WebAssembly modules. This includes adding
a dedicated template (`template-plugin/`) with a CeCILL license, a Gitea
release workflow, and necessary configuration files. Update `adopt.sh` to
support plugin templates and modify API-related scripts to skip checks for
plugins since they do not expose Rust APIs.

- Add `kit/crate.mk` logic for `CRATE_KIND=plugin`, defining variables like
  `PLUGIN_ID` and targets for WASM compilation (`wasm32-unknown-unknown`),
  distribution, and installation.
- Create `template-plugin/` directory containing a Makefile, `.gitignore`,
  CeCILL licenses (FR/EN), and a Gitea release workflow for tagging and
  publishing.
- Update `adopt.sh` to accept a `--plugin` argument, selecting the
  `template-plugin` directory instead of the standard template.
- Modify `kit/scripts/api-level.sh`, `api-snapshot.sh`, `publish.sh`, and
  `wiki.sh` to exit early for plugin crates, as they do not have Rust APIs
  or wiki documentation requirements.
- Add `tests/e2e-plugin.sh` to verify the end-to-end workflow of building,
  installing, and distributing a WASM plugin crate.
- Update `kit/VERSION` from 0.1.19 to 0.1.22 and add an e2e test case to
  the main Makefile.
- Document the new plugin workflow in `README.md`, including prerequisites
  for the WASM target and versioning rules.
Reviewed-on: pmo/crate-kit#20
feat: add backlog-audit script and update kit version
All checks were successful
Release / release (push) Successful in 18s
171b9d67ed
Add a new `backlog-audit` tool to detect inconsistencies in task statuses and implement it via a shell hook. Update the kit version from 0.1.22 to 0.1.23.

- Add `tools/backlog-audit.py` with `parse` and `main` functions to audit backlog tasks for inconsistencies (e.g., done tasks with unchecked boxes) over a specified number of days.
- Add `claude/hooks/backlog-audit.sh` to execute the Python audit script, checking for project root and required directories before running.
- Modify `claude/install.sh` to include `backlog-audit.sh` in the hooks installation loop.
- Update `kit/VERSION` from 0.1.22 to 0.1.23.
Reviewed-on: pmo/crate-kit#21
feat: introduce forge_call helper and update version to 0.1.24
All checks were successful
Release / release (push) Successful in 16s
cc03353df2
Refactor kit/scripts/forgejo-release.sh to use the new forge_call function from common.sh for consistent HTTP error handling. Add a test script in tests/forgejo-release.sh to verify server interaction logic, and bump the kit version.

- Update kit/VERSION from 0.1.23 to 0.1.24
- Add forge_call function to kit/scripts/common.sh to handle curl commands and HTTP errors
- Refactor kit/scripts/forgejo-release.sh to use forge_call instead of raw curl commands
- Add tests/forgejo-release.sh with ok, ko, start, stop, and run functions for testing server responses
- Update Makefile test target to include the new forgejo-release.sh test script
Reviewed-on: pmo/crate-kit#22
Refactor the release workflow to push directly to `main` instead of creating PRs, and introduce a new plugin catalog system. Add comprehensive JSON schemas for plugins, credentials, and catalogs, along with scripts to validate and publish them. Update Makefiles and documentation to reflect the new `jjrelease` behavior and versioning requirements.

- Refactor `Makefile` and `kit/crate.mk` to use `push-main.sh` for direct pushes to `main` in `jjpush` and `jjrelease` targets
- Add `tools/release-all.sh` and `tools/needs-commit-all.sh` to manage release tours based on crate dependencies and commit status
- Introduce plugin catalog infrastructure with JSON schemas (`plugin.schema.json`, `credentials.schema.json`, `catalog.schema.json`, `version.schema.json`)
- Add scripts for catalog operations: `kit/scripts/catalog-entry.sh`, `kit/scripts/catalog-publish.sh`, and `kit/scripts/catalog-verify.py`
- Update `kit/scripts/common.sh` with `forge_token` and `filtre_notes` functions for API note filtering and token retrieval
- Modify `kit/scripts/release-notes.sh` to use `filtre_notes` when comparing API changes
- Add `kit/scripts/needs-commit.sh` to detect uncommitted changes excluding version bumps and kit scripts
- Update documentation in `README.md`, `docs/autonomize-pmo-crate.md`, and add `docs/plugin-manifest.md`
- Bump version in `kit/VERSION` from 0.1.24 to 0.1.25
- Add test suites for new scripts: `tests/catalog-entry.sh`, `tests/catalog-publish.sh`, `tests/catalog-verify.sh`, `tests/kit-check.sh`, `tests/needs-commit.sh`, and `tests/release-all.sh`
All checks were successful
Release / release (push) Successful in 17s
245d13dde1
feat: implement release_rev logic and update version to 0.1.26
All checks were successful
Release / release (push) Successful in 16s
79a241a8f9
Introduce a `release_rev` function in `kit/scripts/common.sh` to determine the specific revision for releases based on commit tags. Update `kit/VERSION` to 0.1.26 and modify `push-main.sh` and `tag.sh` to use this revision instead of the current commit. Add a new test script `tests/release-rev.sh` to validate the release logic.

- Add `release_rev` function to `kit/scripts/common.sh` to calculate the target revision using `jj log -r`.
- Update `kit/VERSION` from 0.1.25 to 0.1.26.
- Modify `kit/scripts/push-main.sh` to bookmark `release_rev` instead of `@`, and add `make jjfetch` on failure.
- Modify `kit/scripts/tag.sh` to create tags on `release_rev` instead of the current commit.
- Add `tests/release-rev.sh` with helper functions `ok`, `ko`, and `rev` to test release revision logic.
- Update Makefile to include `tests/release-rev.sh` in test targets.
feat: add logic to abandon blank commits during release process
All checks were successful
Release / release (push) Successful in 24s
d1e445cd6e
Update version to 0.1.27 and introduce `abandon_blank_commits` in `kit/scripts/common.sh` to discard empty commits lacking descriptions between trunk and the current revision. Update `kit/scripts/push-main.sh` to check if the release revision can advance to main, exiting on divergence. Modify `tests/release-rev.sh` to verify that commits without descriptions are abandoned while preserving work.

- Update kit/VERSION from 0.1.26 to 0.1.27
- Add abandon_blank_commits function to kit/scripts/common.sh to discard empty commits without descriptions between trunk and @
- Add logic in kit/scripts/push-main.sh to verify release revision can advance to main, exiting on divergence or missing history
- Update tests/release-rev.sh to handle commits without descriptions by abandoning them while keeping work, verifying "fin" description remains
fix: update version to 0.1.28 and clean dist directory before packaging
All checks were successful
Release / release (push) Successful in 17s
65f1bf2fa5
Update kit/VERSION to 0.1.28 and modify kit/crate.mk to remove stale .wasm files in the dist directory before copying the new one. Add dist to template-plugin/.gitignore and update e2e tests to verify this cleanup behavior.

- Update kit/VERSION from 0.1.27 to 0.1.28
- Modify kit/crate.mk case statement to handle 0.* versions differently and clarify that old .wasm files are removed in dist/
- Add dist directory to template-plugin/.gitignore ignore list
- Update tests/e2e-plugin.sh to create stale-0.0.1.wasm and verify its removal during make dist
feat: add locking mechanism to prevent concurrent catalog publishing
All checks were successful
Release / release (push) Successful in 16s
e3176f61c6
Update `kit/scripts/catalog-publish.sh` to acquire a lock before publishing, ensuring thread-safe operations and preventing race conditions. The script now waits for existing locks, cleans up stale processes, and handles expiration scenarios robustly.

- Update version in `kit/VERSION` from 0.1.28 to 0.1.29
- Implement lock acquisition logic in `kit/scripts/catalog-publish.sh` using `catalog-publish.lock`
- Add trap to remove lock directory on script exit in `kit/scripts/catalog-publish.sh`
- Handle stale locks by checking process liveness and cleaning up if dead
- Exit with error if lock wait time expires without acquiring the lock
- Update tests in `tests/catalog-publish.sh` to manage lock file lifecycle
- Add test cases for lock existence, creation, and release scenarios
- Include test logic for "process death" and "lock expiry" handling
- Add test scenario for detecting another publication and refusing after waiting
chore: bump kit version to 0.1.30
All checks were successful
Release / release (push) Successful in 1m1s
2a471db2b5
Update the project version in `kit/VERSION` from 0.1.29 to 0.1.30.

- Update version string in `kit/VERSION` to reflect the new release number.
refactor: migrate crate-kit to Rust multi-crate projects and generic registries
All checks were successful
Release / release (push) Successful in 18s
735fd5111f
Refactor the project structure to support Rust multi-crate projects, replacing the previous plugin-centric model. This includes renaming `template-plugin` to `template-kit`, removing obsolete catalog schemas and scripts, and introducing a generic registry system via `REGISTRY_INDEX`. The change also reorganizes test utilities into dedicated files for adoption, kinds, and registry checks.

- Rename `template-plugin` to `template-kit` and update associated Makefiles, workflows, and gitignores to reflect the new kit structure.
- Remove obsolete plugin manifest documentation (`docs/plugin-manifest.md`) and all JSON schemas in `kit/schemas/`.
- Delete catalog-related scripts (`catalog-entry.sh`, `catalog-publish.sh`, `catalog-verify.py`) and their test files, as catalog management is no longer supported.
- Introduce generic registry support by replacing hardcoded "pmo" references with `REGISTRY_INDEX` and `REGISTRY` variables across `kit/scripts/` and Makefiles.
- Add `adopt-kit.sh` to allow adopting extension kits with specific organizations and registries, including overlay assembly logic.
- Reorganize test utilities: move `ko` and `ok` functions from deleted catalog tests into `tests/adopt-kit.sh`, `tests/kinds.sh`, and `tests/registry.sh`.
- Add new test files `tests/adopt-kit.sh`, `tests/kinds.sh`, and `tests/registry.sh` to cover kit adoption, crate kind detection, and registry configuration.
- Update `kit/scripts/common.sh` and related scripts to use `KIT_HOOK_INPUT` instead of `PMO_HOOK_INPUT` for Claude hooks.
- Add `tools/kit-assemble.sh` and `tools/kit-copy.sh` to manage kit synchronization and assembly from overlays.
- Introduce `template-kit/kinds/crate.mk` to define default build targets, publish settings, and API tracking for standard crates.
- Update `Makefile` to include `tools/kit-release.mk` and add targets for `release-run`, `release-dry-run`, and `jjpush`.
- Modify `adopt.sh` to accept `--kit-src` and `--kind` arguments, using `kit-copy.sh` for template installation.
- Update `claude/agents/explorer.md` to clarify code graph constraints and output limits.
- Add new Claude agents `crate-auditor.md` and `kit-auditor.md` for auditing Rust crates and kits without modifying files.
- Remove `template-plugin/LICENSE` and `LICENSE.en`, as licensing is handled differently in the new structure.
chore: update kit version to 0.2.0
All checks were successful
Release / release (push) Successful in 16s
e487d65771
Update the version number in `kit/VERSION` from 0.1.31 to 0.2.0.

- Update `kit/VERSION` to reflect the new 0.2.0 release.
fix: update version to 0.2.1 and improve test cleanup safety
All checks were successful
Release / release (push) Successful in 30s
ec65d2b67b
Update kit/VERSION to 0.2.1. In tests/kinds.sh and tests/registry.sh, change the EXIT trap from `rm -r` to `rm -rf --` for safer temporary directory cleanup.

- Update version number in kit/VERSION from 0.2.0 to 0.2.1
- Change temp directory cleanup in tests/kinds.sh to use `rm -rf --`
- Change temp directory cleanup in tests/registry.sh to use `rm -rf --`
feat: add bookmark tracking validation before release pushes
All checks were successful
Release / release (push) Successful in 36s
43b1bf71fa
Introduce `bookmark-check` to ensure the local `main` bookmark tracks `main@origin` before pushing or releasing. This prevents accidental pushes of stale branches by failing early if tracking is missing.

- Add `kit/scripts/bookmark-check.sh` to verify that `main` tracks `main@origin`, exiting with an error if not.
- Update `kit/crate.mk` and `tools/kit-release.mk` to run `bookmark-check` before `deps-check` in `jjpush` and before `kit-check` in `jjrelease`.
- Remove `jjnew` from arguments in `jjpush` and `jjrelease` targets.
- Add `tests/bookmark-check.sh` with helper functions `ok`, `ko`, and `check` to test tracking scenarios.
- Update `Makefile` to include `@tests/bookmark-check.sh` in the test suite.
- Update `README.md` to document `make bookmark-check` behavior and `make kit-check` expiration logic.
- Bump version in `kit/VERSION` from 0.2.1 to 0.2.2.
feat: update kit version and refine needs-commit script logic
All checks were successful
Release / release (push) Successful in 17s
3a33d1898b
Update kit version to 0.2.3 and enhance the `needs-commit.sh` script to distinguish between kit bootstrapping changes and significant modifications. This prevents false positives in commit detection when only Makefile variables related to kit setup are altered.

- Update `kit/VERSION` from 0.2.2 to 0.2.3
- Add `makefile_is_kit_bootstrap` function to `kit/scripts/needs-commit.sh` to detect changes in KIT_SRC, crate-kit, and other bootstrapping lines
- Skip processing `Cargo.lock` and `Makefile` if `makefile_is_kit_bootstrap` returns true
- Refine Makefile change significance logic to only consider non-bootstrapping modifications
- Update `tests/needs-commit.sh` to create a test Makefile with modified `KIT_SRC` and `PLUGIN_ID` for validation
docs: translate project documentation and scripts to English
All checks were successful
Release / release (push) Successful in 17s
2624a84623
Translate all user-facing text, comments, and help messages in the kit, templates, and tools from French to English. Update agent instructions and model prompts to reflect the new language setting.

- Translate workflow steps, Makefile targets, and script outputs in `.gitea/workflows/release.yaml`, `Makefile`, and `README.md`.
- Update Claude agent descriptions (`claude/agents/*.md`) and Ollama model files (`ollama/*.Modelfile`) to English.
- Localize shell scripts in `kit/scripts/` and `tools/`, including error messages, success reports, and variable names where appropriate.
- Rename deleted documentation file `docs/autonomize-pmo-crate.md` to `docs/autonomize-crate.md` and add new `docs/claude-config.md`.
- Update test scripts in `tests/` to use English assertions and expected output strings.
Introduce a structured MCP configuration system with `claude/mcp.json` and `claude/hooks.json`, replacing ad-hoc settings. Add `mcp-config.py` to manage installation and validation of MCP servers and hooks. Update all Claude agents to use `serena` for symbol navigation and `context7` for documentation, and enforce `KIT_LANG` for output. Standardize language variables to `PMOJJ_LANG` across build scripts and documentation.

- Add `claude/mcp.json` defining required servers (`backlog`, `codebase-memory-mcp`, `serena`) and denied names/signatures.
- Add `claude/hooks.json` mapping events like `PreToolUse` and `SessionStart` to guard scripts.
- Add `claude/mcp-config.py` with functions to load, merge, install, and check MCP configurations and hooks.
- Add `claude/compact-rules.txt` defining terms for memory management, `serena`, and `context7`.
- Add `claude/hooks/backlog-guard.sh` to prevent manual editing of Backlog files, enforcing MCP usage.
- Add `claude/tests/test-mcp-config.sh` and `claude/tests/test-pre-bash-guard.sh` to validate MCP setup and guards.
- Update `Makefile` to include `claude/` scripts in `SCRIPTS` and run new test targets.
- Update `claude/agents/code-reviewer.md`, `crate-auditor.md`, `explorer.md`, and `task-worker.md` to use `serena` and `context7` tools and enforce `KIT_LANG`.
- Update `claude/install.sh` to merge MCP settings into `<cluster>/.claude/settings.json` and install compact rules.
- Update `claude/hooks/compact-reinject.sh` to source rules from `.claude/compact-rules.txt`.
- Rename `JJ_AI_LANG` and `JJ_RELEASE_LANG` to `PMOJJ_LANG` and `PMOJJ_RELEASE_LANG` in `kit/crate.mk`, `tools/backlog-save.sh`, and `kit/scripts/release-notes.sh`.
- Update `README.md` and `docs/claude-config.md` to reflect new MCP configuration, hook structure, and language variable changes.
Update all Claude agent definitions to enforce Jujutsu (jj) read-only
version control, clarify MCP tool usage (serena, context7,
codebase-memory-mcp), and introduce language-specific compaction rules.
Add a static test script to validate agent prompt structure and tool
declarations.

- Add `claude/tests/test-agents.sh` to validate agent prompts for
  consistent naming, allowed models, language lines, and tool
  declarations; include `bad()` helper for error reporting.
- Update `Makefile` to include the new agent test script in the test
  targets.
- Standardize `claude/agents/code-reviewer.md` to restrict scope to
  Rust, add codebase-memory-mcp tools, and enforce jj read-only rules.
- Refine `claude/agents/crate-auditor.md` to mandate jj read-only
  commands, require reading AGENTS.md/CLAUDE.md for conventions, and
  specify `make coverage` for test measurement.
- Update `claude/agents/explorer.md` to add serena symbol search,
  enforce jj read-only constraints, and define a 15-call search budget.
- Enhance `claude/agents/kit-auditor.md` with kit type definitions and
  jj read-only version control constraints.
- Update `claude/agents/task-planner.md` to use `opus` model and
  mandate codebase-memory-mcp tools for efficient code location.
- Clarify `claude/agents/task-triage.md` to restrict writes to
  `task_edit` on the judged task and enforce jj read-only rules.
- Update `claude/agents/task-worker.md` to add context7 and serena
  tools, enforce jj read-only rules, and define debugging budgets.
- Modify `claude/install.sh` to support language-specific compaction
  rules via `compact-rules.<KIT_LANG>.txt` with a fallback to the
  generic file.
- Add `claude/compact-rules.fr.txt` to provide French-specific
  compaction guidelines for MCP usage.
- Update `docs/claude-config.md` to document compaction rule sources,
  mcp-check behavior, and KIT_LANG usage.
Update all agent prompt files to enforce strict Jujutsu-only version control,
mandate `{{KIT_LANG}}` for reports and tasks, and refine MCP tool usage.
Clarify auditing procedures, filing workflows, and search constraints across
the codebase.

- Restrict version control instructions in `code-reviewer.md`,
  `crate-auditor.md`, `explorer.md`, `kit-auditor.md`, and `task-worker.md`
  to `jj` read commands only, explicitly forbidding `git`.
- Standardize output language requirements across all agents to use
  `{{KIT_LANG}}` for reports, tasks, and notes, while preserving original
  identifiers, paths, and code.
- Refine MCP usage in `code-reviewer.md` and `task-worker.md` to require
  `grep` confirmation for `codebase-memory-mcp` tools and limit `serena`
  to symbol-level navigation.
- Update `crate-auditor.md` and `kit-auditor.md` to clarify auditing scope,
  compliance grid definitions, and filing procedures for actionable findings.
- Modify `explorer.md` to require calling `initial_instructions` before
  using `serena` and remove guidance on unverified information.
- Simplify `task-triage.md` instructions for context handling and annotation,
  and remove the "Decisions needed" section from `task-worker.md`.
- Update `task-planner.md` to include notes on using `codebase-memory-mcp`
  for locating code before reading.
- Adjust `test-agents.sh` grep patterns to validate the new "jj only"
  version control wording in agent files.
docs: standardize agent acceptance criteria and bump version
All checks were successful
Release / release (push) Successful in 17s
9fdcbacb0a
Update agent documentation to enforce verifiable acceptance criteria,
restricting them to tests, commands, grep, or code reading. This change
removes user-dependent or environmental checks from automated workflows
and clarifies handling of unactionable remarks.

- Update `claude/agents/crate-auditor.md` to require one sub-task per
  finding with specific priority and type labels, introduce a `dry-run`
  option, and mandate listing unactionable remarks under "Not handled".
- Refine `claude/agents/kit-auditor.md` to exclude user habits and
  environment checks from low-priority findings, ensuring all criteria
  are agent-verifiable.
- Add directives to `claude/agents/task-triage.md` allowing addition of
  verifiable acceptance criteria while forbidding removal or status
  changes by the agent.
- Modify `claude/agents/task-worker.md` to restrict ticking criteria to
  verifiable items, reporting unmeetable criteria under "Decisions
  needed:", and retaining existing status workflow rules.
- Update `claude/compact-rules.txt` and `claude/compact-rules.fr.txt` to
  define acceptance criteria as agent-verifiable only, excluding user
  actions, and requiring `make mcp-check` for MCP verification.
- Bump `kit/VERSION` from 0.2.4 to 0.2.5.
Refactor the release workflow to use a dedicated script for checking Git tag existence, and enhance shell command guards to protect backlog files and prevent dangerous operations.

- Add `kit/scripts/tag-exists.sh` to check for `version-<version>` tags using `jj`, exiting with codes for found, missing, or unreachable states.
- Update `kit/scripts/bump-version.sh` and `tools/kit-release.mk` to use `tag-exists.sh` instead of direct remote tag checks, adding warnings for unreachable remotes and instructions for forcing versions.
- Add `tests/tag-exists.sh` to test the new tag-checking script across various repository states, including local, remote, and missing tags.
- Update `Makefile` to include `@tests/tag-exists.sh` in the test suite.
- Enhance `claude/hooks/pre-bash-guard.sh` to block dangerous commands like `rm -rf` and restrict shell writes to backlog files (tasks, drafts, archive, completed, etc.).
- Update `claude/hooks/backlog-guard.sh` to recognize `completed` files in the backlog pattern alongside existing patterns.
- Add tests in `claude/tests/test-pre-bash-guard.sh` and `claude/tests/test-mcp-config.sh` to verify refusal of dangerous commands and unauthorized backlog modifications.
- Add `template-kit/secrets/README.md` documenting secret management, token usage, and security restrictions.
- Update `template-kit/.gitignore` to ignore `/secrets/*` but explicitly include `/secrets/README.md`, clarifying that secrets should not be committed.
refactor: switch to lightweight tags and update release tooling
All checks were successful
Release / release (push) Successful in 16s
8575e4d7b0
Update the release workflow to use Jujutsu lightweight tags instead of
annotated Git tags. This change simplifies tag creation and aligns the
release process with Jujutsu's native tagging mechanism. The version is
bumped to 0.3.0 to reflect these changes.

- Bump version in `kit/VERSION` from 0.2.5 to 0.3.0
- Modify `kit/scripts/tag.sh` to create lightweight tags using `jj tag set`
  and `jj git push --tag`, expecting release notes in `$RELEASE_NOTES_DIR`
- Update `kit/scripts/forgejo-release.sh` to handle lightweight tags by
  reading release notes from files when tag messages are empty
- Add `tests/tag.sh` to test lightweight tag creation, including success,
  failure, and duplicate tag scenarios
- Update `tests/forgejo-release.sh` to support lightweight tag testing by
  writing release notes to a temporary directory and verifying API payloads
- Add `@tests/tag.sh` to the test targets in `Makefile`
- Update `README.md` to document new `jj` aliases (`auto-doc`,
  `release-notes`, `git`) and required tools (`cargo-doc-md`, `jq`, `curl`)
refactor: update version bump logic and add tag script tests
All checks were successful
Release / release (push) Successful in 16s
235bf68726
Update the version number to 0.3.1 and refine the `current_version` function in `kit/scripts/common.sh` to prioritize `VERSION_FILE` or `CARGO_TOML` for version extraction. Add tests in `tests/tag.sh` to verify tag creation behavior and error handling when version sources are missing.

- Bump version in `kit/VERSION` from 0.3.0 to 0.3.1.
- Modify `current_version` in `kit/scripts/common.sh` to use `head -n 1` on `VERSION_FILE` if set, extract from `CARGO_TOML` if available, or fall back to `kit/VERSION`/`overlay/kit/VERSION`, returning an error if no source is found.
- Add `tests/tag.sh` to test tag creation, ensuring it cleans up temporary directories, unsets environment variables, and verifies that tagging fails gracefully when no version source is present.
refactor: replace jj new with new-commit script
All checks were successful
Release / release (push) Successful in 16s
3dad01c303
Introduce a new `new-commit.sh` script that conditionally creates a new
Jujutsu commit only if the current commit is not empty. This prevents
creating unnecessary empty commits during push and release workflows.
Update all relevant Makefiles to use this script instead of the raw
`jj new` command, and bump the kit version to 0.3.2.

- Add `kit/scripts/new-commit.sh` which sources `common.sh` and checks
  if the current commit is empty; if so, it exits successfully,
  otherwise it runs `jj new`.
- Add `tests/new-commit.sh` with helper functions `ok`, `ko`, and
  `current` to test scenarios including blank commits, commits with
  changes, and described but empty commits.
- Update `Makefile` to include the new test script in the test suite.
- Replace `@jj new` with `@$(KIT_DIR)/scripts/new-commit.sh` in the
  `jjpush` and `jjrelease` targets of `kit/crate.mk`.
- Replace `@jj new` with `@$(JJ_KIT_DIR)/scripts/new-commit.sh` in
  `kit/jj.mk` and change the success message to "Done".
- Replace `@jj new` with `@$(CRATE_KIT_DIR)/kit/scripts/new-commit.sh`
  in the `jjpush` and `jjrelease` targets of `tools/kit-release.mk`.
- Bump version in `kit/VERSION` from 0.3.1 to 0.3.2.
refactor: restructure forge token handling and extension kit setup
All checks were successful
Release / release (push) Successful in 16s
5b1a3996f8
Update the extension kit to support hierarchical forge token files based on
host, owner, and repository, replacing the single-file layout. This change
introduces new helper functions for parsing URLs and locating secrets, updates
documentation to reflect the new precedence rules, and adds tests for the
token resolution logic.

- Add `forge_secrets_dir` and `forge_parse_url` functions to
  `kit/scripts/common.sh` to construct secret paths and parse registry URLs.
- Modify `forge_token` in `kit/scripts/common.sh` to look for tokens in
  `secrets/<host>/<owner>/<repo>.token` before falling back to
  `$FORGE_TOKEN_FILE`.
- Update `adopt-kit.sh` to generate extension kits with the new secret
  directory structure and remove references to the old `secrets/forge-token`
  file.
- Add `tests/forge-token.sh` to verify token precedence rules, including
  handling of `FORGETOKEN`, `FORGE_TOKEN_FILE`, and hierarchical files.
- Update `Makefile` to export `FORGE_SECRETS_DIR` for tests and include the
  new `forge-token.sh` test case.
- Delete `template-kit/secrets/README.md` as the single-token layout is
  deprecated; update `template-kit/README.md` to document the new
  `secrets/<host>.token` structure.
- Update `README.md` to document the new token file structure, precedence
  rules, and security requirements (mode 0600, first line only).
- Modify `kit/dev-patch.mk` to remove the include of `org.mk` and add
  `CARGO_TOML` default, clarifying that organization-specific values are
  provided by the extension.
- Update `template-kit/.gitignore` to remove the blanket `secrets/*` ignore
  and add `/dist/`, allowing specific secret files to be tracked if needed.
- Update `tests/adopt-kit.sh` to exclude `secrets/README.md` and
  `overlay/kit/VERSION` from the kit assembly check.
- Bump kit version in `kit/VERSION` from 0.3.2 to 0.3.3.
All checks were successful
Release / release (push) Successful in 16s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin main:main
git switch main

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch push-uqpokywxstyt
git merge --no-ff main
git switch main
git rebase push-uqpokywxstyt
git switch push-uqpokywxstyt
git merge --ff-only main
git switch main
git rebase push-uqpokywxstyt
git switch push-uqpokywxstyt
git merge --no-ff main
git switch push-uqpokywxstyt
git merge --squash main
git switch push-uqpokywxstyt
git merge --ff-only main
git switch push-uqpokywxstyt
git merge main
git push origin push-uqpokywxstyt
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
LLM/crate-kit!1
No description provided.