Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
920c220
chore: bump integration version to 0.6.2
github-actions[bot] Mar 24, 2026
174fffc
Merge Queue Detection Should Validate Workflow Has merge_group Trigge…
Trecek Mar 25, 2026
2674097
Rectify: Formatter Raw/Derived Field Duplication (#502)
Trecek Mar 25, 2026
41b0dc2
Implementation Plan: Add Configurable Label Whitelist to Dynaconf Con…
Trecek Mar 25, 2026
c55be55
Rectify: stdlib-only Contract for SKILL.md Python Blocks (#508)
Trecek Mar 25, 2026
c0a1275
Add --resume flag to cook and order CLI commands (#510)
Trecek Mar 26, 2026
a16a628
Rectify: Terminal Ownership Contract (#511)
Trecek Mar 26, 2026
6befbd2
Replace Reverse-Sync Version Bumping with Minor-Bump-on-Promote Strat…
Trecek Mar 27, 2026
e740e02
chore: bump version to 0.6.3
github-actions[bot] Mar 27, 2026
4ffaad1
update git ignore
Trecek Mar 27, 2026
4063165
Detect Stale Installs — Doctor Check, Auto-Detect Prompt, and Dev-Mod…
Trecek Mar 27, 2026
865b398
chore: bump version to 0.6.4
github-actions[bot] Mar 27, 2026
604a860
Rectify: TestRunner Protocol Returns Lossy Bare Tuple; Non-Pytest Run…
Trecek Mar 27, 2026
24aa2c5
Rectify: MergeQueueWatcher Terminal State via Negative Inference (#519)
Trecek Mar 27, 2026
ed2c03c
chore: bump version to 0.6.5
github-actions[bot] Mar 27, 2026
5c801b5
Implementation Plan: terminal_guard() Alternate Screen Buffer Envelop…
Trecek Mar 27, 2026
62f311d
chore: bump version to 0.6.6
github-actions[bot] Mar 27, 2026
5a9ef58
Add validate-audit skill: parallel post-audit finding validation (#528)
Trecek Mar 27, 2026
ae71b81
chore: bump version to 0.6.7
github-actions[bot] Mar 27, 2026
08bd716
Implementation Plan: Patch-Bump-Integration.yml Races When Merge Queu…
Trecek Mar 27, 2026
9408ffb
chore: bump version to 0.6.8
github-actions[bot] Mar 27, 2026
a69e923
Rectify: Session ID Resolution — Fragmented Sources, Late Merge, No W…
Trecek Mar 27, 2026
d8f70c2
chore: bump version to 0.6.9
github-actions[bot] Mar 27, 2026
82d9366
Rectify: Stale Hook Prompt Enters Infinite Loop When User Answers Y (…
Trecek Mar 27, 2026
fc6aa72
chore: bump version to 0.6.10
github-actions[bot] Mar 27, 2026
67776dd
Rectify: terminal_guard() Exit-Only Ownership Contract (#536)
Trecek Mar 27, 2026
2c754aa
chore: bump version to 0.6.11
github-actions[bot] Mar 27, 2026
9d5d1f8
Rectify: SkillResult.session_id Channel B Backfill & Prompt Contract …
Trecek Mar 27, 2026
cfb3056
chore: bump version to 0.6.12
github-actions[bot] Mar 27, 2026
a8167f2
Rectify: MCP Tool Name Prefix Non-Determinism in Orchestrator Prompts…
Trecek Mar 27, 2026
36068b9
chore: bump version to 0.6.13
github-actions[bot] Mar 27, 2026
52c3554
Rectify: push_to_remote Non-Fast-Forward Rejection After Rebase (#544)
Trecek Mar 27, 2026
55ddf4f
Rectify: Headless Editable Install Poison (#543)
Trecek Mar 27, 2026
1104a45
chore: bump version to 0.6.14
github-actions[bot] Mar 27, 2026
ae295e2
chore: bump version to 0.6.15
github-actions[bot] Mar 27, 2026
034362f
Rectify: Stale-Check Dismiss/Snooze State Split (#545)
Trecek Mar 27, 2026
096ad23
chore: bump version to 0.6.16
github-actions[bot] Mar 27, 2026
35279d7
Rectify: Pipeline Identity Layer (#546)
Trecek Mar 27, 2026
0df4626
chore: bump version to 0.6.17
github-actions[bot] Mar 27, 2026
000ff42
Fix `cook --resume <session-id>` UnusedCliTokensError (#548)
Trecek Mar 28, 2026
0aa652c
Implementation Plan: Skill Pack Registry and Configurable Visibility …
Trecek Mar 28, 2026
a515ffe
chore: bump version to 0.6.18
github-actions[bot] Mar 28, 2026
f2611dc
chore: bump version to 0.6.19
github-actions[bot] Mar 28, 2026
7242d86
Implementation Plan: token_summary_appender — Replace gh pr edit/view…
Trecek Mar 28, 2026
0ade1e1
chore: bump version to 0.6.20
github-actions[bot] Mar 28, 2026
3a2f1d9
Implementation Plan: Remove Tautological/Import-Only Tests — groupA (…
Trecek Mar 28, 2026
456e886
Implementation Plan: Fix xdist Isolation — Hardcoded /dev/shm and /tm…
Trecek Mar 28, 2026
ea363bc
Implementation Plan: Remove Over-Mocked Tests and Fix State Mutation …
Trecek Mar 28, 2026
8aafa5c
Implementation Plan: Strengthen Exception-Grade HIGH Findings (groupD…
Trecek Mar 28, 2026
3a43a0d
Implementation Plan: Consolidate and Remove Redundant/Duplicate Tests…
Trecek Mar 28, 2026
b7d72fd
chore: bump version to 0.6.21
github-actions[bot] Mar 28, 2026
a4002f2
chore: bump version to 0.6.22
github-actions[bot] Mar 28, 2026
6c3f9a5
Fix Test Placement, Organization, and Documentation (groupG) (#556)
Trecek Mar 28, 2026
0f31efb
chore: bump version to 0.6.23
github-actions[bot] Mar 28, 2026
86bf490
fix: resolve architectural audit findings across codebase (2026-03-28…
Trecek Mar 28, 2026
3d83c2c
Implementation Plan: Low-Severity Test Suite Fixes (groupH) (#561)
Trecek Mar 28, 2026
ac68932
chore: bump version to 0.6.24
github-actions[bot] Mar 28, 2026
7a2fd4f
Fix Misleading Test Names and Stale Logic (groupF) (#560)
Trecek Mar 28, 2026
efeffb2
chore: bump version to 0.6.25
github-actions[bot] Mar 28, 2026
2ce32f3
chore: bump version to 0.6.26
github-actions[bot] Mar 28, 2026
5e46614
Rectify: Session Adjudication False-Positive — Recovery/Channel-B Con…
Trecek Mar 29, 2026
7ad82cf
chore: bump version to 0.6.27
github-actions[bot] Mar 29, 2026
4a45bc8
[FIX] Rectify: Workspace Clean Does Not Discover or Remove Git Worktr…
Trecek Mar 29, 2026
9bd5578
chore: bump version to 0.6.28
github-actions[bot] Mar 29, 2026
084bd42
Cohesion audit: server fixes, hook registry, docs, and test coverage …
Trecek Mar 29, 2026
5f0e7cd
Reduce audit-arch false positives with pre-flight & self-validation g…
Trecek Mar 29, 2026
b775e25
chore: bump version to 0.6.29
github-actions[bot] Mar 29, 2026
f4cf796
chore: bump version to 0.6.30
github-actions[bot] Mar 29, 2026
b0f725c
Implementation Plan: Bug — prepare-issue Uses Summary Instead of Full…
Trecek Mar 30, 2026
6eb6bdd
Token Telemetry Cross-Contamination — order_id Scoping (#574)
Trecek Mar 30, 2026
db5cd46
chore: bump version to 0.6.31
github-actions[bot] Mar 30, 2026
4406735
chore: bump version to 0.6.32
github-actions[bot] Mar 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 14 additions & 66 deletions .claude/skills/promote-to-main/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,23 @@ This aggregates token usage across all constituent PR sessions that ran in this
working directory.

```bash
export PIPELINE_CWD="$(pwd)"
mkdir -p .autoskillit/temp/promote-to-main
python3 - <<'EOF' > .autoskillit/temp/promote-to-main/token_summary.md 2>/dev/null || true
import sys, os
import json, pathlib, sys
from autoskillit.pipeline.tokens import DefaultTokenLog
from autoskillit.pipeline.telemetry_fmt import TelemetryFormatter
from autoskillit.execution.session_log import resolve_log_dir

cfg_path = pathlib.Path(".autoskillit") / "temp" / ".autoskillit_hook_config.json"
kitchen_id = ""
if cfg_path.exists():
_cfg = json.loads(cfg_path.read_text())
if isinstance(_cfg, dict):
kitchen_id = _cfg.get("kitchen_id") or _cfg.get("pipeline_id", "")

log_root = resolve_log_dir("")
tl = DefaultTokenLog()
n = tl.load_from_log_dir(log_root, cwd_filter=os.environ.get("PIPELINE_CWD", ""))
n = tl.load_from_log_dir(log_root, kitchen_id_filter=kitchen_id)
if n == 0:
sys.exit(0)
steps = tl.get_report()
Expand Down Expand Up @@ -781,76 +787,20 @@ No breaking changes detected.
<sub>Generated with Claude Code via AutoSkillit</sub>
```

### Phase 8: Version Bump Decision

After Phase 2 discovers the PR count, determine whether this promotion warrants a minor
version bump. Since each PR is squash-merged onto integration, PR count is the meaningful
measure of work volume — not raw commit count.

#### Step 8.1: Evaluate PR Threshold

**Threshold:** If `len(prs) >= 15`, perform a minor version bump. Below 15 PRs, the
CI workflow's automatic patch bump on merge (`version-bump.yml`) is sufficient.

If the threshold is met:

1. Read the current version:
```bash
python3 -c "
import tomllib, pathlib
print(tomllib.loads(pathlib.Path('pyproject.toml').read_text())['project']['version'])
"
```

2. Compute the new version — increment MINOR, reset PATCH to 0:
```bash
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
NEW_VERSION="$MAJOR.$((MINOR + 1)).0"
```

3. Apply the bump using project conventions:
```bash
# Update pyproject.toml version
python3 -c "
import pathlib
p = pathlib.Path('pyproject.toml')
p.write_text(p.read_text().replace('version = \"$CURRENT_VERSION\"', 'version = \"$NEW_VERSION\"', 1))
"

# Sync plugin.json and regenerate lockfile
task sync-plugin-version && uv lock
```

4. Search tests for hardcoded version strings (e.g., `AUTOSKILLIT_INSTALLED_VERSION`
monkeypatches) and update them to match `NEW_VERSION`.

5. Commit the bump on the integration branch:
```bash
git add pyproject.toml src/autoskillit/.claude-plugin/plugin.json uv.lock
git commit -m "chore: bump minor version to $NEW_VERSION for promotion ($PR_COUNT PRs)"
```

6. Store `version_bumped = true` and `new_version = $NEW_VERSION` for inclusion in the
PR body. If the threshold is not met, store `version_bumped = false`.

If `dry_run` is true and a version bump would be triggered, report it in the promotion
report but do NOT commit it. Note: "Minor version bump to X.Y.0 would be applied
(N PRs >= 15 threshold)".

### Phase 9: PR Creation
### Phase 8: PR Creation

If `dry_run` is true:
- Output `report_path = {absolute path to promotion_report}` and skip to Output.

#### Step 9.1: Check GitHub Availability
#### Step 8.1: Check GitHub Availability

```bash
gh auth status 2>/dev/null
```

If exit code non-zero: output `pr_url = ` and exit successfully.

#### Step 9.2: Compose PR Body
#### Step 8.2: Compose PR Body

Write the PR body to `.autoskillit/temp/promote-to-main/pr_body_{timestamp}.md`.

Expand All @@ -869,7 +819,7 @@ Include these sections (in order):
10. `## Token Usage Summary` (if available)
11. Footer

#### Step 9.3: Create Promotion PR
#### Step 8.3: Create Promotion PR

Construct the PR title using actual branch names from arguments:

Expand All @@ -887,7 +837,7 @@ gh pr create \

Capture the PR URL as `pr_url`.

#### Step 9.4: Add Labels (optional)
#### Step 8.4: Add Labels (optional)

```bash
gh pr edit {pr_url} --add-label "promotion" 2>/dev/null
Expand All @@ -904,6 +854,4 @@ report_path = {absolute path to .autoskillit/temp/promote-to-main/promotion_repo
pr_url = {pr_url, empty if dry-run or gh unavailable}
verdict = {created|dry_run|preflight_failed}
category_summary = {e.g., "14 fixes, 13 features, 3 infra"}
version_bumped = {true|false}
new_version = {X.Y.0, only if version_bumped is true}
```
92 changes: 92 additions & 0 deletions .github/workflows/patch-bump-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Auto Patch Version Bump on Integration PR

on:
pull_request:
types: [closed]
branches: [integration]

concurrency:
group: patch-bump-integration
cancel-in-progress: false

jobs:
bump-patch:
permissions:
contents: write
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: integration
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
uv-version: "0.9.21"

- name: Compute new patch version
id: version
run: |
set -euo pipefail
CURRENT=$(python3 -c "
import tomllib, pathlib
print(tomllib.loads(pathlib.Path('pyproject.toml').read_text())['project']['version'])
")
if ! echo "$CURRENT" | grep -Eq '^[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "ERROR: version '$CURRENT' is not a valid semver (X.Y.Z) — cannot compute patch bump" >&2
exit 1
fi
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT"
NEW="$MAJOR.$MINOR.$((PATCH + 1))"
echo "old=$CURRENT" >> "$GITHUB_OUTPUT"
echo "new=$NEW" >> "$GITHUB_OUTPUT"

- name: Update pyproject.toml
run: |
python3 - <<'EOF'
import pathlib, os, sys
p = pathlib.Path("pyproject.toml")
old_ver = f'version = "{os.environ["OLD_VERSION"]}"'
new_ver = f'version = "{os.environ["NEW_VERSION"]}"'
old_content = p.read_text()
new_content = old_content.replace(old_ver, new_ver, 1)
if new_content == old_content:
print(f"ERROR: version pattern {old_ver!r} not found in pyproject.toml", file=sys.stderr)
sys.exit(1)
p.write_text(new_content)
EOF
env:
OLD_VERSION: ${{ steps.version.outputs.old }}
NEW_VERSION: ${{ steps.version.outputs.new }}

- name: Update plugin.json
run: |
python3 - <<'EOF'
import json, pathlib, os
p = pathlib.Path("src/autoskillit/.claude-plugin/plugin.json")
data = json.loads(p.read_text())
data["version"] = os.environ["NEW_VERSION"]
p.write_text(json.dumps(data, indent=2) + "\n")
EOF
env:
NEW_VERSION: ${{ steps.version.outputs.new }}

- name: Regenerate uv.lock
run: uv lock

- name: Commit and push version bump to integration
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add pyproject.toml src/autoskillit/.claude-plugin/plugin.json uv.lock
if git diff --cached --quiet; then
echo "Nothing to commit"
else
git commit -m "chore: bump version to ${{ steps.version.outputs.new }}"
git push origin integration
fi
12 changes: 12 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ jobs:
- name: Install dependencies
run: uv sync --locked --extra dev

- name: Generate hooks.json
run: |
uv run python -c "
from autoskillit.hooks import generate_hooks_json
from autoskillit.core.io import atomic_write
from autoskillit.core.paths import pkg_root
import json
path = pkg_root() / 'hooks' / 'hooks.json'
atomic_write(path, json.dumps(generate_hooks_json(), indent=2) + '\n')
print(f'Generated: {path}')
"

- name: Generate recipe diagrams
run: uv run autoskillit recipes render

Expand Down
Loading
Loading