Repository navigation
Conversation
…files PR #470 merged through GitHub without running the local gate, so its files carried formatter drift that blocked the next gated push.
The auth-lockout defensive branch at line 445 was only covered incidentally; this batch's test rewrites dropped that side effect and the coverage gate caught it. Named regression test drives a locked-out response with a res stub lacking setHeader.
…nto the docs page The root DEPRECATIONS.md already explains the deferral to API v2 (the frozen /api/v1 surface cannot drop a method); the published deprecations page carried no removal row at all.
…ls + races) (#471) ## What Closes every item in `.planning/portwing-edge-punchlist.md` — the adversarially-verified gaps left by the #470 WIP checkpoint. The edge feature is now actually finished. ## Fixes 1. **[critical] Process crash on non-string `agentName`** — `validateAgentNameField()` rejects malformed hellos up front ('invalid-agent-name' error frame + 1008 close) instead of throwing an unhandled rejection; `computeAgentName()` is type-safe as defense in depth. 2. **[critical] Name squatting across Ed25519 keys** — `nameToKeyId` binds display name → pubKeyId on first use; a hello reusing a name under a different key is rejected ('agent-name-claimed'). Binding releases on key revocation so re-provisioned agents reclaim their name. Review hardening: the map is capped at 10,000 with 24h-idle pruning that never evicts a live agent's binding (a single valid key could otherwise grow it unboundedly via fresh names — ~288k/day within the nonce-admission limit). 3. **[major] Double `onDisconnect` / name-keyed eviction** — idempotency guard, listeners detached before forced close, and instance-checked removal (a stale connection's delayed cleanup can no longer evict a reconnected agent with the same name). 4. **[major] `pendingRequests` collision** — unique uuidv7 requestId per call + per-container FIFO correlation. Portwing's response frames carry only containerId today (verified against `internal/protocol/messages.go` — no request-id echo), so this is FIFO correlation with the wire limitation documented, not silently pretended away. 5. **[minor] `timestamps` flag on the edge log path** — documentation-only by design: portwing's wire schema has no timestamps field and hardcodes timestamps/follow to false server-side, so a drydock-side field would be forwarded into a void. Commented at the forwarding site + user-facing Callout in the agents doc. Real support = joint protocol work (tracked). 6. **CHANGELOG** — [Unreleased] entries for the full #470 edge scope, added now that the feature is finished. Wire format unchanged; SERVER_COMPAT_LEVEL stays 1.4.0. Item 7 (API reference) is on `docs/edge-endpoint` (3ce7d02): lookout.mdx → portwing.mdx, rewritten against current dev/v1.6 code, stays unmerged until DD_EXPERIMENTAL_PORTWING graduates per house rule. ## Verification - EdgeAgentAdapter.ts at 100% stmt/branch/func/line coverage (119 tests); portwing-ws suite +409 lines covering non-string agentName and squat-proofing; full agent/ dir 868 tests green. - biome, tsc, qlty gates, script tests (83), workflow tests (248), sharded coverage gates (app+ui, 100% met), build shards — all clean. - Two independent adversarial reviews (deep + Codex); the one major finding (unbounded binding map) fixed in c3ed9b8 and re-verified.
…1.6 line Ports main's 41bcf97 (ships in v1.5.1-rc.6): - execCommand fallback for copy-to-clipboard on insecure contexts, plus a copy-failed feedback state alongside the existing copied state - tooltip directive now diffs content on updated() and re-shows in place when the pointer never left the anchor (e.g. the copy button's "Copied"/"Copy failed" title swap) - CopyableTag gains an idleTooltip prop so callers no longer need to double-bind an outer v-tooltip alongside the component's own tooltip Adapted to dev/v1.6's drifted containers/dashboard views: the digest-delta cell in ContainersGroupedViews.vue and the mobile old/new version tags in DashboardRecentUpdatesWidget.vue now pass :idle-tooltip= instead of an outer v-tooltip.top= binding on <CopyableTag>. Swept the rest of ui/src for other CopyableTag + v-tooltip double-bindings; found none. CHANGELOG intentionally excluded — reconciles at the GA merge.
… v1.6 line Ports main's 322012d (ships in v1.5.1-rc.6): suggest() now rejects tags whose stable-looking parse only came from semver.coerce()'s lossy fallback (PEP 440 dev/post releases, OS-variant suffixes, hyphenated CalVer dates) unless the raw tag is itself a bare numeric version, closing the gap where a coercion-mangled prerelease could be offered as a stable pin target. ContainersGroupedViews.vue now renders the suggested tag via SuggestedTagBadge (already present on dev/v1.6, previously imported but unused in this view) instead of a raw, unlabeled span. CHANGELOG intentionally excluded — reconciles at the GA merge.
) Ported from main bec684e.
Ported from main 68a5c2d. Resolved conflicts key-wise across 17 locale files: kept dev/v1.6's rewritten deprecation-banner copy (legacyApiBody, curlHealthcheckBody) and dropped the stale dataFilterBar.viewMode*/dataListAccordion keys that dev/v1.6 already removed from the en source, while accepting Crowdin's new/updated translations everywhere else.
Ports renovate/npm-minor-patch-appsdemo 7663c86.
Ports renovate/npm-minor-patch-ui 72baa71, which only touched ui/package.json. Regenerated ui/package-lock.json via npm install.
Ports renovate/npm-minor-patch-app 071974e.
js-yaml 3.14.2, pulled in transitively via [email protected]'s ^3.14.1 range, carries a medium quadratic-complexity DoS advisory in merge-key handling (GHSA/Dependabot alert #141), fixed in 3.15.0. npm update js-yaml resolves it to 3.15.0 without an override since that satisfies artillery's existing range.
…gle (prefs v9)
- DataTable: preferCards prop, optional #card scoped slot rendered in the
existing interactive wrapper, cardMode threaded into every cell/actions/full-row
invocation, borderless wrapper (1.5px transparent, primary when selected), no
zebra striping in card mode, start-aligned generic-composer values
- preferences: ViewMode ('table' | 'cards'), schema v9 with per-view mode fields
scoped to containers/agents/notifications/security/triggers, useViewMode restored,
isViewMode validator, list-mode rejection typecheck guard
- DataFilterBar: restore the 2-way table/cards switcher, optional modelValue gated
so unmodeled views keep no dead toggle
- locales: restore dataFilterBar.viewMode* keys across all 17 languages
- tests: DataTable card-slot/cardMode/borderless coverage, v8->v9 migrate rewrite,
useViewMode + DataFilterBar toggle specs, ui gate 100%
Phase 0 shared infra for the v1.6 card resurrection.
…d slot Ports main's designed container card into the v1.6 single-DataTable path, rendered through the Phase 0 #card slot (desktop table/cards toggle + automatic <640px reflow). - ContainersGroupedViews: #card template (header with registry/policy-state icons, version delta, status, footer actions), borderless, footer owns its elevated zone - digest guard (#356/#370) matches the retained table #cell-version exactly: non-digest-pinned shows tag-only with the delta in the tag idle-tooltip, digest-pinned shows the sha256 -> sha256 pair - card action row at 44px (size=sm) touch targets, recheck via the kebab - ContainersView/context/ContainersListContent: provide containerViewMode, v-model the toggle, hide the column picker in card mode - useColumnVisibility: drop the now-inert cardPriority annotations - tests: card-mode coverage for the new template, ui gate 100% Phase 1 of the v1.6 card resurrection.
gcc 14.2.0-r4 -> 15.2.0-r5 and musl-dev 1.2.5-r11 -> 1.2.6-r2. The base image is digest-pinned but apk pulls live from the CDN, which superseded the old revisions, breaking the image build (and CI's build/e2e stages) on the line.
- 🎨 Cards float on the page background (transparent wrapper) so each reads as independent instead of "cards sitting on a card" - 🎨 Responsive card grid (auto-fill minmax) with uniform row height via grid-auto-rows: 1fr + h-full, footer pinned with mt-auto - 🎨 Mobile-first version line: drop the "Current"/"Latest" wording, use a → arrow, strip the inline update-state badges - 🎨 Move the update-state badge to the card's top-right; demote the registry to the subtitle line next to the server - 🗑️ Remove release-notes + project links from the card body (they already live as icon-only links in the footer bar) so a long release tree can't blow the card open - 🎨 Grouped views: group headers span the full grid width (grid-column 1 / -1) so stacks no longer scramble the card grid - 🎨 Grouped table separation: page-bg ground between stacks, no zebra when grouped, elevated sort/header row (incl. the ACTIONS header, which was hardcoded to inset) - ✨ Hoist sort into the filter toolbar (new DataSortControl) for card mode; hide the view toggle when width forces the reflow - 🎨 Group-header spacing: tight within a stack, loose between, small break before the first stack
…te (#491) Forward-port of b5a9e00 (PR #492, 1.5.1 line) onto dev/v1.6. The Home Assistant MQTT discovery latest_version template rendered an empty string for any container with no pending update (no `result` in the flattened state payload, so no `result_tag`/`result_digest`). HA silently discards an empty template render, leaving "Newest version" unset — and because HA blanks the whole `update.*` entity state when either version is missing, the entity read "Unknown" forever instead of resolving to "up to date". The template now falls back to `image_tag_value` (the installed tag) in both the digest and tag branches, and guards the digest slice with `if value_json.result_digest` so a digest-kind report carrying no digest no longer trips HA's `Undefined[:15]` slice error. CHANGELOG entry intentionally omitted — it lives on the 1.5.1 line; the fix ships there first, so v1.6 inherits it without a duplicate changelog note. Fixes: #491
…aFilterBar/Containers Cover the card-view infrastructure landed with the Containers card work: - new DataSortControl.spec.ts for the card-mode sort control - DataTable #card slot / hoist-card-sort and DataFilterBar #sort slot specs - Containers grouped/list/group-header + ContainersView card-mode specs
Extend the DataTable #card slot and table/cards toggle (useViewMode) to the Agents, Notifications, Security, and Triggers views, matching Containers: - Agents and Security hoist a DataSortControl into the filter bar for card-mode sorting (table mode still sorts via column headers) - Notifications and Triggers gain card rendering via the #card slot - SecurityView adds a "Clean" severity label for up-to-date rows
Replace Vercel telemetry with a cookieless, allowlisted PostHog contract for pageviews, CTAs, and web vitals.
## Summary - enumerate every approved analytics CTA tuple - prove the runtime allowlist exposes every documented CTA ID and placement - close the exhaustive-coverage gap found during the dev-to-main promotion review ## Verification - mutation RED: removing `marketing\0install_quick\0get_started` fails the new exhaustive contract - GREEN: focused analytics contracts pass 8/8 - full normal pre-push passes, including 100% app/UI coverage and both builds Refs #732 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ✨ Added `ANALYTICS_CTA_TUPLES` as the canonical list of approved surface, CTA, and placement combinations. 🔧 Derived `ALLOWED_CTA_TUPLES` from `ANALYTICS_CTA_TUPLES`. ✨ Added exhaustive contract tests with `APPROVED_CTA_TUPLES`. ✨ Verified that exported tuples and `isAllowedCta` match the approved allowlist. ✨ Verified the mutation test, 8 focused analytics contract tests, full pre-push suite, 100% app/UI coverage, and both builds. - No actionable concerns identified. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]>
## Summary - apply the fresh six-README Crowdin output to the current `dev/v1.7` tree - restore localized public labels and the v1.7 dependency/security link mapping - remove source-English regressions from the Chinese README and restore exact URL and HTML-tag parity - clarify fail-closed authentication wording and fix localized table/link rendering found during review ## Verification - RED: exact Crowdin head `8e08831e52d98765000ac20c23783e195da718d8` failed 12 of 76 translation contracts - GREEN: focused translation contract passes 76/76 - review RED/GREEN: temporary focused review contract failed 4/4 before the wording/markup fixes and passed 4/4 afterward; the disposable test was removed so the product diff remains six READMEs - full workflow contracts pass 160/160 - repository maintenance scripts pass 166/166 - normal pre-push hook passes twice, including Biome, Qlty, UI typecheck, 100% app/UI coverage, and app/UI builds - `git diff --check` passes ## Frozen review identity - base: `9db36cce930532f044d1fa5e294cf9a622ab14e8` - head: `ccadd6516520b2f9e0ffaa76c20849c1cbaf0a7d` - tree: `b3cd1d00173a153c310ef918c81e4c8b00cd6a6a` - patch SHA-256: `c0cd81d58e35a2855958e85181bd49acf5eb7dd3788b2485caf49ec56e46d01f` - scope: exactly six translated README files Greptile review is skipped under the explicitly accepted exhausted-credit decision. CodeRabbit, CI, and human language review remain required. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔧 Updated six translated README files to restore source-content, link, URL, and HTML-tag parity. - 🔧 Reformatted badges, collapsible sections, screenshots, feature tables, comparison tables, roadmap tables, documentation tables, and ecosystem tables. - 🔒 Documented fail-closed authentication behavior across translations. - 🔧 Updated localized v1.7 release, security, dependency, lifecycle, migration, and star-history references. - 🔧 Corrected translated labels and integration headings. - 🗑️ Removed an obsolete German roadmap note. ## Concerns - Verify all translated README links and URLs against the source README. - Verify HTML and Markdown tables render correctly on GitHub. - Verify `<details>` summaries remain accessible and consistent. - Confirm no translated content was lost during structural reformatting. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]>
Squash merge of reviewed head 1074a1f into dev/v1.7.
## Summary - preserve the Cosign product name in the Spanish security descriptions - complete the Polish roadmap localization and correct the `curl` removal note - correct Chinese Docker-socket, localization, release-intelligence, scanner, and domain terminology - preserve Polish Compose, Docker digest, update-mode, routing, resource-action, and template-variable semantics ## TDD verification - initial RED: a focused seven-case translation contract failed 7/7 on exact dev `4fc848253210a6885fd95a1916cb5ee3416e0695` - initial GREEN: the same contract passed 7/7 after the first three README edits - first-review RED: a focused three-case contract failed 0/3 on exact `8ba66139f46123313c7ca91381bf2c8bca03a598` - first-review GREEN: the same contract passed 3/3 after preserving Compose/matching semantics, natural Polish roadmap terminology, and all Chinese scanner/backend choices - exact-review RED: a focused three-case contract failed 3/3 on exact `7df439f04f386800051a9bf57f86d55f2234d9e8` - exact-review GREEN: the same contract passed 3/3 after preserving Polish routing, template-variable, Docker digest rebuild, update-mode, and resource-action semantics - disposable review tests were removed so this fix remains a three-README product diff - existing translation contract passes 76/76 - full workflow contracts pass 160/160 - repository maintenance scripts pass 166/166 - latest normal pre-push hook passes in 290 seconds, including Biome, Qlty, UI typecheck, 100% app/UI coverage, and app/UI builds - `git diff --check` passes ## Frozen identity - base: `4fc848253210a6885fd95a1916cb5ee3416e0695` - head: `9cff7f21a489e60f030bc5742c9e4b2d17649450` - tree: `297d2aa5a463a3d6b708602e50a834fad5c21ae7` - patch SHA-256: `a9e23eae01f487dec7927488762f7799ab3b46682ed7d105feb720049890d73b` - scope: exactly `README.es.md`, `README.pl.md`, and `README.zh-CN.md` This feature PR addresses the exact-head translation findings from promotion PR #737 and the verified follow-up findings from its own reviews. Greptile is waived under the explicitly accepted exhausted-credit decision. Exact-head CodeRabbit, CI, and genuine human language review remain required. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🐛 Fixed Spanish `Cosign` signature-verification terminology. - ✨ Added Polish roadmap localization for headers and release entries. - 🐛 Corrected the Polish `curl` removal note. - 🐛 Corrected Chinese terminology for Docker socket mounting, UI localization, release intelligence, scanner options, backend, and website naming. ## Concerns - Verify terminology against the source README files. - Confirm roadmap consistency across localized README files. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]>
## Summary - restore five localized roadmap/resource table labels found during the final D4 promotion language review - keep the correction to one label cell each in German, Spanish, French, Polish, and Brazilian Portuguese - leave the already-reviewed translations and Compose changes unchanged ## TDD evidence - focused table-header contract RED: 5 failed, 161 passed - focused table-header contract GREEN: 166 passed - temporary contract removed after RED/GREEN to preserve the eight-product-path promotion endpoint - permanent README translation contract: 76/76 - full workflow suite: 160/160 - normal pre-push: clean tree, Biome, qlty, 166 script tests, 160 workflow tests, UI typecheck, app/UI 100% coverage, and app/UI builds all passed ## Exact scope - `README.de.md`: `Highlights` → `Höhepunkte` - `README.es.md`: `Version` → `Versión` - `README.fr.md`: `Link` → `Lien` - `README.pl.md`: `Resource` → `Zasób` - `README.pt-BR.md`: `Link` → `Ligação` Greptile is waived under the accepted exhausted-credit decision. Exact-head CodeRabbit, CI, and genuine language approval remain required. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔧 Changed localized README table labels: - German: `Highlights` → `Höhepunkte` - Spanish: `Version` → `Versión` - French: `Link` → `Lien` - Polish: `Resource` → `Zasób` - Brazilian Portuguese: `Link` → `Ligação` ## Concerns - Verify the Polish diff. The raw summary also reports `Link` → `Link`, while the objectives report only one changed label. - Confirm all reported validation checks pass. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]>
…740) ## Summary - `before_send` in `apps/web/src/lib/analytics-contract.ts` rebuilt every outgoing PostHog event from a hard allowlist that dropped `$raw_user_agent` and `$host`. PostHog's cookieless server-hash ingestion step reads those two fields straight off `event.properties` and silently drops the event (`cookieless_missing_user_agent` / `cookieless_missing_host`) if either is absent — same bug fixed in CodesWhat/portwing#124. - `createBeforeSend` now requires both fields (drops the event if either is missing or empty) and forwards them through unchanged. `$ip` is deliberately never forwarded — PostHog's capture service fills it in server-side from the request connection. ## Test plan - [x] `apps/web/scripts/analytics-contract.test.mjs` — added a dedicated regression test pinning that `$raw_user_agent`/`$host` are required and forwarded, and that events missing either are dropped; updated existing fixtures to carry the new required fields. - [x] `apps/web/scripts/analytics-integration.test.mjs` — added a source-scan regression guard analogous to portwing's `web-analytics-source.test.mjs`. - [x] `npm run test:scripts` (apps/web) — 87/87 passing - [x] `npm run type-check` (apps/web) — clean - [x] `npm run lint` (apps/web) — clean - [x] full pre-push hook suite (qlty, workflow-tests, typecheck-ui, web-scripts-test, coverage, build) — all green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔧 Changed `createBeforeSend` to require non-empty `$raw_user_agent` and `$host`. - 🗑️ Dropped events that omit either cookieless ingestion field. - 🔧 Forwarded `$raw_user_agent` and `$host` in sanitized events. - 🔒 Continued excluding `$ip`; PostHog supplies it server-side. - ✨ Added regression and source-scan coverage. - 🔧 Updated analytics fixtures and invalid-input cases. - ✅ Script tests, type checks, linting, and pre-push checks pass. - Confirm that all analytics event producers provide non-empty `$raw_user_agent` and `$host`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]>
…#743) ## Summary - Round 3 of the #565 thread: a controller self-update (recreate -> SIGTERM -> new process) still wiped stashed maturity-policy overrides for a replacement container, even though the sibling lifecycle/clock cache (`updateLifecycleCache`) already survives the same restart per #556. - `updatePolicyRetentionCache` only ever lived in a bare in-memory `Map`, so `stashUpdatePolicyForReplacement()`'s stash was gone before the replacement container's `insertContainer()` call could consume it in the new process. - Gives `updatePolicyRetentionCache` the same durable, write-through-backed collection `updateLifecycleCache` already has: a new `app/store/update-policy-retention-cache.ts` module, write-through on stash, delete-on-consume, and `rehydrateUpdatePolicyRetentionCacheFromStore()` wired into `store/index.ts` startup before the first `insertContainer` runs. - Does not touch the round-1 (clock-restart, #568) or round-2 (empty-override-authoritative, #624) fixes, which are already correct. - The remaining half of the report — policy loss from a pure 0-container remote-agent handshake with no controller restart — isn't explained by this fix. The existing zero-container handshake path already skips `pruneOldContainers`/`deleteContainer` entirely, so that part needs more repro detail from the reporter before a second root cause can be pinned down. ## Test plan - [x] `npx vitest run store/container.test.ts store/index.test.ts store/update-lifecycle-cache.test.ts store/update-policy-retention-cache.test.ts` — new "simulated process restart" test pins the fix; also new dedicated unit tests for the new store module and wiring-order assertions in `store/index.test.ts` - [x] `npm test` in `app/` — 12907 tests pass, 100% coverage - [x] `npx tsc --noEmit` and `npx biome check .` clean - [x] Pre-push hooks (biome, qlty, workflow-tests, typecheck-ui, coverage, build) all green Fixes: #565 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - ✨ Added a durable LokiJS-backed store for update-policy retention records. - 🔧 Changed `updatePolicyRetentionCache` to write through to persistent storage. - 🔧 Changed cache consumption, expiration, and size eviction to delete persistent records. - 🔧 Changed startup to rehydrate unexpired records before the first `insertContainer` call. - 🐛 Fixed maturity-policy overrides being lost during controller process restarts. - ✨ Added tests for persistence, rehydration, expiration pruning, eviction, deletion, and startup ordering. ## Concerns - Verify behavior during zero-container remote-agent handshakes without a controller restart. This PR does not cover that loss path. - Verify the new store follows existing store initialization and persistence conventions. - Review whether `unknown` for `updatePolicyOverrides` preserves the required type safety. - Check whether cache persistence and rehydration logic duplicates existing store utilities. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]>
## Summary - Replace the inline `zizmor` job in `ci-verify.yml` with a caller job (`security-actions`) into `CodesWhat/.github`'s `go-ci.yml` reusable `workflow-security` gate, pinned at `01bf40b06b110946f12a49b82e407d77c6480df7`. - Add a temporary fail-closed bridge job (`legacy-security-actions`) that republishes the caller's result under the old plain `Security: Actions` check context, so branch protection keeps working unchanged during the migration window. - Repoint every job that depended on the removed `zizmor` job (`secrets`, `codeql`, `fuzz`) at `security-actions`. ## Naming resolution - Caller job: key `security-actions`, `name: "Security: Actions"` → GitHub reports this as the composite context `Security: Actions / Workflow Security` (reusable-workflow-call jobs report as `<caller job name> / <called workflow job name>`). - Bridge job: key `legacy-security-actions`, `name: "Security: Actions"` → reports as the plain context `Security: Actions`, identical to what the removed inline job published. - These are two different job keys with the same display `name`, which GitHub allows (job identity for check-run purposes is the job key + workflow, not the display name) and produces two distinct, non-colliding check contexts because one is a reusable-workflow-call job and the other isn't. ## Test plan - [x] `npm run test:workflows` — 166/166 passing (17 files), including new `.github/tests/reusable-ci-config.test.ts` and extended `ci-verify-workflow.test.ts` / `harden-runner-workflow.test.ts` - [x] `node --test scripts/*.test.mjs` — passing (ran as part of pre-push hook) - [x] `npx biome check .` — clean - [x] Local `zizmor` pre-push hook scan of `.github/workflows/*.yml` — no findings - [x] Full pre-push hook chain (clean-tree, ts-nocheck, biome, qlty, qlty-smells, scripts-test, workflow-tests, typecheck-ui, coverage, build, zizmor) — all green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🔒 Added a pinned `security-actions` reusable workflow caller from `CodesWhat/.github/go-ci.yml`. - 🔧 Disabled Go test and lint jobs for this Go-less repository. - ✨ Added a fail-closed `legacy-security-actions` bridge for the existing `Security: Actions` branch-protection context. - 🔧 Updated `secrets`, `codeql`, and `fuzz` job dependencies. - 🔒 Required `actions:read`, `contents:read`, and `security-events:write`. - 🔧 Added validation for workflow pinning, permissions, disabled Go jobs, bridge behavior, and blocked egress. - 🗑️ Removed the inline `zizmor` job. ## Concerns - Remove `legacy-security-actions` after branch protection no longer requires `Security: Actions`. - Keep the frozen `go-ci.yml` SHA synchronized with the approved revision. - Preserve the fail-closed bridge contract and `egress-policy: block`. - Confirm the reusable workflow remains compatible with the required `security-events: write` permission. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Test <[email protected]>
## Summary - Ruleset 13077055 was narrowed to require `Security: Actions / Workflow Security` (the reusable go-ci caller's composite context) instead of the old plain `Security: Actions` context. The `legacy-security-actions` fail-closed bridge job in `.github/workflows/ci-verify.yml`, which existed only to republish the old plain name, is now unreferenced by branch protection and has been removed. - Updated `.github/tests/ci-verify-workflow.test.ts` to drop the assertion on the removed job's name and add a retired-context rejection test (mirrors portwing #122 / sockguard #260): asserts the `legacy-security-actions` job is gone and that no job (other than the legitimate `security-actions` reusable caller, whose `name:` field is the composite prefix, not a standalone check) republishes the bare `Security: Actions` name. The regex is anchored to `^[ \t]*name:` with optional quotes so it can't false-positive on an input key like `workflow-security-check-name:`. - Updated `.github/tests/harden-runner-workflow.test.ts` to drop the block-egress carve-out and dedicated bridge test that only existed for the removed job; every remaining Harden Runner step now uses the standard `audit` policy. ## Test plan - [x] `npm run test:workflows` — 167/167 pass - [x] Full `git push` pre-push gate (clean-tree, ts-nocheck, biome, qlty, qlty-smells, scripts-test, workflow-tests, typecheck-ui, coverage, build, zizmor) — all green <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Changelog - 🗑️ Removed the obsolete `legacy-security-actions` bridge job from `.github/workflows/ci-verify.yml`. - 🔧 Updated workflow tests to reject the retired job and bare `Security: Actions` check context. - 🔒 Removed the Harden Runner egress-policy exception for the bridge job. - 🔧 Removed the bridge-specific Harden Runner test. - 🔧 Verified workflow tests and the full pre-push gate pass. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]>
The primary checkout's pre-push workflow-tests gate runs `vitest run .github/tests`, which also discovers every nested preserved worktree's copy of the suite under `.claude/worktrees/` (and legacy `.codex/worktrees/`). A parked WIP worktree with intentionally-failing tests (e.g. the held Warpchart README branch awaiting its Crowdin cycle) then blocks unrelated pushes from the primary checkout, including branch deletions. Exclude those paths from discovery; each worktree still runs its own suite from its own root. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ### Changelog - ✨ Added Vitest exclusions for `.claude/worktrees/` and `.codex/worktrees/`. - 🔧 Changed the configuration to extend `configDefaults.exclude`. - 🐛 Fixed test discovery in the primary checkout by ignoring nested preserved worktrees. ### Concerns - Verify that each worktree runs Vitest from its own root and is not excluded by these patterns. - Add or update tests for both worktree paths if coverage is missing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Test <[email protected]>
|
@coderabbitai review |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 2 reviews per rolling hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Vitest configuration now imports Merge Risk: ⚪ Minimal · up to This PR makes a localized Vitest discovery configuration change, with exclusions limited to preserved local worktrees rather than valid workflow tests. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
biggest-littlest
left a comment
There was a problem hiding this comment.
Promotion carries exactly #747 plus the reconcile; E2E skipped by path filter on a test-config-only diff.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Required contexts green or path-skipped; qlty is the known billing non-gate.
Ordinary promotion. Carries #747 (exclude nested preserved worktrees from workflow-test discovery) plus topology reconcile.
Changelog
.claude/worktrees/and.codex/worktrees/paths.test.excludeto preserveconfigDefaults.exclude.Concerns