agent_harness -> rein_aharness (package + all imports), CLI command agent-harness -> rein-aharness, Docker image tag, k8s namespace/labels/ names, Makefile targets, deploy script env var/paths. In-repo identity strings (hub event source, metrics harness field, default assignee, argparse prog name, commit author identity) updated to match. Historical documents left untouched on purpose: docs/adr/ADR-001-agent-harness-architecture.md, docs/architecture.md (dated v0.1 snapshot), workplans/HARNESS-WP-0001 (completed under the old name), and the SSH host alias "forgejo-agent-harness" (external ~/.ssh/config entry, not owned here). Verified: 47/47 tests pass, CLI runs correctly from a fresh venv, `make image` builds and the resulting container runs correctly. deploy/README.md gained an explicit rename cutover checklist for what this session cannot safely do unattended -- moving the host-side secrets dir and checkout on railiance01, and not deleting the old k8s namespace until the new one is confirmed working. The actual live cutover (running that checklist against the real Railiance deployment) is not attempted here -- real production surgery on binky-control's live automation, needs the operator present. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
.PHONY: test image image-export deploy-rsync help
|
|
|
|
UV ?= $(shell command -v uv 2>/dev/null || echo uv)
|
|
IMAGE ?= rein-aharness:railiance01
|
|
TAR ?= /tmp/rein-aharness-railiance01.tar
|
|
|
|
help: ## Show targets
|
|
@grep -Eh '^[a-zA-Z_-]+:.*?##' $(MAKEFILE_LIST) | \
|
|
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-16s\033[0m %s\n", $$1, $$2}'
|
|
|
|
test: ## Run unit tests
|
|
PYTHONPATH=".:$$HOME/llm-connect" python3 -m pytest tests/ -q
|
|
|
|
image: ## Build container image (vendors ../llm-connect when present)
|
|
rm -rf llm_connect_vendor
|
|
mkdir -p llm_connect_vendor
|
|
if [ -d ../llm-connect/llm_connect ]; then \
|
|
cp -a ../llm-connect/llm_connect ../llm-connect/pyproject.toml ../llm-connect/README.md llm_connect_vendor/ 2>/dev/null || \
|
|
cp -a ../llm-connect/llm_connect ../llm-connect/pyproject.toml llm_connect_vendor/; \
|
|
touch llm_connect_vendor/README.md; \
|
|
fi
|
|
docker build -f Containerfile -t $(IMAGE) .
|
|
rm -rf llm_connect_vendor
|
|
|
|
image-export: image ## Save image tar for k3s import
|
|
docker save -o $(TAR) $(IMAGE)
|
|
@ls -lh $(TAR)
|
|
|
|
deploy-rsync: ## Rsync tree to railiance01:~/rein-aharness
|
|
rsync -az --delete \
|
|
--exclude '.git' --exclude '__pycache__' --exclude '.pytest_cache' \
|
|
--exclude 'llm_connect_vendor' --exclude '*.egg-info' \
|
|
./ railiance01:rein-aharness/
|