Commit Graph
793 Commits
Author SHA1 Message Date
Michael D'Angelo 34aba5be82 Merge shared worktree history and preserve patch preview statistics 2026-11-11 04:56:33 -08:00
ea617a4c09 fix(workbench): retain shared history across worktree changes (#456)
* fix(workbench): share scan history across linked worktrees

* fix(workbench): verify repository generation across platforms

* fix(workbench): harden and simplify worktree history

* fix(workbench): preserve recreated repository subdirectories

* fix(workbench): refresh the bundled history plugin

Advance the paired standalone plugin version so existing staged marketplaces load the linked-worktree history helpers. Leave the npm package release version unchanged.

* fix(workbench): verify saved history candidates

Use recorded checkout ownership before falling back to live repository identities. Preserve matching persisted identities for removed worktrees and retain verified same-origin comparisons.

* fix(workbench): unify verified repository history

* fix(workbench): preserve scan history ownership and replay

* fix(workbench): quarantine unproved prerelease identities

* fix(workbench): order automatic history comparisons

* fix(workbench): persist completion visibility order

* fix(workbench): preserve findings and Linux identities

* fix(workbench): preserve unbound legacy history

* Bind repository history to each scan generation

* Preserve archived scans across registration failures

* Bound repository identity maintenance to selected targets

* Repair legacy identity upgrades and precompute repository counts

* test(workbench): isolate directory metadata on Python 3.14

* fix(sdk): exclude internal helpers from public declarations

* test(workbench): send identity fixture through stdin

* fix(workbench): verify ownership before rejoining scans

* test(workbench): retain recreated fixture inodes

* test: align shared history fixtures with current schema

* test: include current migrations in repository identity upgrade checks

* Preserve owned legacy history and current rerun prompts

* Preserve repository history through validated saved matches

* Preserve timestamp and custom plugin history compatibility

* Preserve grouped history matching and mock output recovery

* Preserve grouped history matching and mock output recovery

* Preserve portable repository ownership and indexed history lookups

* Preserve legacy Git history and mixed filesystem comparisons

* Preserve legacy triage and registered linked-worktree comparison

* Keep legacy comparisons scoped and reuse repository history indexing

* Rank same-target feedback across legacy repository generations

* Keep legacy history local when matching current repository targets

* Preserve saved legacy aliases in linked comparison history

* Order combined feedback fixture imports

* Update completed findings fixture for combined migration history

* Align migration expectations and batch workflow condition fixtures

* Adapt archived-output callbacks to current observer helper

* Format archived-output observer callback

* Use the current historical migration fixture helper

* Preserve requested repository aliases through findings lookup

* Preserve local legacy decisions and requested scan aliases

* Support absolute paths in the Windows history fixture

* test: preserve Windows fixture identity and shell behavior

* fix(history): preserve accepted completion timestamp precision

* fix(workbench): replace reversed scan comparisons

* docs: make finding detail example explicitly synthetic

* test(workbench): follow shared scan allocation in identity fixture

* fix(workbench): preserve history across filesystem remounts

* test(workbench): align identity fixtures with migration semantics

* fix(workbench): preserve history across supported Python runtimes

* perf(workbench): paginate repository projections

* test(workbench): type repository page expectations

* fix(workbench): retain verified history after device changes

* test(workbench): supply archive defaults in lineage fixture

* fix(workbench): preserve composed remediation and writer fixtures

* Preserve caller scope and valid history during saved scan bootstrap

* Retain bound history after worktree paths are reused

* Use scan generations for history and live Git roots for interpreter protection

* Align schema and archive rollback fixtures with registration ordering

* Exclude saved checkouts from ambient Python discovery

* Isolate trusted Python from Git in history fixture

* Preserve base Python and packages in isolated history fixture

* test(findings): expect the requested repository alias

* fix(identity): avoid external stat and synchronous fixture timeouts

* fix(workbench): preserve historical target registration and migration

* fix(history): compare saved scan timestamps chronologically

* fix(sdk): trim saved scan timestamp fractions linearly

* Fix platform coverage in history migration fixtures

* fix(workbench): retain lexical roots during migration discovery

* test: preserve shared history across receipt migration

* test: align repository generation fixtures with merged migrations

* test(workbench): align identity migrations with issue receipts

* test(workbench): align history fixtures with current contracts

* test: run migration probes through Python runtime helpers

* Update generation migration fixtures for current schema

* test(workbench): align coordinator fixture with generation migration

* fix(workbench): keep Git discovery scoped across saved history

* fix(workbench): cover new and unavailable Git targets

* fix(workbench): expand incoming Git target paths

* docs: format shared scan history guidance

* fix(workbench): retain evidence of vanished Git targets

* test: exercise current repository generation migration

* fix: preserve Git discovery after incomplete workspace setup

* test: bind host Git in direct saved-history helpers

* fix(workbench): retain all scan feedback and register fixture targets

* fix(workbench): preserve saved checkout boundaries during tool discovery

* test(plugin): restore checkout root column in legacy migration fixture

* fix(plugin): require recorded checkout roots for legacy Git discovery

* fix(sdk): require saved checkout roots before tool discovery

* test(workbench): install the lifecycle view in the repository alias fixture

* fix(sdk): exclude rejected workspace paths from executable discovery

* fix(workbench): retain trusted Git for deleted bounded targets

* fix(workbench): disable ambient lookup for unanchored workspace paths

* fix(workbench): retain checkout boundaries for rejected workspaces

* test(workbench): use the complete schema in Python migration fixtures

* Retain rejected checkout exclusions after workspace correction

* Classify the quota error in the comparison stop test

* Update workbench identity fixtures with the object-store birth time

* Exercise repository generation upgrades and Windows owner rejection after renumbering

* Drop the stale retry assignment after archive acknowledgement

* Start the Windows archive attempt when the real patch write opens

* Exercise repository history with the current registration and schema

* Keep workbench identity test outputs in private temporary directories

* test: verify current and stale checkout ownership independently

* fix(history): validate native parent traversal before lookup

* Cover partially sequenced completion history on migration replay

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-11 04:46:42 -08:00
Michael D'Angelo 271f0a98e4 Merge upstream physical-path handling into patch publication 2026-11-10 23:25:15 -08:00
4aa9acc5ce fix(paths)!: preserve physical parent traversal (#1709)
* fix: preserve physical target paths during preparation

* test: make the sibling target a valid regression control

* fix: retain campaign and home path compatibility

* fix: preserve empty-home scope anchoring

* fix: keep target identities stable across scan lifecycles

* fix(paths)!: preserve distinct bulk source identities

* fix(paths): retain physical history and bulk inventory traversal

* fix: preserve exact scan file identity

* fix(cli): preserve publish check diagnostic order

* fix(paths): resolve targets using native path syntax

* test(cli): exercise scan titles with real traversal directories

* fix(paths): keep knowledge-base parent traversal within the selected document path

* test(paths): distinguish saved knowledge from explicitly selected prompt files

* ci: retry managed Code Quality after GitHub installation rate limit

* Retry transient locks when cleaning up native test fixtures

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-10 23:20:05 -08:00
Michael D'AngeloandCodex 5f5b5f225e docs(plugin): add a guide to security skills (#2586)
* docs(plugin): add a guide to security skills

* docs(plugin): simplify the skills index

* docs(plugin): organize skills by the task and evidence at hand

* docs(plugin): use plainer language in the skills guide

* test(evals): enumerate skill directories when preparing routing cases

* docs(plugin): list each security skill under its task

* docs(plugin): clarify policy and threat model outputs

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 21:07:29 -08:00
Michael D'Angelo 8958dd4b3a Integrate current CLI completion and integration command updates 2026-11-10 17:47:06 -08:00
Michael D'AngeloandCodex 514de3d489 test(workbench): release the SQLite writer after lock acquisition (#2585)
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 16:53:47 -08:00
Michael D'Angelo 970fd518c0 Preserve original Unicode in workbench recipe sources 2026-11-10 16:14:16 -08:00
Michael D'Angelo 122a314ef6 Move scan recipe parsing beside its public representation 2026-11-10 16:02:26 -08:00
Michael D'Angelo 8023ec84b9 Merge main and retain verified-turn patch publication 2026-11-10 15:54:53 -08:00
ianw-oaiandmldangelo-oai e90a30ac25 fix(scan): reduce setup and tool output in Standard scans (#2046)
* fix(scan): reduce setup and tool output in Standard scans

* fix(workbench): keep policy paths optional for scan lookups

* fix(sdk): retain the preflight callback before scan dispatch

* fix(workbench): only advertise scoped inventory for Standard scans

* docs(workbench): explain optional scope report failures

* fix(workbench): preserve the Deep Scan registration response

* test(workbench): use the current scan context request in the Deep Scan fixture

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-10 15:26:19 -08:00
Michael D'AngeloandMichael D'Angelo 55261a78e6 docs: import hosted Semgrep findings locally or in Cloud (#2576)
* docs: add a local import guide for Semgrep hosted MCP findings

* docs: extend the hosted Semgrep import example through Cloud

* docs: clarify the Semgrep Cloud workspace prerequisite

---------

Co-authored-by: Michael D'Angelo <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-10 14:52:10 -08:00
ianw-oai aa57e09e3d fix: report exit status when the scan helper fails (#2406)
fix: report exit status when the scan helper fails silently
2026-11-10 14:08:54 -08:00
Michael D'Angelo fc51c1a42a fix(plugin): require thread attachment for legacy scan continuations (#2428)
* fix(plugin): scope legacy scan continuations to the attached scan

* fix(plugin): rejoin attached legacy deep scans by target

* fix(plugin): keep attached deep scan results with their conversation
2026-11-10 11:12:55 -08:00
Michael D'Angelo 4fac2dfdf3 fix(plugin): preserve native filename bytes in SQLite URIs (#2571)
* fix(plugin): preserve native filename bytes in SQLite URIs

* test(sdk): include SQLite URI support in the usage fixture
2026-11-10 08:12:09 -08:00
Michael D'Angelo ba6702440e fix(scan): isolate Git display settings in content snapshots (#2568)
* fix(scan): isolate Git display settings in content snapshots

* fix(scan): pin hunk, file order, and rename rendering in snapshots

* test(scan): write Git order fixtures with LF on every platform

* fix(scan): stabilize submodule, indentation, and rename presentation

* Capture the configured submodule diff before asserting

* Normalize Git driver annotations and binary patch rendering
2026-11-10 07:16:21 -08:00
Michael D'Angelo d4175bc3b5 fix(native): read deep sealed artifacts under Linux descriptor limits (#2570) 2026-11-10 06:45:57 -08:00
Michael D'Angelo bf98530200 fix(sdk): discover Python for targets when launched from filesystem root (#2569)
* fix(sdk): discover Python for targets when launched from filesystem root

* test(sdk): launch the Python discovery regression from root
2026-11-10 05:44:51 -08:00
Michael D'AngeloandCodex fce296540c fix(windows): tolerate executable metadata changes on first launch (#2555)
* fix(windows): preserve executable pins across first launch

* fix(windows): cancel executable pin verification

* fix: preserve active deep worker cancellation errors

* style: format deep worker cancellation catch

* test: make Windows pin metadata fixtures deterministic

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 03:58:12 -08:00
Michael D'Angelo 34d0e634ea fix(mcp): use UTF-8 for workbench responses and diagnostics (#2566) 2026-11-10 03:46:29 -08:00
Michael D'AngeloandCodex 943ea05777 fix(windows): preserve long Git metadata in reviewed patch replay (#2543)
* fix(windows): preserve long Git metadata in reviewed patch replay

* fix(windows): keep reviewed patch replay within source limits

* fix(windows): preserve metadata-free LF patch replay

* test(workbench): select short replay case only on Windows

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 02:28:58 -08:00
a353226b47 fix(workbench): pin Git metadata on another Windows fixed drive (#2539)
* fix(workbench): recover nested Windows inventories with a pinned Git marker

* fix(workbench): pin Git metadata on a separate Windows fixed drive

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 02:28:49 -08:00
Michael D'Angelo 6993830d5d fix(native): read sealed artifacts in searchable Linux directories (#2564)
* fix(native): read sealed artifacts in searchable Linux directories

* test(native): unlink the known directory symlink in the scan read proof
2026-11-10 02:18:52 -08:00
Michael D'Angelo a86445c841 fix(scan): isolate Git pathspec modes for file inventories (#2565) 2026-11-10 02:14:50 -08:00
Michael D'Angelo 4ede567343 fix(scan): verify assumed-unchanged files for committed diffs (#2554)
* fix(scan): verify assumed-unchanged files for committed diffs

* test(workbench): read the index flag before asserting

* fix(workbench): isolate Git settings during private index refresh
2026-11-10 01:33:18 -08:00
Michael D'AngeloandCodex 337dd60c96 fix(windows): grant scan workers explicit source read access (#2545)
* fix(windows): configure explicit read access to scan sources

* fix(windows): preserve source reads through MCP launch

* test(mcp): expect repository environment forwarding

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 01:19:23 -08:00
Michael D'Angelo 1c4431b36e fix(workbench): preserve explicit usage database paths (#2556)
* fix(workbench): preserve explicit usage database paths

* test(workbench): close usage fixtures before renaming them

* test(workbench): use supported database names on each host
2026-11-10 00:58:45 -08:00
Michael D'Angelo a0fedec4ca fix(runtime): honor literal POSIX executable override paths (#2551)
* fix(runtime): honor literal POSIX executable override paths

* fix(runtime): retain the lookup origin of padded executable paths

* fix(runtime): keep bare executable overrides on their original lookup path
2026-11-10 00:14:26 -08:00
Michael D'Angelo cd47bb2b98 fix(plugin): preserve trailing whitespace in POSIX scan roots (#2552) 2026-11-09 23:40:46 -08:00
f91c51e514 fix(workbench): preserve Windows checkout identity across Python versions (#2541)
* fix(windows): resume Deep Scans before the first checkpoint

* fix(windows): retain the resume directory handle through registration

* fix(windows): finish Deep output registration after cancellation

* fix(windows): retain registration control across plugin entrypoints

* fix(windows): read Deep resume identities from pinned handles

* fix(windows): preserve Deep Scan checkout identity across Python versions

* fix(windows): verify bound checkouts throughout Deep Scan recovery

* fix(workbench): keep scan history when a legacy checkout moves

* test: include checkout binding in migration expectations

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-09 21:50:14 -08:00
Michael D'Angeloandmldangelo-oai ff9f8dda4d fix(plugin): publish new patch files on musl without hard links (#2530)
* fix(plugin): publish new patch files on musl without hard links

* test(plugin): close the rename fixture directory explicitly

* test(plugin): select the raw rename syscall test only on Linux

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:50:08 -08:00
Michael D'Angeloandmldangelo-oai 5813bb1b66 fix(runtime): find system Python for Linux accounts without a home (#2509)
* fix(plugin): fall back to system Python when a Linux UID has no home

* fix(sdk): discover system Python when a Linux UID has no home

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:40:56 -08:00
Michael D'Angeloandmldangelo-oai 067bfcd616 fix(plugin): preserve closed helper stdin under BusyBox ash (#2540)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:08:13 -08:00
Michael D'Angeloandmldangelo-oai 9ea8f5b56f fix(workbench): register nested Windows scans with long Git metadata paths (#2534)
fix(workbench): recover nested Windows inventories with a pinned Git marker

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 20:58:41 -08:00
Michael D'Angeloandmldangelo-oai d84df10c1a fix(workbench): identify replaced checkout parent directories (#2537)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 20:34:52 -08:00
Michael D'Angeloandmldangelo-oai 3254a21592 fix(scans): archive long POSIX output directory names (#2529)
* fix(scans): archive long POSIX output directory names

* fix(logs): recover bound sessions from short scan archives

* fix(package): include the scan archive path helper in the release contract

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 20:21:32 -08:00
Michael D'Angeloandmldangelo-oai 5ee74aeedc fix(plugin): save artifacts with long POSIX filenames (#2533)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 20:05:06 -08:00
Michael D'Angeloandmldangelo-oai 6df392cf02 test(workbench): make Git scope and sealed CSV fixtures portable (#2517)
* test(workbench): make Git scope and sealed CSV fixtures portable

* test(workbench): read Unicode CSV exports as UTF-8

* test(workbench): select representable Git names in native CI

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 18:27:53 -08:00
Michael D'Angeloandmldangelo-oai 91c01f08ab fix(windows): resume Deep Scans interrupted before their first artifact (#2515)
* fix(windows): resume Deep Scans before the first checkpoint

* fix(windows): retain the resume directory handle through registration

* fix(windows): finish Deep output registration after cancellation

* fix(windows): retain registration control across plugin entrypoints

* fix(windows): read Deep resume identities from pinned handles

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 18:27:47 -08:00
Michael D'Angeloandmldangelo-oai f3efffee06 fix(package): build the bundled plugin in long Windows checkouts (#2508)
* fix(sdk): build bundled plugins from long Windows paths

Use the extended Windows path only when creating the temporary build directory. Keep the selected parent spelling for the compiler, publication, and cleanup, and exercise the package build from a long source snapshot.

* fix(plugin): build the selected MCP app on long Windows paths

Run the declared app build with its local dependency binaries when the Windows Node task runner would skip a long package or tool path. Keep the native runner on shorter paths, other platforms, and Bun.

* fix(plugin): run the selected Bun build script in deep Windows checkouts

Use Bun run build for long Windows MCP app paths so the reserved bundler command cannot shadow the package script. Exercise the real Bun process and its selected package lifecycle in the long source-build regression.

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 18:07:06 -08:00
Michael D'Angeloandmldangelo-oai 64bb360706 fix(plugin): select a SQLite-capable Node runtime on Linux (#2499)
* fix(plugin): select a SQLite-capable Node runtime on Linux

* fix(plugin): limit Linux SQLite fallback to system installations

* fix(plugin): distinguish missing SQLite by probe exit status

* fix(plugin): follow fixed system Node installation symlinks

* test(plugin): pass the system Node fixture path as data

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 16:20:26 -08:00
Michael D'Angeloandmldangelo-oai e0de9ee323 fix(windows): preserve literal paths when loading scan policy (#2510)
* Invoke the selected Windows policy helper without re-expanding paths

* Keep the reviewed Windows policy workflow available to custom validation

* Keep PowerShell native preferences local to the policy command

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 16:00:27 -08:00
Michael D'Angeloandmldangelo-oai 4e51fb768b fix(deep-scan): resolve home-relative project config paths on POSIX (#2505)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 14:33:53 -08:00
1deca2d70e fix(logs): persist terminal scan boundaries (#1527)
* fix(sdk): bound saved scan log events by scan completion

* fix(sdk): simplify saved log completion filtering

* fix(sdk): preserve finishing scan turns in saved logs

* fix(logs): persist terminal scan boundaries

* fix(sdk): preserve legacy scan worker attribution

* test(workbench): expect the log boundary migration

* test: reuse accepted source path coverage

* refactor(logs): share scan turn boundary detection

* test(workbench): restore the v53 schema before replaying migrations

* test(sdk): expect cancellation after an explicit component scan abort

* Repair schema history for published scan-log boundary previews

* Format scan log timestamp metadata

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 13:44:52 -08:00
Michael D'Angeloandmldangelo-oai ea8c16644f fix(package): preserve LF in the POSIX MCP launcher on Windows (#2500)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 13:25:52 -08:00
Michael D'Angeloandmldangelo-oai 7b6c058dc5 fix(windows): stage the bundled plugin for scan sandbox reads (#2494)
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 11:34:49 -08:00
Michael D'Angelo 0a12733373 fix(windows): verify scan output directory ownership and ancestry (#2432)
* fix(windows): verify scan output directory ownership and ancestry

* fix(windows): read access entries within the ACL buffer

* test(windows): read the native rename access result

* fix(windows): check directory reparse access during output selection

* fix(windows): preserve output link diagnostics and verify native permissions

* test(windows): exercise empty directory removal and runtime admission

* fix(windows): keep known checkpoint reads scoped to selected files

* fix(windows): preserve selected output directories during preparation

* fix(runtime): verify selected POSIX output parents before resolving the leaf
2026-11-09 08:41:41 -08:00
Michael D'AngeloandCodex 1d586acc2b fix: keep workbench lifecycle results scoped to the selected scan (#2421)
* fix: keep workbench lifecycle results scoped to the selected scan

* test(plugin): bind lifecycle fixtures to their scan thread

* fix(plugin): bind rejoined scans and load assigned remediation context

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-09 08:41:33 -08:00
Michael D'Angelo 08a9a247d1 test(plugin): exercise macOS filesystem fixtures portably (#2487) 2026-11-09 08:04:52 -08:00
Michael D'Angeloandmldangelo-oai 884b7b657a refactor!: consolidate scan, workbench and release rules (#2452)
* refactor(workbench): share schema repair and saved finding projections

* refactor(cli): resolve the command route once

* refactor(settings): share Deep Scan configuration and restore saved inputs

* refactor(imports): reuse scanner projections at the file boundary

* refactor(publish): share pending request and receipt handling

* refactor(telemetry): classify publication failures in the recorder

* refactor(package): share plugin inventory and archive checks

* refactor(release): reuse verified provenance and release decisions

* fix(ci): reconcile release labels with an empty array on Bash 3.2

* ci: report failed source checks after cancelled PR edits

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 05:02:21 -08:00