Skip to content

chore: patch critical/high CVEs (trivy 2026-10-26 sweep) - #26

Merged
bill-yen-opus merged 1 commit into
mainfrom
billyen-1026--trivy-cve-patch
Oct 26, 2026
Merged

bill-yen-opus merged 1 commit into
mainfrom
billyen-1026--trivy-cve-patch

Conversation

@bill-yen-opus

Copy link
Copy Markdown
Contributor

Why

Trivy offline repo scan 2026-10-26 (org repo audit 2026-10-25): C=0 / H=1 → C=0 / H=0 on this branch (offline re-scan).

What

zod ^4.6.7.

Validation

  • npm ci --ignore-scripts — pass

🤖 Generated with Claude Code

zod ^4.6.7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bill-yen-opus
bill-yen-opus merged commit 823d50c into main Oct 26, 2026
5 checks passed
@bill-yen-opus
bill-yen-opus deleted the billyen-1026--trivy-cve-patch branch October 26, 2026 09:03
yong-opus added a commit that referenced this pull request Nov 19, 2026
The dependency update in #26 changed zod's export: nullable fields become
a type array, and date-time patterns require seconds. The committed JSON
schemas were not regenerated, so the schema drift check failed on any PR
that touched the schemas. This regenerates them from the lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yong-opus added a commit that referenced this pull request Nov 21, 2026
…ges (#30)

* Record the source fingerprint in an Observation and warn when it changes

An Observation named its source only by path. If the file at that path was
re-encoded or replaced, observation query kept returning the old evidence
with no sign that its timestamps no longer matched the file.

observe now records the source's SHA-256, size and modification time under
asset in manifest.json. query compares size and modification time first and
rehashes only when they differ; if the hash no longer matches it prints a
warning to stderr, and the MCP query tool adds that warning to its result.
A missing file, or an Observation made before this field existed, stays
quiet. The idea comes from VIVID's content-hash-keyed evidence memory.

The SHA-256 helper moves from update.rs to util.rs so both use one copy.
The schema gains three optional asset fields; the JSON schema is regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Regenerate JSON schemas with the locked zod 4.6.7

The dependency update in #26 changed zod's export: nullable fields become
a type array, and date-time patterns require seconds. The committed JSON
schemas were not regenerated, so the schema drift check failed on any PR
that touched the schemas. This regenerates them from the lockfile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Record the source's absolute path and omit an unknown modification time

Review findings on the fingerprint:

- observe kept the video argument as given in asset.uri, so after
  observing a relative path, a query from another directory (including
  `query .` inside the Observation) could not find the source and skipped
  the warning. The fingerprint now records the canonical absolute path in
  asset.path, and the check uses it before uri. The docs note that this
  path contains directory names.
- A modification time before the Unix epoch was written as null, which the
  schema rejects. The field is now left out when it is unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant