Commit graph

131 commits

Author SHA1 Message Date
9d996d7936 Normalize repository validation and metadata
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Successful in 1m21s
2026-08-20 11:04:43 +02:00
d4a4560a8d Migrate kaizen distribution to Forgejo
All checks were successful
ci / test (push) Successful in 2m21s
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
2026-08-20 09:43:49 +02:00
f027ee5492 Add KAIZEN-WP-0010 — migrate package distribution to forgejo before 2026-08-31
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Successful in 2m9s
Drafted by prj-state-hub-retirement from the estate-wide gitea sweep.
kaizen-agentic appears to be the only repo that never migrated off the gitea
PyPI index, which dies with CoulombCore on 2026-08-31. The Makefile publishes
there and six documents instruct users to install from it.

The workplan's one structural rule is publish-before-repoint: changing the docs
first points users at a 404 instead of a soon-to-be-404, and today's
instructions at least work.

Proposed and unapplied — the packaging decisions belong to this repo.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 09:02:25 +02:00
9897f2452c Adopt Target Revenue Source License V1C1 (org-wide preliminary rollout)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
ci / test (push) Successful in 2m53s
CI Smoke / container-smoke (push) Successful in 1s
Maintainer decision, 2026-07-29: adopts TRSL V1C1 as this repo's
preliminary governing license, per target-revenue's
workplans/TREV-WP-0008-governance-and-pilot-rollout.md T05. Full
specialist legal review is deferred until out of beta (target-revenue
SCOPE.md §1). No Phase is yet declared for this repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-30 00:27:14 +02:00
16cafc3e67 ops: railiance01 reboot for capacity; guest still 2 vCPU / 3.8 GiB
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Successful in 2m25s
Soft reboot did not pick up reported 4/16 flavor; provider resize still required.
2026-07-22 00:37:53 +02:00
830276e46a ops: capacity recheck railiance01 still 2 vCPU / 3.8 GiB
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Successful in 2m31s
Operator 4/16 upgrade still not visible in guest as of 2026-07-21.
2026-07-21 04:14:47 +02:00
d64e50065a fix: clear flake8 errors blocking Forgejo CI
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
ci / test (push) Successful in 2m37s
Publish Python package / publish (push) Successful in 1m25s
Break long lines in engagement scaffolding, drop unused Callable import,
and simplify the metrics-cron f-string replace in engagement_promote.
2026-07-18 18:07:00 +02:00
f283b4a1ee ci: fix Forgejo Python workflows for node:20-bookworm runner
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Failing after 40s
ubuntu-latest maps to docker://node:20-bookworm with python3 but no pip.
Install python3-pip via apt (reuse-surface pattern), use short-SHA archive
checkout, and --break-system-packages for PEP 668. Unblocks CUST-WP-0059 T05.
2026-07-18 18:05:46 +02:00
776b7f8cc4 ops: note railiance01 capacity upgrade claim vs live guest size
Some checks failed
CI Smoke / container-smoke (push) Successful in 2s
ci / test (push) Failing after 5s
CI Smoke / host-smoke (push) Successful in 0s
Operator reported 4 vCPU / 16 GiB; verify shows guest still 2 / 3.8 GiB
after recent reboot. Document check report and keep open thread until
nproc/free match the new flavor.
2026-07-16 14:33:48 +02:00
06037b0486 docs: UFW k3s API admin allowlist procedure for host-operator
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
ci / test (push) Failing after 9s
CI Smoke / container-smoke (push) Successful in 4s
Add reusable protocol, wire it in ROLE.yaml, and document the current
railiance01 allowlist plus quick commands in the pilot access-plan.
2026-07-16 14:04:44 +02:00
48443a9abb ops: apply approved host-operator remediations on railiance01
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 4s
ci / test (push) Failing after 5s
Record operator approval and implement P1–P4: 4G swapfile, journald vacuum,
apt upgrade, and UFW lockdown of k3s API/flannel world-open rules. k3s node
Ready post-change; residual risk is still tight RAM.
2026-07-16 13:05:25 +02:00
6730ec0a2c chore: custodian brief after WP-0009 finished
Some checks failed
CI Smoke / host-smoke (push) Successful in 2s
CI Smoke / container-smoke (push) Successful in 41s
ci / test (push) Failing after 1m31s
2026-07-16 12:48:31 +02:00
97d0739537 docs: ADR-007 and FDA playbook; finish WP-0009 (T11)
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 1m12s
ci / test (push) Has been cancelled
Absorb railiance01 pilot supplier notes into the forward-deployed engagement
playbook, accept ADR-007 elevating DEC-FDA-001, promote architecture and
business model to v1.0, and mark KAIZEN-WP-0009 finished.
2026-07-16 12:44:56 +02:00
6ca167ce19 ops: complete host-operator ramp-up on railiance01 (WP-0009 T10)
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 36s
ci / test (push) Failing after 3m41s
Live observe session verified SSH access, captured baseline and Critical
health/load findings (memory pressure, k3s API unavailable). RU checklist
closed; engagement phase operating; schedule enabled; no privileged changes.
2026-07-16 12:43:00 +02:00
7257e62dba chore: refresh custodian brief after WP-0009 T09 hub sync 2026-07-16 12:14:55 +02:00
4532196546 feat: engagement close-session wires vault, metrics, Kai ledger (WP-0009 T09)
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 9m26s
ci / test (push) Failing after 4s
Add close_session helpers and CLI to append vault session logs, engagement-
scoped metrics, duty Kai charges, and client reports. Rejects sensitive
summaries. Pilot smoke-closed once; prepare points operators at close-session.
2026-07-16 12:09:05 +02:00
ad5965be91 feat: engagement CLI for forward-deployed agency (WP-0009 T08)
Add kaizen-agentic engagement subcommands (list, show, validate, checklist,
phase, prepare, staff, quote, scrub, export-handoff) backed by engagement.py
for file-based pilot lifecycle. Tests cover staff/validate/phase/prepare and
the railiance01 pilot smoke path.
2026-07-16 11:20:52 +02:00
600954500f chore: refresh custodian brief after WP-0009 T02–T07 hub sync
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 43s
ci / test (push) Failing after 52s
2026-07-16 10:48:23 +02:00
2d347d062f feat: Phase 1 FDA host-operator Role and railiance01 pilot (WP-0009 T02–T07)
Some checks failed
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
ci / test (push) Failing after 9s
Lock DEC-FDA-001 working defaults; add roles/host-operator package with
OS/security and load protocols; scaffold eng-coulomb-railiance01-ho-001
with bound agent, vault, ramp checklists, and Kai quote/ledger.
2026-07-16 10:47:52 +02:00
ca7e4ead77 ci: cut over to Forgejo (add forgejo ci + publish, retire gitea workflows)
Some checks failed
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 10s
ci / test (push) Failing after 4s
Adds .forgejo/workflows/ci.yml (black/flake8/pytest) and publish-python-package.yml
(twine → forgejo PyPI), modeled on issue-core. Removes the frozen-gitea ci.yml and
publish workflows. CUST-WP-0059 T02-T04.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-16 10:36:15 +02:00
c8dfcd463a chore: hub writeback for KAIZEN-WP-0009 registration
State Hub C-06 created workstream and tasks; write state_hub IDs into
the workplan file and refresh .custodian-brief.md.
2026-07-16 10:35:46 +02:00
e0d7b0c3ad docs: forward-deployed agency model, architecture, and WP-0009
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 54s
Add Kai trial-currency business model and engagement architecture
(request → bound agent → ramp-up/down, client vault). Register workplan
KAIZEN-WP-0009 for host-operator@railiance01 pilot and CLI/ledger phases.
2026-07-16 10:28:58 +02:00
baba72676d docs: workplan-first agent guidance prose (CUST-WP-0055 T04 batch 4)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
2026-07-08 17:22:18 +02:00
2c3fa14f20 Regenerate agent instructions from state-hub templates (CUST-WP-0055 T01)
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Sync AGENTS.md, CLAUDE.md, and .claude/rules from updated project_rules
templates: workplan-first session protocol, legacy terminology footnote,
and GET /workplans/ examples.
2026-07-08 14:51:00 +02:00
a92d8b780a Minimal improvement for container smoke
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 3s
2026-07-08 14:46:37 +02:00
d08cc17e44 Draft capability entry (reuse-surface REUSE-WP-0017-T04, cohort 2)
Some checks failed
ci / test (push) Has been cancelled
Honest first-pass maturity vector grounded in README/docs/tests present
in this repo; no invented evidence. Flagged for human review before
publish. See reuse-surface history/2026-07-06-coverage-classification.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 19:41:36 +02:00
9cf9249fa1 Statehub access update 2026-07-04 13:27:24 +02:00
08df3a4697 Normalize agent instructions and workplan frontmatter (STATE-WP-0067)
- Align agent files with on-disk workplan prefixes (infer from workplan ids)
- Set workplan domain to registered domain_slug; add topic_slug where applicable
- Repair frontmatter delimiter formatting; migrate legacy task status literals
- Regenerate AGENTS.md, CLAUDE.md, and .claude/rules from State Hub templates
2026-06-22 23:16:36 +02:00
90761afe0c Mark .repo-classification.yaml human-reviewed (CUST-WP-0050 T02)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 11:40:43 +02:00
32723c6022 Reclassify as tooling (CUST-WP-0050 T02)
Apply the new 'tooling' category (reusable internal tooling/infrastructure)
from the Repo Classification Standard. First-pass agent classification.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 03:06:01 +02:00
9d05ece3f0 Add repo classification (CUST-WP-0050 T02)
First-pass agent classification per the Repo Classification Standard v1.0
(canon-repo-classification); pending human review.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 02:44:46 +02:00
5cd5d99198 chore: retire TODO.md in favour of workplans
Drop the repo-level Todofile; active work lives in workplans/ and State
Hub per ADR-001. Schedule prepare now surfaces workplans/ instead of
TODO.md. Gitignore .kaizen/agents/ and .kaizen/metrics/ runtime state.
2026-06-19 21:10:27 +02:00
0c2df43a2f Add schedule promote for atomic cadence promotion
Orchestrates cadence.yml, activity-definitions, fleet schedule.yml,
and activity-core sync in one command. Supports --dry-run and
--fleet-only for repairing partial promotions.
2026-06-19 01:57:56 +02:00
c04f4eedc9 Sync custodian brief after hub consistency pass 2026-06-18 15:15:37 +02:00
e2aa62e597 Close WP-0006 activity-core handoff with resolver smoke evidence
Update handoff checklist: discover_kaizen_scheduled_repos implemented and live
on coulomb pilot definitions; document remaining weekly-template deferral.
2026-06-18 14:29:45 +02:00
50aa553cea Register kaizen.metrics.recorded event type for activity-core catalog (T03)
Producer-owned event-types/kaizen.metrics.recorded.md unblocks ACTIVITY-WP-0011
registry gate. Documents schema ownership and sync path for activity-core.
2026-06-18 14:06:05 +02:00
5742e2c334 chore: promote coulomb-loop pilot schedule to daily stabilize phase 2026-06-18 12:09:25 +02:00
0362c192d4 chore: sync custodian brief after state-hub fix-consistency 2026-06-18 12:05:15 +02:00
57542dcbc1 chore: close KAIZEN-WP-0008 — fix gitea links and sync brief
Replace placeholder gitea.example URLs with gitea.coulomb.social in
engagement docs; apply fix-consistency brief writeback.
2026-06-18 11:04:12 +02:00
dda49cd821 feat: complete KAIZEN-WP-0008 customer engagement supplier deliverables
Add repo layout doc, ADR-006 convention, playbook v1 with supplier-notes,
override manifest design, and wiki integration. Mark workplan done (10/10).
2026-06-18 11:02:09 +02:00
4a8f842a37 chore: align WP-0008 T02 task block and state-hub sync
Mark playbook skeleton task done in workplan body; fix-consistency
writeback updates hub DB and custodian brief.
2026-06-18 10:54:55 +02:00
c1e2680bc6 chore: sync state-hub brief after WP-0008 T03/T04 completion
fix-consistency writeback: task status drift resolved in hub DB.
2026-06-18 10:53:49 +02:00
93bf49479b feat: schedule init --engagement for customer bootstrap presets
Add --engagement, --agents, and --bootstrap-cadence flags to scaffold
hourly/daily/weekly engagement schedules. Hourly bootstrap keeps
cadence: daily with hourly cron overrides per coulomb-loop ADR-003.
Document activity-core requirements in activity-core-handoff-engagement.md.
Closes KAIZEN-WP-0008 T02 and T04.
2026-06-18 08:59:45 +02:00
1641a3165d feat: metrics record --emit-event for kaizen.metrics.recorded
Publish activity-core EventEnvelope payloads to NATS subject
activity.kaizen.metrics.recorded after a successful append.
Optional nats-py via kaizen-agentic[events]; project slug from
KAIZEN_PROJECT_SLUG or directory basename. Skips emit on
idempotency duplicates. Closes KAIZEN-WP-0008 T03.
2026-06-18 08:53:36 +02:00
c5798f58e4 docs: fix supplier ActivityDefinition rule path syntax
Use context.* field paths and {context.*} placeholders to match
activity-core rule evaluator conventions.
2026-06-18 08:11:14 +02:00
7424893758 Mark discover_kaizen_scheduled_repos as implemented in activity-core. 2026-06-18 07:46:46 +02:00
d220bae007 Add coulomb-loop pilot schedule opt-in and supplier engagement workplan.
Commit ADR-005 schedule manifest for hourly bootstrap phase and KAIZEN-WP-0008
to support the coulomb-loop customer engagement.
2026-06-18 04:54:34 +02:00
843cf4eee0 feat: agent authoring & doc generation (WP-0007, v1.4.0)
New authoring tooling and a fix for the doc-regeneration defect it exposed.

Added:
- src/kaizen_agentic/agent_docs.py — render + idempotent upsert of the
  CLAUDE.md "## Installed Agents" section (shared by installer and CLI)
- `kaizen-agentic docs generate [--check]` — idempotent doc refresh / CI gate
- `kaizen-agentic create-agent` — scaffold a schema-valid agent
- Frontmatter schema validation in `kaizen-agentic validate`
  (required name/description/category, known category, valid memory/model)
- tests: test_agent_docs, test_validate_schema, test_create_agent

Fixed:
- _update_documentation regex duplicated the Installed Agents block on every
  run (stopped at the first ### subheading) — now idempotent
- declared frontmatter `category` is authoritative (heuristic is fallback)
- list_installed_agents reads the frontmatter name, not the filename
- renamed agent-project-management.md -> agent-project-assistant.md to satisfy
  the agent-<name>.md convention (eliminates a name/filename collision that
  caused install/update to write a divergent duplicate)
- test_cli_error_handling no longer installs into the repo root (uses tmp)

Version 1.4.0; CHANGELOG, CLI cheat sheet, agency-framework, TODO updated.
Workplan KAIZEN-WP-0007 closed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 02:06:14 +02:00
7058859e5c chore: add uv.lock for reproducible installs and SBOM ingest
Generated with uv 0.5.9 (77 packages, full resolution incl. dev group).
Enables State Hub SBOM snapshot ingest for kaizen-agentic.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-18 01:05:58 +02:00
eeb4eee5ef chore(release): bump version to 1.3.0 and date CHANGELOG
Scheduled agent execution (WP-0006). release-check passes: version
consistency, lint, tests, docs, packaged-agent parity all green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 23:33:55 +02:00