Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
b6094b9
Introduce project-wide trace architecture for reproducible system tes…
giovannivolpe Nov 25, 2026
be7950d
Corrections
giovannivolpe Nov 25, 2026
22a4911
Complete project operation tracing for reproducible system testing
giovannivolpe Nov 26, 2026
46de362
Complete conversation operation tracing for reproducible system testing
giovannivolpe Nov 26, 2026
ad3a3fd
Fix trace recovery and core lifecycle failure handling
giovannivolpe Nov 26, 2026
3cf05b0
Ensure graceful engine and trace shutdown on GUI closure
giovannivolpe Nov 26, 2026
49be137
Record project relocation across session closure and reopening
giovannivolpe Nov 26, 2026
45fa28c
Reduce redundant project-configuration recording
giovannivolpe Nov 28, 2026
1d4dff4
Add the reference example script and its annotation template
cmanzo Nov 30, 2026
ee6571c
Use two projects in the reference example
cmanzo Nov 30, 2026
11eb583
Add the cited works of the reference example
cmanzo Nov 30, 2026
e817603
Add the planted-miscitation copy for the reference example
cmanzo Nov 30, 2026
b238de6
Record the planted miscitations
cmanzo Nov 30, 2026
46f998a
Add suggestion test sentences to the reference example
cmanzo Nov 30, 2026
1f8b8e9
Run the code example at temperature 0
cmanzo Dec 1, 2026
f881971
Run the examples at the project types' default temperatures
cmanzo Dec 1, 2026
1a2974d
Update the code-example gold sets and facts to the current code
cmanzo Dec 1, 2026
f0917d6
Let the example scripts choose the intent model
cmanzo Dec 1, 2026
4df215b
Group the suggestion sentences of the reference example
cmanzo Dec 2, 2026
faef876
Reword code-example questions
cmanzo Dec 2, 2026
9765070
Simplify the code-example questions
cmanzo Dec 2, 2026
ab0ee66
Merge pull request #206 from DeepTrackAI/gv/patch20
giovannivolpe Dec 2, 2026
857f107
Introduce read-only system-testing validation and chronological opera…
giovannivolpe Nov 26, 2026
2859b0b
Implement chronological workspace reproduction for system testing
giovannivolpe Nov 26, 2026
dde1caa
Implement independent workspace comparison and quantitative system-te…
giovannivolpe Nov 26, 2026
48ab52a
Support validated project relocation in system-testing replay and com…
giovannivolpe Nov 26, 2026
caa1360
Extended comparison diagnostics
giovannivolpe Nov 27, 2026
4e7187b
Reference integrity and managed replay
giovannivolpe Nov 27, 2026
691d839
Consolidation of System Testing into KíLín
giovannivolpe Nov 27, 2026
3f88cb8
Update test_batch.py
giovannivolpe Nov 27, 2026
195525f
Extended comparison measurements
giovannivolpe Nov 27, 2026
97e634f
Release-oriented analysis and reporting
giovannivolpe Nov 27, 2026
5b176ee
Support compact configuration references in system testing
giovannivolpe Nov 28, 2026
72829f1
Merge pull request #207 from DeepTrackAI/gv/patch21
giovannivolpe Dec 2, 2026
de6181a
PR1 — Stable plugin API and explicit initialization
giovannivolpe Nov 28, 2026
864b9fd
PR2 — Bundled tool descriptors and resource ownership
giovannivolpe Nov 28, 2026
c3d47c4
Update test__registration.py
giovannivolpe Nov 28, 2026
1a9d757
PR3 — Project-type catalog and workspace availability
giovannivolpe Nov 28, 2026
03b6c0b
PR4 - Introduce user-level plugin discovery and validation
giovannivolpe Nov 28, 2026
64aeb47
PR5 — Trace and replay provenance
giovannivolpe Nov 28, 2026
f7a9d08
PR6 — Core installation and deferred activation
giovannivolpe Nov 28, 2026
9e607a7
Update test__activation.py
giovannivolpe Nov 28, 2026
1466309
PR7 — Application-level plugin management
giovannivolpe Nov 28, 2026
87973b5
Fix plugin integration test and documentation contracts
giovannivolpe Nov 28, 2026
c73fb76
PR8 — Plugin authoring, documentation and distribution acceptance
giovannivolpe Nov 28, 2026
c5c4248
Add guided LLM-assisted plugin development tutorials
giovannivolpe Nov 28, 2026
89903ee
Incidental filesystem metadata
giovannivolpe Nov 29, 2026
dde51ee
fixes
giovannivolpe Nov 29, 2026
a8cf0e9
Deterministic conversation context
giovannivolpe Nov 29, 2026
1c07d63
Update test__conversation_memory_benchmark.py
giovannivolpe Nov 29, 2026
a8dffbe
First observed divergence
giovannivolpe Nov 29, 2026
1d20a7d
fix
giovannivolpe Nov 29, 2026
e2da775
Plugin-aware first divergence
giovannivolpe Nov 29, 2026
c5f7201
Update test_engine__plugins.py
giovannivolpe Nov 29, 2026
991e035
Merge pull request #209 from DeepTrackAI/gv/patch22
giovannivolpe Dec 2, 2026
5b9f3f1
V1 — Establish authoritative versioning policy and component changelogs
giovannivolpe Nov 30, 2026
d81f189
V2 — Use the authoritative KíLín version throughout runtime provenance
giovannivolpe Nov 30, 2026
a3e4f93
V3 — Require explicit semantic versions and API generations for tools
giovannivolpe Nov 30, 2026
c3d5358
V4 — Introduce mandatory project-type versions and schema declarations
giovannivolpe Nov 30, 2026
392e6ad
Align bundled tool registration tests with initial semantic versions
giovannivolpe Nov 30, 2026
f98e24b
V5 — Immutable project creation provenance
giovannivolpe Nov 30, 2026
6c0920c
V6 — Authoritative trace and persistent-format versions
giovannivolpe Nov 30, 2026
909f612
V7 — Version metadata throughout the plugin lifecycle
giovannivolpe Nov 30, 2026
97b571e
V8 — Unified version inventory
giovannivolpe Nov 30, 2026
62bf801
V9 — Desktop version reporting
giovannivolpe Nov 30, 2026
fc8cb58
Fix V9 frontend event integration and protocol regression tests.
giovannivolpe Nov 30, 2026
bcad361
V10 — Prepare release 0.1.0b2
giovannivolpe Nov 30, 2026
d5aeb11
Final fixes
giovannivolpe Nov 30, 2026
1fca1c1
Use authoritative runtime version in system-test validation
giovannivolpe Nov 30, 2026
7999249
Merge pull request #210 from DeepTrackAI/gv/patch23
giovannivolpe Dec 2, 2026
3ad03eb
T1 — Nested workspace management
giovannivolpe Nov 30, 2026
fd0149f
Tool-specific template namespaces
giovannivolpe Nov 30, 2026
5e4eb11
Fixes
giovannivolpe Nov 30, 2026
190855b
Fixe
giovannivolpe Nov 30, 2026
6ee8674
Fix qualified template resolution and cross-tool name collisions
giovannivolpe Nov 30, 2026
0aae7a6
Merge pull request #211 from DeepTrackAI/gv/patch24
giovannivolpe Dec 2, 2026
dc38874
PR01 — Index source state
giovannivolpe Nov 30, 2026
0410afa
PR02 — Separate bibliography lookup from independent document discovery
giovannivolpe Nov 30, 2026
1245aa0
Include CHANGELOG.md in repository exports
giovannivolpe Nov 30, 2026
6ede8de
Restore template validation precedence in project_summary
giovannivolpe Nov 30, 2026
dbfa49d
PR03 — Project-type roles, relations and discovery declarations
giovannivolpe Nov 30, 2026
bff2f26
PR04 — Authoritative semantic source manifest
giovannivolpe Dec 1, 2026
1f0ee7d
PR05 — Deterministic discovery and manual precedence
giovannivolpe Dec 1, 2026
42a1904
PR06 — Source lifecycle integration and metadata refresh
giovannivolpe Dec 1, 2026
d2686e7
PR07 — Immutable source views and public retrieval contracts
giovannivolpe Dec 1, 2026
04a4852
PR08 — Enforce source views across retrieval modes
giovannivolpe Dec 1, 2026
22e20c1
PR09 — Logical-group ranking, allocation and provenance
giovannivolpe Dec 1, 2026
8267a9f
KiLin_PR08_windows_scope_fix.patch
giovannivolpe Dec 1, 2026
439d405
PR10 — Tool-scoped services and reference tools
giovannivolpe Dec 1, 2026
a6f1ea3
PR11 — Single-document tools and source-ordered group reading
giovannivolpe Dec 1, 2026
3a94da5
PR12 — Logical project reports and physical citation mapping
giovannivolpe Dec 1, 2026
0aa6a0a
PR13 — Remaining Tool Consumers
giovannivolpe Dec 1, 2026
1790fd9
Complete documentation ownership map
giovannivolpe Dec 1, 2026
541675b
PR14 — Integrate source organization into the engine and recording pr…
giovannivolpe Dec 1, 2026
87737b4
Update engine.py
giovannivolpe Dec 1, 2026
771386d
PR15 — Implement chronological semantic source replay and comparison
giovannivolpe Dec 1, 2026
d698607
PR16 — Integrate source organization into the GUI
giovannivolpe Dec 1, 2026
f4eec5a
PR17 — Complete source-organization documentation and integration ver…
giovannivolpe Dec 1, 2026
2b379da
PR18 — Refine Workspace role and relationship interactions
giovannivolpe Dec 1, 2026
df14294
Update 160_project_types.ipynb
giovannivolpe Dec 1, 2026
4e552c0
Merge pull request #212 from DeepTrackAI/gv/patch25
giovannivolpe Dec 2, 2026
cb3283f
Corrections
giovannivolpe Dec 2, 2026
a09f629
Merge pull request #214 from DeepTrackAI/gv/patch26
giovannivolpe Dec 2, 2026
abf4935
Enforce conversation prerequisites during intent routing
giovannivolpe Dec 2, 2026
1566101
Merge pull request #215 from DeepTrackAI/gv/patch27
giovannivolpe Dec 2, 2026
1089726
Polishing Traces
giovannivolpe Dec 2, 2026
ecb1e1d
Update test_analysis__traces.py
giovannivolpe Dec 2, 2026
76b2acc
Canonical trace representation
giovannivolpe Dec 2, 2026
ff55703
Strict recording protocol
giovannivolpe Dec 2, 2026
a86bc79
Current comparison format
giovannivolpe Dec 2, 2026
2745fe0
Canonical model settings
giovannivolpe Dec 2, 2026
8c39da4
Current workspace selection and attachment UI
giovannivolpe Dec 2, 2026
9f5243c
Canonical public catalogs and exports
giovannivolpe Dec 2, 2026
8ad3f89
Current private tool internals
giovannivolpe Dec 2, 2026
49cc1f4
Merge pull request #218 from DeepTrackAI/gv/patch29
giovannivolpe Dec 2, 2026
7bcce15
12
giovannivolpe Dec 2, 2026
7fed070
Saved profiles must contain the complete current configuration
giovannivolpe Dec 2, 2026
cf3f690
PR13b
giovannivolpe Dec 2, 2026
06344e2
Update of macOS installation and launcher
giovannivolpe Dec 2, 2026
550a312
Canonical preference environment variable
giovannivolpe Dec 2, 2026
0fe8962
Explicit retrieval scopes
giovannivolpe Dec 2, 2026
eb9107c
Hugging Face cache compatibility
giovannivolpe Dec 2, 2026
e425970
Update generation.py
giovannivolpe Dec 2, 2026
0ac6e76
Update test_generation.py
giovannivolpe Dec 2, 2026
469c94a
Relocation of the test-only trace traversal helper
giovannivolpe Dec 2, 2026
17a596e
Removal of redundant private parameters
giovannivolpe Dec 2, 2026
6d4b37e
Removal of obsolete project discovery
giovannivolpe Dec 2, 2026
3481495
Update test_generation.py
giovannivolpe Dec 2, 2026
dc1a627
GUI assets and graphical resources
giovannivolpe Dec 2, 2026
bd80207
Relocation of unused mascot artwork
giovannivolpe Dec 2, 2026
416c0f4
Source-distribution cleanup
giovannivolpe Dec 2, 2026
13ca374
Test and development resources
giovannivolpe Dec 2, 2026
624e84a
Canonical documentation terminology
giovannivolpe Dec 2, 2026
1768484
Architecture and extension documentation
giovannivolpe Dec 2, 2026
629c7be
Workspace, configuration and source-manifest documentation
giovannivolpe Dec 3, 2026
0794b29
Source processing, retrieval and answering documentation
giovannivolpe Dec 3, 2026
a0a850c
Memory-summary identity correction
giovannivolpe Dec 3, 2026
624d943
Conversation and trace documentation
giovannivolpe Dec 3, 2026
ddb8f12
GUI feedback revision validation
giovannivolpe Dec 3, 2026
60aea53
GUI architecture and protocol documentation
giovannivolpe Dec 3, 2026
71cacb5
Model, performance and system-testing documentation
giovannivolpe Dec 3, 2026
adcde64
Backend-independent throughput correction
giovannivolpe Dec 3, 2026
d0369b7
Read the startup breakdown from the project trace
cmanzo Dec 3, 2026
689a41f
Production docstrings and comments
giovannivolpe Dec 3, 2026
ce1b988
Tool documentation and plugin authoring contracts
giovannivolpe Dec 3, 2026
6cb105d
Add 95% intervals to the benchmark results
cmanzo Dec 3, 2026
5d805ba
Update the KíLín gold locations to the current code
cmanzo Dec 3, 2026
344e6fc
Tutorial execution corrections
giovannivolpe Dec 3, 2026
4c001d8
Explicit conversation resumption
giovannivolpe Dec 3, 2026
68eefd9
Tutorial workspace path normalization
giovannivolpe Dec 3, 2026
85e35bb
Update test__tutorials.py
giovannivolpe Dec 3, 2026
f282c73
Public-facing documentation and installation
giovannivolpe Dec 3, 2026
ce9ade8
Validation and publication safeguards
giovannivolpe Dec 3, 2026
d77db6a
Strengthen native release verification and align publication document…
giovannivolpe Dec 3, 2026
cf785d2
Return exact Wilson bounds when all or no items succeed
cmanzo Dec 3, 2026
b0b1372
Prerelease recovery and repository hygiene
giovannivolpe Dec 3, 2026
d43b132
Merge pull request #221 from DeepTrackAI/gv/patch30
giovannivolpe Dec 3, 2026
ba0224b
Merge pull request #224 from DeepTrackAI/cm-reference-example
giovannivolpe Dec 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 16 additions & 1 deletion .github/workflows/macos_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- ".github/workflows/macos_app.yml"
- "setup/macos/**"
- "tests/setup/**"
- "kilin/plugins/**"
- "kilin/tools/**"
- "kilin/project_types/**"
- "kilin/project_type.py"
- "examples/plugins/**"
- "kilin/gui/**"
- "pyproject.toml"
- "uv.lock"
Expand All @@ -17,6 +22,11 @@ on:
- ".github/workflows/macos_app.yml"
- "setup/macos/**"
- "tests/setup/**"
- "kilin/plugins/**"
- "kilin/tools/**"
- "kilin/project_types/**"
- "kilin/project_type.py"
- "examples/plugins/**"
- "kilin/gui/**"
- "pyproject.toml"
- "uv.lock"
Expand Down Expand Up @@ -48,13 +58,18 @@ jobs:
run: >-
python -m unittest
tests.setup.test__macos_builder
tests.setup.test__macos_version
tests.setup.test__macos_launcher_lock
tests.setup.test__macos_launcher_update
tests.setup.test__macos_backend_repair -v
- name: Verify plugin lifecycle on macOS
run: >-
uv run --locked --no-dev --python 3.12
python examples/plugins/check_examples.py
- name: Build ad-hoc signed application with bundled wheel
run: bash setup/macos/build_app.sh --wheel
- name: Inspect actual application, signing and disk image
run: bash tests/setup/check_macos_app.sh
run: bash tests/setup/check_macos_app.sh --wheel
- name: Upload validated ad-hoc signed disk image
if: ${{ github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@v4
Expand Down
94 changes: 92 additions & 2 deletions .github/workflows/native_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
outputs:
version: ${{ steps.version.outputs.version }}
prerelease: ${{ steps.version.outputs.prerelease }}
commit: ${{ steps.commit.outputs.sha }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -41,7 +42,8 @@ jobs:
with Path("pyproject.toml").open("rb") as stream:
version = tomllib.load(stream)["project"]["version"]
if not isinstance(version, str) or not re.fullmatch(
r"[0-9]+\.[0-9]+\.[0-9]+(?:b[0-9]+|rc[0-9]+)?",
r"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)"
r"(?:(?:b|rc)[1-9][0-9]{0,2})?",
version,
):
raise SystemExit(f"Unsupported release version: {version!r}")
Expand All @@ -55,6 +57,13 @@ jobs:
file=output,
)
PYTHON
- name: Record validated source commit
id: commit
shell: bash
run: |
set -euo pipefail
commit=$(git rev-parse --verify HEAD^{commit})
echo "sha=$commit" >> "$GITHUB_OUTPUT"
- name: Verify tag-pinned PyPI description
run: python -m setup.generate_pypi_readme --check

Expand Down Expand Up @@ -113,14 +122,95 @@ jobs:
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_VERSION: ${{ needs.validate.outputs.version }}
IS_PRERELEASE: ${{ needs.validate.outputs.prerelease }}
RELEASE_COMMIT: ${{ needs.validate.outputs.commit }}
run: |
set -euo pipefail
assets=(
"release-assets/KiLin-${RELEASE_VERSION}-macos-arm64.dmg"
"release-assets/KiLin-Setup-${RELEASE_VERSION}.exe"
"release-assets/SHA256SUMS.txt"
)
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
# A failed API request is not evidence that a release is absent.
# Include draft releases and all pages of assets in the preflight.
existing=$(python3 - "${assets[@]}" <<'PYTHON'
import json
import os
from pathlib import Path
import re
import subprocess
import sys

repo = f"repos/{os.environ['GH_REPO']}"
tag = os.environ["RELEASE_TAG"]
commit = os.environ["RELEASE_COMMIT"]
stage = os.environ["IS_PRERELEASE"]
if stage not in {"true", "false"}:
raise SystemExit("Invalid release classification")
prerelease = stage == "true"

def api(*args):
return json.loads(subprocess.check_output(
["gh", "api", *args], encoding="utf-8",
))

def items(path):
pages = api("--paginate", "--slurp", path)
if not isinstance(pages, list) or not all(
isinstance(page, list) for page in pages
):
raise SystemExit("Invalid paginated GitHub response")
return [item for page in pages for item in page]

releases = [
release for release in items(f"{repo}/releases?per_page=100")
if release["tag_name"] == tag
]
if len(releases) > 1:
raise SystemExit("Multiple releases match the version tag")
if releases:
release = releases[0]
if release["prerelease"] is not prerelease:
raise SystemExit("Existing release classification differs")
if release.get("immutable") is True:
raise SystemExit("Existing release is immutable")
release_id = release["id"]
if type(release_id) is not int or release_id <= 0:
raise SystemExit("Invalid existing release identity")
names = {
asset["name"] for asset in items(
f"{repo}/releases/{release_id}/assets?per_page=100"
)
}
conflicts = names.intersection(Path(p).name for p in sys.argv[1:])
if conflicts:
raise SystemExit(
"Release assets already exist: "
+ ", ".join(sorted(conflicts))
)

# Peel annotated tags to the commit actually used by the builds.
# Resolve the explicit tag ref rather than an ambiguous branch name.
if not re.fullmatch(r"[0-9a-f]{40}", commit):
raise SystemExit("Invalid validated source commit")
target = api(f"{repo}/git/ref/tags/{tag}")["object"]
seen = set()
while True:
sha = target["sha"]
if not re.fullmatch(r"[0-9a-f]{40}", sha) or sha in seen:
raise SystemExit("Invalid release tag target")
if target["type"] == "commit":
break
if target["type"] != "tag":
raise SystemExit("Release tag does not identify a commit")
seen.add(sha)
target = api(f"{repo}/git/tags/{sha}")["object"]
if sha != commit:
raise SystemExit("Release tag no longer identifies built commit")

print("true" if releases else "false")
PYTHON
)
if [[ "$existing" == "true" ]]; then
# Do not overwrite published assets: a rerun must be reviewed.
gh release upload "$RELEASE_TAG" "${assets[@]}"
else
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
run: uv build
- name: Verify PyPI metadata in wheel and source archive
run: python -m setup.check_pypi_distribution
- name: Verify the source distribution authoring pack
run: python examples/plugins/check_examples.py --sdist dist/*.tar.gz
- name: Install wheel in a separate environment
run: |
uv venv --python 3.12 "$RUNNER_TEMP/kilin-wheel-env"
Expand All @@ -43,6 +45,11 @@ jobs:
run: >-
"$RUNNER_TEMP/kilin-wheel-env/bin/python" -I
"$GITHUB_WORKSPACE/tests/setup/check_installed_wheel.py"
- name: Exercise user plugins with the installed wheel
working-directory: ${{ runner.temp }}
run: >-
"$RUNNER_TEMP/kilin-wheel-env/bin/python" -I
"$GITHUB_WORKSPACE/examples/plugins/check_examples.py"
- name: Upload distributions for review
uses: actions/upload-artifact@v4
with:
Expand Down
116 changes: 114 additions & 2 deletions .github/workflows/windows_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
- ".github/workflows/windows_app.yml"
- "setup/windows/**"
- "tests/setup/**"
- "kilin/plugins/**"
- "kilin/tools/**"
- "kilin/project_types/**"
- "kilin/project_type.py"
- "examples/plugins/**"
- "kilin/gui/**"
- "MANIFEST.in"
- "pyproject.toml"
- "uv.lock"
pull_request:
Expand All @@ -15,6 +22,13 @@ on:
- ".github/workflows/windows_app.yml"
- "setup/windows/**"
- "tests/setup/**"
- "kilin/plugins/**"
- "kilin/tools/**"
- "kilin/project_types/**"
- "kilin/project_type.py"
- "examples/plugins/**"
- "kilin/gui/**"
- "MANIFEST.in"
- "pyproject.toml"
- "uv.lock"
workflow_dispatch:
Expand Down Expand Up @@ -61,14 +75,106 @@ jobs:
$version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value
$runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version"
if (-not (Test-Path "$runtime\Scripts\kilin-gui.exe")) { throw "kilin-gui.exe is missing." }
& "$runtime\Scripts\python.exe" -c "import kilin, PySide6, torch, transformers; print(torch.__version__)"
if ($LASTEXITCODE -ne 0) { throw "The installed runtime cannot import KiLin." }
& "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" `
"$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml"
if ($LASTEXITCODE -ne 0) { throw "Installed runtime verification failed." }
& "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\examples\plugins\check_examples.py"
if ($LASTEXITCODE -ne 0) { throw "Installed plugin lifecycle failed." }
$shortcut = Join-Path ([Environment]::GetFolderPath("Programs")) "KíLín.lnk"
if (-not (Test-Path -LiteralPath $shortcut)) { throw "The Start-menu shortcut is missing." }
$uv = [Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User")
$spec = [Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User")
if (-not (Test-Path -LiteralPath $uv)) { throw "KILIN_APP_UV does not name uv.exe." }
if (-not $spec.EndsWith("[app]")) { throw "KILIN_APP_SPEC is $spec." }
- name: Verify failed same-version reinstall restores the runtime
env:
# Force package resolution to fail without a network outage or a
# test-only switch in the production installer. The wheel alone
# cannot supply its dependencies, and uv may not use its cache.
UV_OFFLINE: "1"
UV_NO_CACHE: "1"
UV_NO_CONFIG: "1"
run: |
$version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value
$runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version"
$backup = "$runtime.rollback"
$probe = Join-Path $runtime "reinstall-probe.txt"
$shortcut = Join-Path ([Environment]::GetFolderPath("Programs")) "KíLín.lnk"
$shortcutHash = (Get-FileHash -LiteralPath $shortcut).Hash
$uv = [Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User")
$spec = [Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User")
if ((Test-Path -LiteralPath $probe) -or (Test-Path -LiteralPath $backup)) {
throw "Reinstall probe or rollback directory already exists."
}
Set-Content -LiteralPath $probe -Value "Original installed runtime"
$probeHash = (Get-FileHash -LiteralPath $probe).Hash
$setup = Get-ChildItem dist -Filter "KiLin-Setup-*.exe" | Select-Object -First 1
try {
foreach ($scenario in @("failed", "interrupted")) {
if ($scenario -eq "interrupted") {
# Simulate termination after the backup rename and
# creation of a partial replacement at the final path.
Move-Item -LiteralPath $runtime -Destination $backup
New-Item -ItemType Directory -Path $runtime | Out-Null
Set-Content -LiteralPath (Join-Path $runtime "partial.txt") -Value "Incomplete runtime"
}
$log = "$scenario-reinstall.log"
$process = Start-Process -FilePath $setup.FullName -Wait -PassThru `
-ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART", "/LOG=$log"
Get-Content -LiteralPath $log -Tail 40
if ($process.ExitCode -eq 0) { throw "Offline reinstall unexpectedly succeeded." }
$details = Get-Content -LiteralPath $log -Raw
if (-not $details.Contains("Preserved previous runtime at") -or
-not $details.Contains("Restored previous runtime at")) {
throw "Setup did not exercise runtime rollback ($scenario)."
}
if (Test-Path -LiteralPath $backup) { throw "Rollback did not restore the backup." }
if (Test-Path -LiteralPath (Join-Path $runtime "partial.txt")) {
throw "Partial replacement survived rollback."
}
if ((Get-FileHash -LiteralPath $probe).Hash -ne $probeHash) {
throw "Failed reinstall changed the original runtime."
}
if ((Get-FileHash -LiteralPath $shortcut).Hash -ne $shortcutHash -or
[Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User") -ne $uv -or
[Environment]::GetEnvironmentVariable("KILIN_APP_SPEC", "User") -ne $spec) {
throw "Failed reinstall changed the shortcut or repair variables."
}
& "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" `
"$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml"
if ($LASTEXITCODE -ne 0) { throw "Restored runtime verification failed ($scenario)." }
}
} finally {
if (Test-Path -LiteralPath $probe) { Remove-Item -LiteralPath $probe }
}
- name: Verify user plugin files survive reinstall
run: |
# Hosted runner only: seed a reviewed example in the default user store.
$plugins = Join-Path $env:LOCALAPPDATA "kilin\plugins"
$tool = Join-Path $plugins "tools\repeat_question"
$type = Join-Path $plugins "project_types\repetition.json"
if ((Test-Path $tool) -or (Test-Path $type)) { throw "Plugin probe already exists." }
New-Item -ItemType Directory -Force -Path $tool, (Split-Path $type) | Out-Null
Copy-Item "examples\plugins\tools\repeat_question\__init__.py" -Destination $tool
Copy-Item "examples\plugins\project_types\repetition.json" -Destination $type
$toolFile = Join-Path $tool "__init__.py"
$toolHash = (Get-FileHash $toolFile).Hash
$typeHash = (Get-FileHash $type).Hash
$setup = Get-ChildItem dist -Filter "KiLin-Setup-*.exe" | Select-Object -First 1
$process = Start-Process -FilePath $setup.FullName -Wait -PassThru `
-ArgumentList "/VERYSILENT", "/SUPPRESSMSGBOXES", "/LOG=reinstall.log"
if ($process.ExitCode -ne 0) { throw "Reinstall failed with $($process.ExitCode)." }
$version = (Select-String pyproject.toml -Pattern '^version = "(.*)"$').Matches[0].Groups[1].Value
$runtime = Join-Path $env:LOCALAPPDATA "kilin\runtime\$version"
if (Test-Path -LiteralPath "$runtime.rollback") { throw "Reinstall left a rollback directory." }
& "$runtime\Scripts\python.exe" -I "$env:GITHUB_WORKSPACE\tests\setup\check_windows_runtime.py" `
"$runtime" "$env:GITHUB_WORKSPACE\pyproject.toml"
if ($LASTEXITCODE -ne 0) { throw "Reinstalled runtime verification failed." }
if ((Get-FileHash $toolFile).Hash -ne $toolHash -or (Get-FileHash $type).Hash -ne $typeHash) {
throw "Reinstall changed user plugins."
}
"KILIN_PROBE_TOOL_HASH=$toolHash" >> $env:GITHUB_ENV
"KILIN_PROBE_TYPE_HASH=$typeHash" >> $env:GITHUB_ENV
- name: Uninstall silently and check what is removed
run: |
$uninstaller = Join-Path $env:LOCALAPPDATA "Programs\KiLin\unins000.exe"
Expand All @@ -78,6 +184,12 @@ jobs:
for ($i = 0; $i -lt 60 -and (Test-Path $runtime); $i++) { Start-Sleep -Seconds 1 }
if (Test-Path $runtime) { throw "The runtime was not removed." }
if ([Environment]::GetEnvironmentVariable("KILIN_APP_UV", "User")) { throw "KILIN_APP_UV was not removed." }
$plugins = Join-Path $env:LOCALAPPDATA "kilin\plugins"
$toolFile = Join-Path $plugins "tools\repeat_question\__init__.py"
$type = Join-Path $plugins "project_types\repetition.json"
if ((Get-FileHash $toolFile).Hash -ne $env:KILIN_PROBE_TOOL_HASH -or (Get-FileHash $type).Hash -ne $env:KILIN_PROBE_TYPE_HASH) {
throw "Uninstall changed user plugins."
}
- name: Upload the unsigned development installer
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# KíLín changelog

This changelog records application changes and releases. Changelog maintenance begins after the
first stable release of KíLín (`0.1.0`). No beta or release-candidate
history is required.
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ authors:
family-names: "Manzo"
- given-names: "Giovanni"
family-names: "Volpe"
version: "0.1.0b1"
version: "0.1.0b2"
12 changes: 12 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
include CHANGELOG.md
include CITATION.cff
include README.md
include README.pypi.md
include docs/versioning.md
include docs/PLUGIN_API_CHANGELOG.md
include docs/PROJECT_TYPE_SCHEMA_CHANGELOG.md
include docs/TRACE_FORMAT_CHANGELOG.md
include docs/PLUGIN_API.md
include docs/PROJECT_TYPE_SCHEMA.md
include docs/PLUGIN_AUTHORING.md
recursive-include examples/plugins *.py *.json *.md

# Development tests require the complete repository checkout.
prune tests
Loading
Loading