Skip to content

feat(tech-detect): merge the local whole-bundle scan into the signed-in technologies section #1406 - #1413

Closed
nc9 wants to merge 2 commits into
mainfrom
feat/tech-merge-local-cloud-1406
Closed

nc9 wants to merge 2 commits into
mainfrom
feat/tech-merge-local-cloud-1406

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Closes #1406

Depends on #1392 (the first commit here is that PR's head; this is one commit on top, rebase after #1392 merges). The branch targets main so it is not closed when the base branch is deleted.

  • The local whole-bundle scan now always runs beside the cloud one on a signed-in audit (free, no request). mergeLocalTechnologies adds what only it found to the cloud section: marked origin: "local", never in added, with the cloud's added/removed/firstScan/advisories/scannedAt kept and a version the cloud lacked filled in from the local scan.
  • Only the local scan's result is merged; its bytes are not sent (the payload caps stay; a test shows an 800 KB bundle sends under 200 KB).
  • technologies.truncated describes the merged section: the cloud payload cut is dropped once the local scan covered those bundles, replaced by the local scan's own cut (or none); if the local scan could not run the cloud section keeps its cut.
  • Reports: JSON items carry origin (schema 1.4, tests updated), xml and llm origin="local" on the element, and the summary line says how many have no scan history.
  • Tests: merge unit cases (history kept, version fill, truncation, no local result), a signed-in flow with a stubbed cloud client and a bundle past the payload cap (found, marked local, cloud item kept, payload bounded), summary note. Docs: docs/cloud/technologies.mdx, output schema version. CHANGELOG. Skill change: none.

nik

nc9 added 2 commits October 31, 2026 11:41
… truncation, linear comment scan, per-script cap kept for other callers #1387

Signed-off-by: Nik Cubrilovic <[email protected]>
…ndle scan into the cloud technologies section; origin marker, schema 1.4 #1406

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Shipped in v0.0.166 as a rebased and reviewed version of this change (main commit e417b7f, first release v0.0.166, derived with git tag --contains), with three review fixes on top: the script-limit disclosure is forwarded again, the report origin value is never interpolated into XML or LLM output, and local-only technologies are marked in every human-readable format. Closing this PR in favour of that commit; #1406 stays open for its last acceptance gap.

nik

@nc9 nc9 closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tech-detect: merge the local whole-bundle scan into the signed-in cloud technologies section

1 participant