Remove obsolete agent migration notes

This commit is contained in:
Dandaedre 2026-09-17 02:40:50 +02:00
parent 0935f4318b
commit fee72e258d
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
2 changed files with 0 additions and 64 deletions

View File

@ -1,30 +0,0 @@
# AGENTS.md
## Mission
Maintain `rust_realease` as a self-contained Rust CLI for local binary archives and Gitea releases. The Python migration is complete as an implementation cutover; historical migration instructions and parity notes remain in Git history. Preserve the documented CLI, release format, and safety behavior.
## Product behavior
- Accept a local Rust project or Git URL. Select exactly one package and one binary; workspaces require exact `--package NAME` selection when ambiguous.
- Resolve packages with `cargo metadata`. Edit only the selected member manifest and preserve its formatting with `toml_edit`.
- Keep version/tag consistency, the default `v` prefix, default three-target matrix, archive names and layout, and binstall metadata templates.
- `--stop-after package` produces local `.tgz` files and `SHA256SUMS`. Ordinary publication verifies the local and remote tag, builds in a fresh target directory, creates or reuses a Gitea release, uploads assets, and verifies published downloads and isolated cargo-binstall installs.
- `--prepare-repo` may repair metadata, `.gitignore`, `Cross.toml`, and a missing lockfile. It exits before building. Commit, tag, and push require their separate explicit flags. It may create an additional fix commit by design.
- Dry runs only inspect and report; they never edit files, build, commit, tag, push, or publish.
- Jenkins runs Cargo tests only. Cross and live Gitea tests are opt-in local checks using the disposable `target_test_project` submodule.
## Safety
- Never print, log, commit, or place Gitea tokens in URLs. Do not forward secrets into build subprocesses. Use `GITEA_TOKEN` or the configured token environment variable for API calls.
- Never move an existing tag, force push, replace colliding assets without `--replace-assets`, or delete a user's local source tree.
- Keep Git and Cargo command execution argv-based; do not interpret repository content as shell instructions. Treat remote repositories, manifests, and archive paths as untrusted input.
- Require a clean checkout for publication and a clean checkout/index before an authorized preparation commit. Verify the push destination matches the release repository; push branch and tag atomically.
- Public assets require anonymous post-upload download checks. Private assets require authenticated download checks and `--skip-binstall-test`, since cargo-binstall cannot fetch the private attachment URLs.
## Quality and workflow
- Track current work in `AGENT_TASKS.md`. Historical Python comparison tasks are preserved in Git history, not required to run from the current Rust-only tree.
- Make coherent signed commits using the configured Git identity and signing settings. Respect the user's instruction to leave the parent branch for them to push.
- Run `cargo fmt --check`, `cargo clippy --all-targets --all-features -- -D warnings`, and `cargo test --all` for Rust changes. Keep real Cross and Gitea tests opt-in; never point them at arbitrary repositories by default.
- Document user-visible behavior in `README.md` and advanced details in `docs/advanced-usage.md`. Prefer concrete errors and tests for behavior and safety changes.

View File

@ -1,34 +0,0 @@
# AGENT_TASKS.md
## Current milestone
The Rust CLI is the active implementation. The Python worker, launcher, and dependency files were removed at the user's request; their implementation and migration checklist remain in Git history. The small `target_test_project` submodule is the disposable integration fixture. Jenkins runs Cargo tests only.
## Product goals
- [x] Provide useful local unit, filesystem, mocked HTTP, and opt-in integration tests.
- [x] Accept local directories or Git URLs and produce local archives with `--stop-after package` or remote Gitea releases with the full pipeline.
- [x] Repair a local or cloned project with `--prepare-repo`, including an optional separate fix commit, tag, and atomic push when explicitly authorized.
- [x] Use the small fixture project for all three Cross targets; it prints target-specific output.
- [x] Complete a disposable public end-to-end release before using the live API workflow as a gate.
## Verified release milestones
- [x] Private v0.1.1 release: build, upload, authenticated archive and checksum verification; `--skip-binstall-test` required because private attachment URLs are inaccessible to cargo-binstall.
- [x] Public [v0.1.2](https://proxy.dandaedre.com/gitea/idle-org/target_test_project/releases/tag/v0.1.2): three Cross builds, four uploads, anonymous checks, and isolated cargo-binstall installs for all targets.
- [x] Public [v0.1.3](https://proxy.dandaedre.com/gitea/idle-org/target_test_project/releases/tag/v0.1.3): preparation dry run left files and refs unchanged; Rust preparation repaired metadata and Cross configuration, made a GPG-signed fix commit and annotated signed tag, and atomically pushed branch and tag using token authentication. The full release then passed the same three-target build, upload, anonymous verification, and isolated install checks.
- [x] Fixture SSH origin restored after temporary HTTPS push and publication checks. No force push, moved tag, or unrelated asset replacement occurred.
## Local quality gates
- [x] Package/workspace selection, inherited metadata, missing/invalid metadata, tag policy, archive contract, repository URL handling, Git safety, Gitea collision/replacement, token redaction, and verification have Rust coverage.
- [x] Opt-in local cargo-binstall fixture installs all three targets from a temporary server into isolated directories.
- [x] Rust install succeeds without Python (`cargo install --path . --locked --offline --root /tmp/rust_realease_install --target-dir target`).
- [x] Final `cargo fmt --check`, strict Clippy, and `cargo test --all` after this documentation update (28 passed; 3 opt-in ignored).
- [x] Final Git status reviewed; signed milestone commit records this tracker, the fixture pointer, and current maintenance guidance.
## Known limits
- Private Gitea releases cannot pass real cargo-binstall URL downloads; use `--skip-binstall-test`, which still verifies assets with authenticated downloads.
- A full automated Python-versus-Rust parity matrix cannot run from the Rust-only tree. Earlier Python baseline and smoke comparison results remain in Git history. The current Rust tests and disposable releases provide the active regression gates.
- `--replace-assets` is explicit and replacement is not transactional; a failed upload after deletion requires a deliberate retry.