283 Commits
Author SHA1 Message Date
kevinveenbirkenbach 72aeb09c9a Merge pull request #3066 from infinito-nexus/fix/ci/update-merge-app-environment
fix(ci): merge update PRs with a separate App from the auto-merge environment
2026-11-27 17:59:03 +01:00
kevinveenbirkenbachandClaude Opus 5.5 a6d002f9c4 fix(ci): wait out old-key tokens and drop every pre-rotation update branch
Deleting an App key does not revoke installation tokens minted from it, which live up to one hour. Prerequisite 3 now waits one hour after the old-key deletion, prerequisite 4 deletes every pre-rotation update/** and dependabot/** branch whatever its pull request state, and the CLI prints the earliest deletion time. The download-detection test pins time.time and the file mtimes.

🎯 Fix: 93 %
💥 Break: 2 %
💸 Tokens: 102 %
⏱️ Velocity: 102 %
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ⚠️ tokens 102 % > 100, velocity 102 % > 100: operator approved via hub decision 85dd95b10579602b

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 15:03:03 +00:00
kevinveenbirkenbachandClaude Opus 5.5 5bf89aad2b test(update): derive the truncated key fixture at runtime
Secret scanning alert 1 flagged the literal PEM fixture (markers around the body abc) that 286918ec added to test_main.py as an RSA private key. TRUNCATED_KEY is now cut from the key the test generates, so no PEM block remains in the repository and the refusal test still covers a truncated body.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Tokens: 105 %
⏱️ Velocity: 111 %
🛡️ Security: 100 %
🏆 Score: 81
🚦 Gate: ⚠️ tokens 105 % > 100, velocity 111 % > 100: operator approved via hub decision 860710d6c3c61500

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:51:49 +00:00
kevinveenbirkenbachandClaude Opus 5.5 455666865c fix(update): refuse tag policies and unusable keys, retire pre-rotation heads
The updater environment check now requires exactly one deployment policy of type branch named main, so a tag policy named main no longer passes. The downloaded PEM is parsed with cryptography before any secret is written: truncated, encrypted and non-RSA keys are refused. secrets.md adds prerequisite 4: open update and dependabot pull requests whose head predates the key rotation are closed before the bypass, since the gate checks who opened a pull request, not who pushed its head. Fourth CodeRabbit round on PR #3066.

🎯 Fix: 92 %
💥 Break: 2 %
💸 Tokens: 168 %
⏱️ Velocity: 215 %
🛡️ Security: 100 %
🏆 Score: 25
🚦 Gate: ⚠️ tokens 168 % > 100, velocity 215 % > 100: operator approved via hub decision 63c0fc40b08ee94d

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:44:41 +00:00
kevinveenbirkenbachandClaude Opus 5.5 ffe28a77c2 feat(update): guide each browser step of the app credentials CLI
The CLI named a 'Private keys' section GitHub no longer shows. Each step is now numbered and names the current menus: Credentials, Key pairs, Generate a private key for the key, General, About for the Client ID, Install App, Only select repositories for the installation. It waits for Enter after every browser step, and with --downloads it offers the .pem that appeared there during that step, ignoring older files. README and secrets.md show the new call.

🎯 Fix: 90 %
💥 Break: 2 %
💸 Tokens: 89 %
⏱️ Velocity: 77 %
🛡️ Security: 100 %
🏆 Score: 100
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:55:18 +00:00
kevinveenbirkenbachandClaude Opus 5.5 286918ecfc feat(update): walk the operator through the updater key and translation App
python -m cli.contributing.update.apps creates the updater environment restricted to main when it is missing, stores a freshly generated updater key there, waits until the older keys are deleted, prefills the form for the separate translation App and stores its key as a repository secret, then removes repository copies of the updater key and offers to delete the downloaded PEM files. Keys reach gh on stdin only. Tests cover stdin-only key transfer, the environment check, PEM and client ID validation and the confirmation stops.

🎯 Fix: 90 %
💥 Break: 1 %
💸 Tokens: 97 %
⏱️ Velocity: 94 %
🛡️ Security: 100 %
🏆 Score: 98
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:06:12 +00:00
kevinveenbirkenbachandClaude Opus 5.5 ff5c2e6710 fix(ci): probe mirror tags with skopeo inspect --raw
PR 2006's Mirror wait job looped for 6 h on ghcr.io/infinito-nexus/core/mirror/ghcr.io/ggml-org/whisper.cpp:main-arm64-d1be6fde... although the pull_request_target mirror had copied it: the tag is an OCI index holding only arm64, and tag_exists ran skopeo inspect without --raw, which resolves the amd64 runner's platform and fails with 'no image found in image index for architecture amd64'. Both providers now share _manifest_exists, which probes with --raw and counts any manifest or index as present. MEDUSA B603 on the moved subprocess call accepted: fixed argv, no shell, ref from repo role metadata, same call as the two accepted probes it replaces.

🎯 Fix: 92 %
💥 Break: 2 %
💸 Tokens: 95 %
⏱️ Velocity: 92 %
🛡️ Security: 100 %
🏆 Score: 100
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 09:48:49 +00:00
kevinveenbirkenbachandClaude Opus 5.5 b69b850a0f fix(cli): deep-merge inventory extra vars onto the variant payload
_bake_overrides merged INFINITO_INVENTORY_EXTRA_VARS onto each app's variant payload with {**base_payload, **override}, so an extra applications.<app>.services entry replaced the variant's whole services map and a variant round silently deployed the variant-0 config (reported by Quality). Merge per key with utils.cache.base._deep_merge, as the docstring already promises; the compose builder and the swarm matrix both bake through it.

🎯 Fix: 93 %
💥 Break: 4 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 11:32:53 +00:00
kevinveenbirkenbachandClaude Opus 5.5 ed593a9227 fix(ci): list a run's jobs in pages GitHub serves and show gh's error
The report job of main Push run 45654606135 died in list_jobs: gh api --paginate runs/<id>/jobs exited 1 and _gh dropped its stderr, so the log showed only the CalledProcessError. gh --paginate asks for per_page=100 by itself (GH_DEBUG shows the request), and GitHub answers a large run's jobs at that page size with HTTP 502 (4 of 4 on run 45509759037) while pages of 30 answer. list_jobs now asks for per_page=30, and _gh writes gh's stderr before it raises, so the next failure names its cause. Operator pick c398fb2e6a230907 lands it below the 90 bar: the 502 of the failing run itself was never logged.

🎯 Fix: 85 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 98 %
🏆 Score: 82
🚦 Gate: ⛔ fix 85 % < 90; security 98 % < 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:39:41 +00:00
kevinveenbirkenbachandClaude Opus 5.5 ffb37c841a Merge origin/main into fix/meta-resolve/affected-real-includers
Takes main up to daea156470 (hotfix #2946 for the 501-line test file that turned this PR's Test job red, #2927, and the IAM line). Clean merge; on the merged tree test_invocations.py (28) and the affected resolution test_main.py (19 + 4 subtests) pass.

🎯 Fix: 93 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:42:04 +00:00
kevinveenbirkenbachandClaude Opus 5.5 918492cb9c fix(meta-resolve): select static include_role/import_role includers with all variants
A change to an app role that another role pulls in through an ungated include_role or import_role with a literal target now selects that includer, transitively, with every variant, because the includer runs the changed tasks in each of its rounds. utils.roles.invocations gains included_roles (shared with task_invocations) and role_includes, which skips includes gated on the included role being in the host's groups. Closes the 6 include gaps (svc-net-firewall -> svc-net-tor/svc-swarm-node, web-opt-rdr-domains -> web-svc-asset/web-svc-design, dsk-keepassxc -> dsk-chromium, dsk-dotlinker -> dsk-nextcloud). Loose includes (load_app_id, vars-named or path includes) are deferred to follow-up requirement ci-affected-loose-includes per operator decision. MEDUSA: DP-1089 on a pre-existing comprehension fixed by renaming; no new acceptances.

🎯 Fix: 91 %
💥 Break: 4 %
💸 Tokens: 121 %
⏱️ Velocity: 121 %
🛡️ Security: 100 %
🏆 Score: 60
🚦 Gate: ⚠️ tokens 121 % > 100, velocity 121 % > 100: ask the operator before the commit

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 23:53:46 +00:00
kevinveenbirkenbachandClaude Opus 5.5 1539bb6698 fix(ci): select only the roles whose rounds really deploy a changed role
PR 2846 changed only web-app-n8n and CI deployed every variant of ten unrelated roles: the disk closure linked each matrix consumer to n8n through matrix's dynamic n8n flag, and a role none of whose variant rounds deploys the seed fell back to all of its variants. The selection now drops such roles and keeps every other role only with the variants whose round deploys a seed. Its prefilter is built from the union of each role's disk, variant and nested services, so service keys only a variant declares (web-app-lam in moodle and openbao) are no longer missed. run_after no longer counts as an include, and a seed without application_id falls back to a full deploy. Checked against the planner's rounds for all 198 app seeds: exact. MEDUSA acceptances: RH005 on both existing raise SystemExit lines (exit contract, the caller maps any non-zero exit to __ALL__).

🎯 Fix: 95 %
💥 Break: 4 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 22:43:42 +00:00
evangelostsak 5d1f82fb0a Merge remote-tracking branch 'upstream/main' into feature/web-app-openpost 2026-11-23 16:07:54 +01:00
kevinveenbirkenbachandClaude Opus 5.5 83ee9e5123 Merge origin/main 70bbbb33b6 into fix/web-app-mediawiki/variant-budget-credit
Brings 27984bdf18 (PR 2562), which fixes this PR's Jenkins#0 failure in run 45037081070.

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:09:11 +00:00
kevinveenbirkenbach a6da7c28f4 Merge pull request #2552 from infinito-nexus/feature/ci/run-all-label-emoji
feat(ci): add a Run all PR label and emoji CI labels
2026-11-22 22:07:19 +01:00
kevinveenbirkenbachandClaude Opus 5.5 3308499701 feat(ci): add a Run all PR label and emoji CI labels
A PR run stops at its first failure: on pull request events the deploy matrix runs with fail-fast, so one failed row cancels the rest of its batch, and the batch 1 gate stops every later batch, so PR #2006 showed one failure per run. With the 🏃 Run all label the PR workflow calls the orchestrator with chunk_gate false, and call-test-deploy ties the matrix fail-fast to chunk_gate, so every row and batch deploys to its end; push and dispatch runs are unchanged. Every labeled event used to cancel the running PR pipeline and start a new one (42 of the last 200 PR runs): a run whose jobs all skip still joins the concurrency group, and the superseded-run canceller keeps it as the newest. Only 🧩 Subset, 🛡️ Trusted and 🏃 Run all now restart PR CI; any other label gets a group of its own and skips, in the PR workflow and in the canceller. The labels CI sets carry an emoji: ⬆️ update, 🔴 major, 🟡 minor, 🟢 patch, 💥 ci-failure, 🔓 vulnerability, 🔥 vulnerability-runtime, 💤 stale. pr.sh labels updater PRs through the label CLI with a new --level option, which also drops a stale level label when an existing PR changes level. test_pr_ci_labels.py keeps the three label lists equal and fails against the main workflows. Tests: update, security, meta/ci, workflow and repository lint suites green after the fixture updates (65 + 3 passed, 826 in the first full run); MEDUSA 100 %.

🎯 Fix: 88 %
💥 Break: 7 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 82
🚦 Gate: ⛔ fix 88 % < 90, break 7 % > 5

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 15:07:27 +00:00
kevinveenbirkenbachandClaude Opus 5.5 861a727ba0 test: import unittest.mock without an alias next to unittest
CodeQL flagged two test files of PR 2226 with Module is imported with import and import from (alerts on test_covered_rows_are_deployed.py:18 and test_reach.py:6): both import unittest and also import unittest.mock as mock, which CodeQL reads as a from-import. Both now import unittest.mock plainly and call unittest.mock.patch and unittest.mock.Mock, so the module is only ever imported with import. No behaviour change. Tests on the exported PR tree, isolated from other checkouts with python -P: both files plus the repository import lint, 22 passed; ruff check and format clean.

🎯 Fix: 92 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:18:30 +00:00
Alejandro Roman 79f0c74c4b Merge remote-tracking branch 'upstream/main' into feature/ansible-task-overhead 2026-11-22 16:17:26 +04:00
evangelostsak 7f30c817fd Merge remote-tracking branch 'upstream/main' into feature/web-app-openpost 2026-11-22 10:01:09 +01:00
kevinveenbirkenbachandClaude Opus 5.5 8d1c68c3f1 test(ci): run the reach tests as unittest TestCases
TestTestFilesContainUnittestTests counts only classes that inherit unittest.TestCase directly. TestRuns, TestNetworks and TestRounds inherited it through _Fixture, so test-lint failed on the pull request run 44825789102 with test_reach.py "do not define any unittest-runnable tests". _Fixture becomes a mixin and each test class inherits (_Fixture, unittest.TestCase).

🎯 Fix: 95 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 11:16:52 +00:00
kevinveenbirkenbachandClaude Opus 5.5 3789581cc3 Merge origin/main 71d74e44cc into fix/web-app-mediawiki/variant-budget-credit
🎯 Fix: 95 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 11:16:27 +00:00
kevinveenbirkenbachandClaude Opus 5.5 c50808fa04 test(update): keep the merge tests off real hosts and role-file literals
The merge tests from #2428 used https://github.com/o/r/actions/runs/... check URLs, which TestUrlsReachable fetches and gets HTTP 404 for, and hard-coded roles/<role>/meta/services.yml and meta/main.yml paths, which TestRoleFileSpot refuses. make quality-high on main 9f5f1e4a90 failed test-external and test-lint on them.

The URLs move to the github.example host the reachability test skips; gate.check_refusals matches only /actions/runs/<id>/, so the host does not matter. The paths take ROLE_FILE_META_SERVICES and ROLE_FILE_META_MAIN from utils.roles.mapping.

🎯 Fix: 97 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 95
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:51:43 +00:00
kevinveenbirkenbach 9f5f1e4a90 Merge pull request #2428 from infinito-nexus/feature/update-auto-merge-tag-refs
feat(update): tag-based SHA pins, update level labels and proven auto-merge
2026-11-21 10:53:17 +01:00
kevinveenbirkenbachandClaude Opus 5.5 69fb244f56 test(update): import unittest.mock members instead of unittest twice
GitHub code quality flagged three new test modules for importing unittest both with import and with from-import. They now import Mock or patch from unittest.mock, the form the rest of the repository uses. No assertion changed; the label, merge github and merge main tests pass as before (11, 7 and 15).

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 09:38:25 +00:00
kevinveenbirkenbachandClaude Opus 5.5 306382e03d feat(ci): merge update PRs automatically once CI deployed every changed role
entry-pr-green-update-merge.yml runs on a successful pull_request run of the PR pipeline for update/* and dependabot/* branches. cli.contributing.update.merge merges only when the updater App or Dependabot opened the PR from its own branch against the default branch, it carries the update label, every check run and status on its head is green, and the role-runtimes artifacts of that run list every role the PR changes. The gate reads with the read-only GITHUB_TOKEN; the App token is minted only after it passes and merges through the REST API pinned to the tested head SHA. entry-pr-change-dependabot-label.yml gives Dependabot PRs the same update plus level labels, and dependabot.yml adds the update label to every active ecosystem. Both workflows stay off unless CI_ENABLE_AUTO_UPDATES is true.

🎯 Fix: 82 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 80
🚦 Gate: ⛔ fix 82 % < 90

MEDUSA accepted false positives: RH005 cli/contributing/update/merge/__main__.py (standard CLI entry), WEB-PATH-002 cli/contributing/update/merge/github.py (zip read in memory with size caps, never extracted), B603 cli/contributing/update/merge/github.py (list-form gh subprocess, no shell).

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 09:12:56 +00:00
kevinveenbirkenbachandClaude Opus 5.5 5c6b274d52 feat(update): label every update PR update plus major, minor or patch
utils/update/level.py reads the update commit with git diff -U0 and returns the highest step among the versions it rewrites: the first differing number decides major, minor or patch, and a step that is no number change (a commit SHA, a SHA moving to a tag) counts as major. scripts/github/update/open/pr.sh computes the level after its commit, makes sure the four labels exist through python -m cli.contributing.update.label --ensure-only, and sets update plus the level on the PR it creates or edits. The label module is stdlib only, like level.py, because the update jobs install no dependencies.

🎯 Fix: 88 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 84
🚦 Gate: ⛔ fix 88 % < 90

MEDUSA accepted false positives: B603 cli/contributing/update/label/__main__.py and B603 utils/update/level.py (list-form gh and git subprocesses, no shell); MEDUSA-AI-BACKDOOR-006 utils/update/level.py (unified-diff hunk header parsing).

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 09:12:06 +00:00
kevinveenbirkenbachandClaude Opus 5.5 6622f9bfb5 feat(ci): let vars.INFINITO_CI_CONCURRENCY override the runner slots
call-validation.yml and call-test-deploy.yml forward the repository variable in their workflow-level env, so the priority batch count and every chunk's discover step cut the same plan. Unset or empty keeps the default.env value: env_setting and load.sh both skip an empty caller value. Set to 500, the chunk size exceeds the run's job budget, a sweep needs one chunk (two with a priority line), and INFINITO_CI_JOB_LIMIT is the only bound. A workflow guard fails when a chunk-sizing workflow stops forwarding the variable.

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 08:59:11 +00:00
kevinveenbirkenbach 7580c97dcd Merge branch 'main' into feature/ansible-task-overhead 2026-11-20 23:03:56 +01:00
kevinveenbirkenbachandClaude Opus 5.5 4d182b0795 Merge origin/main 173b08e6cb into fix/web-app-mediawiki/variant-budget-credit
Clean merge; main 173b08e6cb is gated green (quality-high-1067). On this tree test_covered_rows_are_deployed passes 7/7.

🎯 Fix: 93 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 22:01:53 +00:00
kevinveenbirkenbachandClaude Opus 5.5 a3b7af619b fix(ci): skip the runtime vulnerability sync when no deploy chunk ran
A main push whose selection deploys nothing (all four deploy chunks skipped) uploads no rescue-diagnostics artifact, so gh run download in the runtime vulnerability sync step exited 1 and turned the report job and the whole pipeline red (run 44683997608 on a29d4bf8fe). The step now runs only when at least one deploy chunk succeeded, failed or was cancelled; with nothing scanned there is nothing to open, update or close.

🎯 Fix: 95 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 94
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:40:08 +00:00
Alejandro Roman 1d0ea778a1 Merge commit '4fe43fde81' into feature/ansible-task-overhead 2026-11-20 03:01:25 +04:00
Alejandro RomanandClaude Opus 5.5 5da3579d3e fix: address the review findings on the per-task overhead change
- Require ansible-core 2.21: the deploy CLI refuses a venv whose packages
  differ from the exact pins of the deploy extra, the carrier action names
  the version it needs instead of failing on an import, and the image
  installs the pinned ansible from pyproject.toml.
- Lint: catch compact == comparisons, scan compose/, inventories/ and both
  playbooks, flag bare services/packages/getent_* reads, and derive the
  allowlist from ansible-core's variable map and the plugins' documented
  options.
- Tag the play environment freeze and check with always, and cover a task
  override, a handler, a delegated task and a tagged run.
- Map a failed docker.service query to its fail_msg.
- Pin the docker_cached options to the installed stock connection, read
  the carrier through hostvars in a two-host test, and correct the carrier
  guard message and the stale README line reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:01:19 +04:00
kevinveenbirkenbachandClaude Opus 5.5 e32e848cca test(ci): import unittest.mock as a plain import in the query test
test_query.py imported unittest both as a module and through from-import, which tests/lint/repository/python/test_import_and_import_from.py rejects; main already failed test-lint on the same shape in test_render.py.

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 18:44:39 +00:00
kevinveenbirkenbachandClaude Opus 5.5 8d4ee4e7ae test(ci): assert the query diagnostic reaches stderr, single unittest import style
The discover_rows test asserted only that the CalledProcessError carries no stderr, which also holds when stderr is discarded; it now captures fd 2 and requires the VariantPinError text there. The coverage-cut tests import unittest.mock as a plain import, so CodeQL no longer flags the mixed import/from-import of unittest. Review feedback on PR #2226.

🎯 Fix: 94 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 92
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 16:53:13 +00:00
evangelostsak 99eecffef4 Merge remote-tracking branch 'upstream/main' into feature/web-app-openpost 2026-11-19 12:54:33 +01:00
kevinveenbirkenbachandClaude Opus 5.5 37e5381fab fix(ci): cut MediaWiki#0 to budget with honest coverage credits
web-app-mediawiki#0 died on the deploy cap in PR #1456 (run 44360158737: pass 2 killed at 19334 s). Its round pulled Jitsi through Matrix#0 and Weblate through Translate#0.

The cut: Matrix variant 0 turns Jitsi off (bond 1 -> 0.5, like mattermost, moodle and discourse), and Weblate moves from Translate variant 0 to variant 3 with a reciprocal pin. The model puts mw#0 at 23267 -> 19695 s (extrapolated pass 2); the trivy report reuse already on main (6f1daf9c3d) covers the rest.

Without an honest credit the cut lost the edge weblate#0 -> translate#0, because openproject#3 was credited with Weblate it never deploys. This brings over the credit fix from the IAM line, commit 36deb3e6f4 (cli, reach.py and its tests; the workflow warning stays on IAM). A row now counts as covered only if its coverer deploys it at variant 0 in every mode and network. False credits drop from 23 to 0.

Coverage: all 547 Playwright specs keep their trigger (527 triggered, 0 never, 20 outside lifecycles, the same list as main). jenkins#0, n8n#0 and web-svc-html#0 become rows of their own and displace espocrm#2, openbao#2 and opencloud#2 from the 204-row head. One variant edge, weblate#0 -> translate#0 shared, is lost, because the IAM rule does not compare provider variants. Goldens: wordpress#0 and nextcloud#7 drop from 29 to 27 roles.

Not run: unit and integration tests (per order, MEDUSA only; the suite runs on main). MEDUSA: 100 %, three accepted findings carried over from 36deb3e6f4.

🎯 Fix: 80 %
💥 Break: 10 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 72
🚦 Gate: ⛔ fix 80 % < 90, break 10 % > 5

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:15:19 +00:00
kevinveenbirkenbachandClaude Opus 5.5 1e04f98da8 feat(variants): pin a partner by a switched-off service and carry static addons in one variant
A '# variant-pin: <role>#without-<key>' target resolves to the partner's one variant that pins services.<key>.enabled to literal false, with no reciprocity needed. Nextcloud v15 pins web-svc-mirror#without-prometheus above its tor entry, which cuts the tor -> mirror -> prometheus -> keycloak chain: the include of web-app-nextcloud#15 drops from 21 to 7 roles and v15 costs 9196 s instead of 17039 s over the job list (+12308 -> +4465 s over the head), coverage kept with 96/96 edges.

test_addons_variant_pinning gains the carrier rule: one variant per role may keep the static addons on with '# nocheck: addons-variant-pinning <reason>' on its own addons: line. The marker fails on variant 0 or 1, on a second marked variant, with a reason under MIN_REASON_CHARS, while variant 0 still installs the static addons, and on a carrier that leaves none of them on. test_variant_pin_required counts only index and reciprocal pins as the pin a mutual pair must declare.

Accepted MEDUSA-FTSCAN-231 (variant_pins.py:66) as a reviewed false positive: yaml.compose builds nodes only, git-tracked input, no sink.

🎯 Fix: 90 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 20:00:25 +00:00
kevinveenbirkenbachandClaude Opus 5.5 0bf9e3d777 fix(mirror): join a digest pin with @ in the mirror and image lookup
Port of the reference part of IAM 7646dcbc94. The fork mirror of #2006 (run 44253986749) runs main's mirror code under pull_request_target and built docker://ghcr.io/.../node:sha256:feb766..., an invalid reference. providers.py gains image_ref() through utils.docker.image.pin.pull_reference; tag_exists, mirror, sync and wait use it, and plugins/lookup/image.py joins the same way. Tag pins keep their reference unchanged (test_every_tag_pin_of_the_repository_keeps_its_mirror_reference); main declares no digest pin. Negative control: the ported tests against main's providers.py fail with node:sha256 versus node@sha256.

🎯 Fix: 92 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:18:07 +00:00
evangelostsak 4eae9b49e8 Merge remote-tracking branch 'upstream/main' into feature/web-app-openpost 2026-11-16 10:10:37 +01:00
kevinveenbirkenbach a16f002ae7 Merge branch 'main' into dependabot/pip/backup-docker-to-local-8.0.0 2026-11-14 22:13:52 +01:00
kevinveenbirkenbach 2b75848b4b Merge pull request #1973 from infinito-nexus/fix/deploy/no-inventory-dump
fix(deploy): never print the inventory file on an invalid application id
2026-11-14 21:15:30 +01:00
kevinveenbirkenbachandClaude Opus 5.5 a8b6707164 fix(deploy): never print the inventory file on an invalid application id
validate_application_ids printed the whole inventory file to stdout when
an --id was invalid, so a typo in ROLES put inline inventory variables,
credentials included, into CI and Semaphore task logs. The error now names
the invalid ids, their reasons and the inventory path only.

New test writes a real inventory file with a marker secret and asserts it
never reaches stdout; on the old code it fails with the marker printed
inside the BEGIN INVENTORY FILE block. Nothing in the repository parses
the removed dump. Reported by Store.

🎯 Fix: 96 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 95
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 20:13:53 +00:00
kevinveenbirkenbach eb67c8f444 Merge branch 'main' into dependabot/pip/backup-docker-to-local-8.0.0 2026-11-14 20:59:23 +01:00
kevinveenbirkenbach 14286b11ae Merge remote-tracking branch 'origin/main' into fix/roles/role-version-on-main 2026-11-14 19:49:43 +00:00
kevinveenbirkenbach fbc392dc54 Merge pull request #1969 from infinito-nexus/fix/deploy/cache-stack-infra-owner
fix(deploy): keep the legacy cache stack off while the infra runner owns the cache base
2026-11-14 19:56:24 +01:00
kevinveenbirkenbachandClaude Opus 5.5 6d74457ef8 fix(deploy): keep the legacy cache stack off while the infra runner owns the cache base
The infra runner (make infra-up) takes over DIR_CACHE, the same Nexus and
registry data the legacy cache stack serves, and writes <DIR_CACHE>/infra.owner
before it starts; nothing removes that marker. Checkouts on main would still
start infinito-registry-cache, infinito-package-cache and the frontend on the
same data. Profile.cache_stack_enabled() now returns False while the marker
exists, whatever INFINITO_CACHE_STACK says, and prints one notice per process.
Only the marker's existence counts, never its content.

TestProfileInfraOwner covers a marker file versus a directory of that name,
the declaration override, the single notice and the unchanged behaviour
without a marker. The compose, env and profile tests that reach the switch
patch infra_owns_cache to False, so they stay independent of the host marker.
Negative control: with profile.py reverted 49 tests fail, all 6 new ones
among them. tests/unit/python/cli/administration/deploy/development: 171 passed.

Accepted security findings: 5 SAST-ENV-001 (high) on profile.py env reads that
exist verbatim on main (INFINITO_GPU_COUNT, INFINITO_GIT_COMMON_DIR,
INFINITO_CACHE_NETWORK, INFINITO_CACHE_SHARED_HOST_PATH,
INFINITO_CACHE_HOST_PACMAN_PATH): non-secret config reads, shifted by the insert.

🎯 Fix: 93 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 18:37:09 +00:00
kevinveenbirkenbachandClaude Opus 5.5 f6613b78fd fix(roles): bring the role_version lookup and its image-check resolution to main
Custom roles such as web-app-cst-store pin their images to their own release,
`v{{ lookup('role_version', '<role>') }}`. Main had neither the lookup nor the
image discovery that resolves it, so core's external image tests rejected the
template as neither version nor digest and asked the registry for the literal
string (GUI CI job core / custom-role (test), red since 2026-11-11).

Ports e615f5fa22 (record the source semver in the pull marker, add the
role_version lookup) and ed9101780e (resolve role_version pins in image
checks) from the production line, without the rest of that branch. Adds
tests/unit/python/tests/external/update/docker/test_role_version_pins.py,
which runs the real pin-policy and reachability checks against a custom-role
fixture with the registry mocked; reverting the discovery change fails it at
the same lines as the GUI CI.

🎯 Fix: 94 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 17:27:08 +00:00
kevinveenbirkenbach 02565bd92f Merge commit 'c57939d717dff40909102d3e091be7593fcdfa2b' into fix/codescan/python-hygiene 2026-11-14 14:46:23 +00:00
kevinveenbirkenbach 52b26303ef Merge pull request #1964 from infinito-nexus/fix/sys-ctl-hlth-runtime/trivy-rhel10-library-only
fix(sys-ctl-hlth-runtime): leave CentOS Stream 10 and RHEL 10 OS packages to Grype
2026-11-14 14:11:50 +01:00
kevinveenbirkenbachandClaude Opus 5.5 a7ec9bca20 fix(sys-ctl-hlth-runtime): leave CentOS Stream 10 and RHEL 10 OS packages to Grype
The daily mirror scan died on an engine error for quay.io/centos/centos:stream10: trivy sbom fails with 'unable to scan OS packages' because Trivy matches no Red Hat advisory for release 10 yet (aquasecurity/trivy-db#435). trivy.unmatched_os lists such OS releases with an until day; while Grype runs, Trivy scans only the library packages of a target whose SBOM names a listed release, and Grype keeps scanning its OS packages. The entries expire on 2026-11-30 like every suppression, and the CVE lint enforces that cap. Probe: trivy 0.76.1 sbom over the Syft v1.55.0 SBOM of centos:stream10 exits 1 with the FATAL without the flag and 0 with --pkg-types library. Accepted MEDUSA-AI-BACKDOOR-006 on script.py:246 as a reviewed false positive: an unchanged dataclass field typing the date-capped CVE suppressions.

🎯 Fix: 93 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 12:59:36 +00:00