From 1b5695e0da1ed5d5bf2ec33c6942b24d9e8db4a8 Mon Sep 17 00:00:00 2001 From: Lucas Tavano Date: Sat, 14 Nov 2026 06:59:11 -0300 Subject: [PATCH] Prepare v1.2.1 with Git and Hex instructions and working package links --- .github/workflows/ci.yml | 3 ++- CHANGELOG.md | 13 ++++++++++--- CONTRIBUTING.md | 3 ++- README.md | 19 +++++++++++++------ docs/INSTALL_WITH_AI.md | 17 ++++++++++------- docs/README.pt-BR.md | 17 ++++++++++++----- docs/architecture.md | 5 +++-- docs/provenance.md | 8 ++++---- docs/versioning.md | 7 +++++-- mix.exs | 2 +- scripts/check_package_links.py | 34 ++++++++++++++++++++++++++++++++++ scripts/smoke_install.py | 2 +- 12 files changed, 97 insertions(+), 33 deletions(-) create mode 100644 scripts/check_package_links.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cfe730..e10fef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,4 +38,5 @@ jobs: python3 scripts/smoke_install.py --git-url "$GITHUB_WORKSPACE" --ref "$GITHUB_SHA" --deps-path "vendor/deps (shared)" - run: python3 scripts/smoke_migration.py - run: mix local.hex --force - - run: mix hex.build + - run: mix hex.build --output "$RUNNER_TEMP/kit.tar" + - run: python3 scripts/check_package_links.py "$RUNNER_TEMP/kit.tar" diff --git a/CHANGELOG.md b/CHANGELOG.md index 96e4f23..720caab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,19 @@ # Changelog +## 1.2.1 — 2026-11-14 + +- Patch release: English, Portuguese and agent installation guides distinguish + Git tags from published Hex versions. Eight links to evaluation reports now + open the versioned GitHub sources from inside the package. The installer and + all 38 workflows are unchanged. This release is on GitHub only. + ## 1.2.0 — 2026-11-13 - Minor release: adds decision guidance to existing workflows. Workflow IDs, installer behavior, configuration and dependencies remain compatible. - UI identity now checks which states a person sees together and whether the proposed next action is reachable. The [blind class handover - review](evals/results/2026-11-13-ui-identity-handover.md) cleared the release + review](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-ui-identity-handover.md) cleared the release hold: both candidate runs grounded the recovery action in the supplied evidence; both baseline runs assumed a destination. @@ -17,7 +24,7 @@ existing gesture on stale commands, distinguish examined from changed data, verify everything included in a bundle, separate editable recovery from publication, and review composed fields, clipped navigation and reduced-motion - end states. The [catalog field round](evals/results/2026-11-13-catalog-field-round.md) + end states. The [catalog field round](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-catalog-field-round.md) records the original evidence and the initial hold on UI identity. ## 1.1.0 — 2026-11-13 @@ -26,7 +33,7 @@ fix to prioritize a failure scenario. Small reviews skip this step. The existing workflow IDs, installer, configuration and dependencies are unchanged. - Architecture review now describes unfiltered Mix xref cycles as groups across - all dependency labels. The [closed pilot](evals/results/2026-11-13-architecture-prioritization.md#production-follow-up) + all dependency labels. The [closed pilot](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-architecture-prioritization.md#production-follow-up) confirmed 19 fewer recompiled sources with the real adapter still enabled. No analyzer or additional review step is required. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 14f78a5..881a545 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,8 @@ mix check python3 scripts/check_library.py python3 scripts/smoke_install.py python3 scripts/smoke_migration.py -mix hex.build +mix hex.build --output elixir_agent_kit-local.tar +python3 scripts/check_package_links.py elixir_agent_kit-local.tar ``` `mix check` checks formatting, compiles with warnings as errors and runs ExUnit diff --git a/README.md b/README.md index 990fa7e..ae219af 100644 --- a/README.md +++ b/README.md @@ -34,19 +34,26 @@ shipped to production. ## Quick start -Requires Elixir 1.15+, a compatible Erlang/OTP and Git. Releases are public Git -tags, **not Hex**; no token is needed. +Requires Elixir 1.15+ and a compatible Erlang/OTP. Use Git to install this +GitHub release; a public tag does not require credentials. -**1. Add the dependency** to `deps/0` in `mix.exs`: +**1. Choose one dependency** for `deps/0` in `mix.exs`. For Git, pin the tag: ```elixir {:elixir_agent_kit, git: "https://github.com/sallaumen/elixir-agent-kit.git", - tag: "v1.2.0", + tag: "v1.2.1", only: [:dev, :test], runtime: false} ``` +For Hex, use the following **instead of** the Git entry only after version +1.2.1 is published on hex.pm. Until then, use the Git tag above. + +```elixir +{:elixir_agent_kit, "== 1.2.1", only: [:dev, :test], runtime: false} +``` + **2. Choose the agents and workflows** in `project/0`: ```elixir @@ -124,7 +131,7 @@ is opened: scope, changes persisted data or a public contract, or has an irreversible step; authority rules, the mode and the workflow's own stop conditions still apply. -The routing cases in [`evals/`](evals/README.md) hold 87 requests like that one, +The routing cases in [`evals/`](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/README.md) hold 87 requests like that one, with the expected workflow and the signals of a good or bad answer. They stay out of the installed payload so an agent never sees the answer key. @@ -212,7 +219,7 @@ your application or calls a model. ## Upgrades and one shared source 1. Read the [changelog](CHANGELOG.md); `mix agent_kit.outdated` tells you whether a newer tag exists. -2. Change the tag in `mix.exs` and run `mix deps.update elixir_agent_kit`. +2. For Git, change the tag; for Hex, first confirm the release on hex.pm, then change the version requirement in `mix.exs`. Run `mix deps.update elixir_agent_kit`. 3. Run `mix agent_kit.sync --dry-run`, inspect, then `mix agent_kit.sync`. 4. Run `mix agent_kit.check` and your project gates; commit the diff. diff --git a/docs/INSTALL_WITH_AI.md b/docs/INSTALL_WITH_AI.md index 062c7e5..7361913 100644 --- a/docs/INSTALL_WITH_AI.md +++ b/docs/INSTALL_WITH_AI.md @@ -5,20 +5,23 @@ consuming Elixir project. Review the resulting diff and evidence under your project's existing delivery policy. The prompt grants no new paid calls or deploys. ```text -Install or migrate Elixir Agent Kit v1.2.0 in this Elixir project using its +Install or migrate Elixir Agent Kit v1.2.1 in this Elixir project using its reference-only layout. Read the project's instructions and the versioned guide: -https://github.com/sallaumen/elixir-agent-kit/blob/v1.2.0/README.md +https://github.com/sallaumen/elixir-agent-kit/blob/v1.2.1/README.md and compatibility: -https://github.com/sallaumen/elixir-agent-kit/blob/v1.2.0/docs/compatibility.md +https://github.com/sallaumen/elixir-agent-kit/blob/v1.2.1/docs/compatibility.md 1. Inspect the working tree, Mix project, existing instruction files, dependency aliases and any previous .elixir-agent-kit/state.tsv. Preserve unrelated work; use an isolated branch/worktree under this project's rules. -2. In the existing deps/0 add or update exactly one dependency: +2. In the existing deps/0 keep exactly one declaration. For the GitHub release use: {:elixir_agent_kit, git: "https://github.com/sallaumen/elixir-agent-kit.git", - tag: "v1.2.0", only: [:dev, :test], runtime: false} - It is public: no token in source. Do not claim it is published to Hex. + tag: "v1.2.1", only: [:dev, :test], runtime: false} + For Hex, verify that hex.pm lists 1.2.1 before using this alternative: + {:elixir_agent_kit, "== 1.2.1", only: [:dev, :test], runtime: false} + If the version is unavailable, use Git for a new installation. For an existing + Hex dependency, report the unavailable version; do not silently switch sources. 3. In project/0 set elixir_agent_kit: [agents: [:codex, :claude, :generic], skills: :all], unless this project already has a deliberately narrower selection. 4. Fetch dependencies (deps.get for new install; deps.update elixir_agent_kit for @@ -49,7 +52,7 @@ https://github.com/sallaumen/elixir-agent-kit/blob/v1.2.0/docs/compatibility.md name does not establish compatibility. Do not claim live compliance from file checks. 10. Explain maintenance: reusable lessons are proposed upstream through the kit's EVOLUTION.md; product-specific rules remain local. Use mix agent_kit.outdated - explicitly to discover stable releases; no background or unpinned update. + to check stable Git tags; it does not check Hex availability. 11. Run project-required checks, inspect the diff and stage files by name. Commit dependency, lock, index/state, plans/.gitignore, references and removal of obsolete owned files together. Follow existing PR/merge authority. Report exact files/counts, diff --git a/docs/README.pt-BR.md b/docs/README.pt-BR.md index 352241c..2bbcc99 100644 --- a/docs/README.pt-BR.md +++ b/docs/README.pt-BR.md @@ -29,19 +29,26 @@ modelo, nada vai para produção. ## Começo rápido -Requer Elixir 1.15+, Erlang/OTP compatível e Git. As releases são tags públicas do -Git, **não Hex**; não há token. +Requer Elixir 1.15+ e Erlang/OTP compatível. Para instalar esta release do +GitHub, use Git. A tag pública dispensa credenciais. -**1. Adicione a dependência** em `deps/0` no `mix.exs`: +**1. Escolha uma fonte** em `deps/0` no `mix.exs`. Para Git, fixe a tag: ```elixir {:elixir_agent_kit, git: "https://github.com/sallaumen/elixir-agent-kit.git", - tag: "v1.2.0", + tag: "v1.2.1", only: [:dev, :test], runtime: false} ``` +Para usar o Hex, substitua a entrada Git pelo exemplo abaixo **somente depois +que a versão 1.2.1 estiver publicada no hex.pm**. Até lá, use a tag acima. + +```elixir +{:elixir_agent_kit, "== 1.2.1", only: [:dev, :test], runtime: false} +``` + **2. Escolha agentes e workflows** em `project/0`: ```elixir @@ -211,7 +218,7 @@ inicia a sua aplicação nem chama um modelo. ## Atualizações e uma fonte só 1. Leia o [changelog](../CHANGELOG.md); `mix agent_kit.outdated` diz se existe tag mais nova. -2. Troque a tag no `mix.exs` e rode `mix deps.update elixir_agent_kit`. +2. No `mix.exs`, troque a tag Git ou, para Hex, fixe a versão depois de confirmar sua publicação no hex.pm. Rode `mix deps.update elixir_agent_kit`. 3. Rode `mix agent_kit.sync --dry-run`, inspecione, depois `mix agent_kit.sync`. 4. Rode `mix agent_kit.check` e os gates do seu projeto; versione o diff. diff --git a/docs/architecture.md b/docs/architecture.md index 915668d..8e91ac5 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -6,7 +6,8 @@ One Mix project contains CLI tasks, an installer and canonical `priv/library/` guidance. No application callback, supervision tree, database, model client or third-party dependency is installed. `:crypto` supplies ownership checksums. -Consumers pin an immutable tag and commit the lockfile. Mix downloads the source; +Consumers pin a Git tag or a published Hex version and commit the lockfile. +Mix fetches the chosen dependency; agents read it directly from the dependency. `catalog.tsv` owns workflow metadata (ID, mode, trigger and primary area), `ROUTING.md` explains area choice, `CATALOG.md` is the grouped human index, `skills/` contains the workflow bodies, and @@ -38,7 +39,7 @@ Configuration selects instruction adapters and workflow IDs for routing. It does not prevent reading other workflows. Clients must load project instructions and be able to read the ignored dependency directory after `mix deps.get`. -Mix resolves custom dependency paths. Git dependencies normally generate relative, +Mix resolves custom dependency paths. Git and Hex dependencies inside the project generate relative, portable links; an external local path dependency needs a machine-local absolute link and resync after relocation. Markdown destinations encode special characters. diff --git a/docs/provenance.md b/docs/provenance.md index 22a3f21..5049cff 100644 --- a/docs/provenance.md +++ b/docs/provenance.md @@ -28,7 +28,7 @@ This English community edition adapts 33 workflows developed by Lucas Tavano wit | `metrics-costs` | `metricas-e-custos` | | `operational-alerts` | `alertas-operacionais` | | `simulation-isolation` | `simulacao-e-producao` | -| `test-strategy` | `estrategia-de-testes` and `testes-redundantes` (merged in 0.5); existing-coverage stopping rule from the [inverse control](../evals/results/2026-11-13-test-strategy-baseline.md#inverse-control-the-fallback-already-has-a-witness) | +| `test-strategy` | `estrategia-de-testes` and `testes-redundantes` (merged in 0.5); existing-coverage stopping rule from the [inverse control](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-test-strategy-baseline.md#inverse-control-the-fallback-already-has-a-witness) | | `code-review` | `code-review` | | `debugging` | `investigar-bugs` | | `security-boundaries` | `seguranca-e-permissoes` | @@ -154,7 +154,7 @@ documentation or source of the version named; no passage is reproduced. The review added `pipelines.md`, `architecture.md`, `library-authoring.md` and `agent-loop.md`, expanded `code-shape.md` with the anti-pattern vocabulary, and added the `data-pipelines` workflow for flows of many items, whose CI namesake -`pipeline-design` now points to it. A later [paired engineering exercise](../evals/results/2026-11-13-engineering-ab.md) contributed the distinction between records examined and records changed in a paged repair. +`pipeline-design` now points to it. A later [paired engineering exercise](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-engineering-ab.md) contributed the distinction between records examined and records changed in a paged repair. ## Refactoring workflows in 0.8 @@ -171,6 +171,6 @@ detail, comments that carry information, visible error flow) through the Elixir anti-pattern vocabulary in `elixir/code-shape.md`. The book is a concept-only reference in the same way: no passage was consulted for wording or reproduced. -The [catalog field round](../evals/results/2026-11-13-catalog-field-round.md) records original, application-derived experiments behind the 2026-11-13 workflow corrections. The application snapshots and the evaluator's answers are not installed as client instructions. +The [catalog field round](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-catalog-field-round.md) records original, application-derived experiments behind the 2026-11-13 workflow corrections. The application snapshots and the evaluator's answers are not installed as client instructions. -The [class handover holdout](../evals/results/2026-11-13-ui-identity-handover.md) supports the additional UI identity decision points. The installed text is the general candidate tested across screens; no application rule or fixture is shipped. +The [class handover holdout](https://github.com/sallaumen/elixir-agent-kit/blob/c2ff7e5be2a08fdfab757d101e95036069634396/evals/results/2026-11-13-ui-identity-handover.md) supports the additional UI identity decision points. The installed text is the general candidate tested across screens; no application rule or fixture is shipped. diff --git a/docs/versioning.md b/docs/versioning.md index 538a258..1df4832 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -136,7 +136,9 @@ delivery-validation ## Versioning policy -Releases are public Git tags, never Hex. The version number follows semantic +Each release has an immutable public Git tag. Publication on hex.pm is a separate +step: a GitHub release does not establish that the package is available there. +When both are published, the Hex package is built from that same tag. The version number follows semantic versioning. The installed artifact is guidance plus a small installer, so the meaning of a bump is stated in terms of what an agent reads and what a consumer must do: @@ -178,7 +180,8 @@ No workflow ID is removed without this record, and no published tag is moved. 1. Read the [changelog](../CHANGELOG.md); `mix agent_kit.outdated` tells whether a newer tag exists. -2. Change the tag in `mix.exs` and run `mix deps.update elixir_agent_kit`. +2. Set the Git tag or exact Hex version in `mix.exs`. For Hex, verify that the version + is published on hex.pm; the Git tag check does not query the registry. Run `mix deps.update elixir_agent_kit`. 3. Run `mix agent_kit.sync --dry-run`, inspect the paths and removals, then `mix agent_kit.sync`. 4. Run `mix agent_kit.check` and the project's own gates; commit the diff. diff --git a/mix.exs b/mix.exs index 4b19fae..5379e9d 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule ElixirAgentKit.MixProject do def project do [ app: :elixir_agent_kit, - version: "1.2.0", + version: "1.2.1", elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: [], diff --git a/scripts/check_package_links.py b/scripts/check_package_links.py new file mode 100644 index 0000000..cc77f3c --- /dev/null +++ b/scripts/check_package_links.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +"""Check Markdown file destinations against the actual Hex archive, not the checkout.""" +import io +import posixpath +import re +import sys +import tarfile +from urllib.parse import unquote, urlsplit + + +def check(archive): + with tarfile.open(archive) as outer: + with tarfile.open(fileobj=io.BytesIO(outer.extractfile("contents.tar.gz").read())) as inner: + files = {entry.name for entry in inner if entry.isfile()} + errors, checked = [], 0 + for source in sorted(name for name in files if name.endswith(".md")): + text = inner.extractfile(source).read().decode() + for target in re.findall(r'\]\(([^)]+)\)', text): + url = urlsplit(target) + if url.scheme or url.netloc or not url.path: + continue + checked += 1 + path = posixpath.normpath(posixpath.join(posixpath.dirname(source), unquote(url.path))) + if path not in files: + errors.append(f"{source}: missing from archive: {target}") + if errors: + raise SystemExit("\n".join(errors)) + print(f"OK: {checked} local Markdown file references resolve inside {archive}.") + + +if __name__ == "__main__": + if len(sys.argv) != 2: + raise SystemExit("Usage: python3 scripts/check_package_links.py PACKAGE.tar") + check(sys.argv[1]) diff --git a/scripts/smoke_install.py b/scripts/smoke_install.py index b3d443e..6703b92 100644 --- a/scripts/smoke_install.py +++ b/scripts/smoke_install.py @@ -12,7 +12,7 @@ parser = argparse.ArgumentParser() parser.add_argument("--git-url", help="Fetch a real published Git dependency instead of the local package") -parser.add_argument("--ref", default="v1.2.0") +parser.add_argument("--ref", default="v1.2.1") parser.add_argument("--deps-path", default="deps", help="Consumer dependency directory, relative to its root") args = parser.parse_args() if Path(args.deps_path).is_absolute() or ".." in Path(args.deps_path).parts: