Skip to content

feat(audit): detect sensitive destinations and unsafe deserialization - #753

Merged
runkids merged 3 commits into
runkids:mainfrom
salmonumbrella:feat/audit-sensitive-destinations-deserialization
Nov 5, 2026
Merged

runkids merged 3 commits into
runkids:mainfrom
salmonumbrella:feat/audit-sensitive-destinations-deserialization

Conversation

@salmonumbrella

@salmonumbrella salmonumbrella commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Feature implementing one item from the #746 list. It has no approved label yet; happy to close it if you'd rather not take it.

Linked Issue

Implements item 10 of PR #746. Earlier discussion: issue #706, closed during consolidation.

What changed

  • Add nine static rules for cloud metadata, literal internal destinations, dynamic request targets, and unsafe Python/PHP/Ruby/JavaScript deserialization. Metadata matches the five documented canonical hosts, including compressed bare/bracketed IPv6. Terminal sentence periods after IPv4 metadata addresses or metadata.google.internal are accepted without matching hostname suffixes such as .example.com.
  • Report metadata at CRITICAL in recognized source files (shell, Python, JS/TS, Ruby, PHP, Go, Rust and Swift extensions, plus the Makefile/Dockerfile basenames), admitted files starting with a shebang after an optional BOM, allowlisted Markdown code fences, and recognized literal request URLs whose parsed hostname matches a metadata host. Prose/configuration and extensionless notes without a shebang are HIGH unless a recognized literal request URL targets a metadata host; addresses appearing only in a non-metadata URL's path or query remain HIGH, including in source files and executable fences. Other source references and comments can still be CRITICAL. HIGH warns at the default CRITICAL threshold and blocks at HIGH.
  • Fence context is CRITICAL only when unlabelled or labelled sh, bash, zsh, fish, py, js, ts, rb, php, php3, php4, php5, phtml, go, rs, swift, python, javascript, typescript, ruby, shell, console, golang, rust, makefile, or dockerfile. Other labels, including http, powershell, pwsh, node, jsx, tsx and java, remain HIGH unless an independently recognized literal request targets metadata. Explicit severity overrides take precedence; full regex replacements use configured severity without built-in context inspection.
  • Report internal HTTP(S) request targets at MEDIUM in the listed code/shell extensions: canonical loopback/private/link-local/unspecified IPv4/IPv6 (including IPv4-mapped IPv6), localhost and .localhost/.internal/.local hosts. Dynamic evidence is MEDIUM with confidence 0.6 for direct request-input targets or interpolation at the start of a host; ordinary URL variables are negative. These rules recognize a limited call list and curl/wget forms including common options and shell delimiters; header values are not treated as destinations.
  • Report unsafe deserialization at HIGH only in its corresponding language extensions: Python pickle/marshal/dill, unsafe YAML APIs and torch; PHP unserialize; Ruby Marshal.load/restore; JavaScript/TypeScript node-serialize dependency evidence. A top-level SafeLoader/CSafeLoader keyword or second positional loader in yaml.load/load_all or weights_only=True in torch.load suppresses only that call. Safe siblings, strings and nested keywords cannot suppress unsafe calls; incomplete/multiline calls can still warn.
  • Add validated, case-insensitive files glob applicability across loading, global/project ID/pattern overrides, rule rewrites, listings, raw/Markdown/file/skill scans and Markdown link rules. Basename globs match at any depth; slash globs use skill-relative paths (single-file scans use the basename, raw scans the supplied name). Partial overrides inherit omitted filters; [] clears them; full regex replacements replace the whole rule. Malformed globs fail even on disabled or unmatched overrides. This filters already admitted files rather than admitting new types. Re-enabling a rule or pattern preserves non-nil file filters, including an explicit empty list. Show effective scope in CLI/TUI/dashboard details and JSON; add dashboard field help and localized labels.
  • Exclude PHP function unserialize(...) declarations from deserialization findings.
  • Admit .php, .php3, .php4, .php5 and .phtml under the existing size/depth/binary scan bounds. Existing rules also scan these newly admitted files.
  • Add paired positive/benign regressions, call-local safety seeds and CLI install checks; document policy and applicability in the built-in reference, English website and all four existing translations. Correct metadata/YAML messages to describe the static evidence and unsafe loader APIs accurately.

Why

Generic URL and execution signatures miss sensitive destinations and language-specific deserialization evidence. Narrow applicability and call-local safe forms reduce ordinary-skill false positives. Metadata prose stays visible without blocking default installs; extensionless shebang scripts retain the same metadata severity as their .sh equivalents. Unlike the proposal’s blanket CRITICAL suggestion, prose and configuration mentions remain HIGH because a mention alone does not establish an executable request.

These are static signatures, with no runtime SSRF or trust guarantee. They do not resolve aliases, data provenance, DNS, redirects or arbitrary multiline syntax. Unrecognized request forms can remain HIGH in prose or extensionless files without a shebang; source/fence context is a syntax heuristic, not proof of execution. PHP allowed_classes=false is not a recognized negative.

Checks

  • This update: focused regression and full internal/audit tests passed on isolated Linux; the documentation router check passed. Docker/devcontainer and a new website build were not available in this run.

  • Previous head 094a432f: isolated local Linux audit package tests and website typecheck/all-locale build passed.

  • At prior head b57464e, isolated Linux GOMAXPROCS=2 GOFLAGS=-p=2 make check passed (router, formatting, go vet ./..., 38 unit packages and integration; integration 198.995s). The first run found one built-in-reference self-audit regression from a literal metadata hostname; descriptive wording fixed it, the focused test passed, and the full gate then passed. Existing platform/permission/native-runtime/opt-in guards produced 36 top-level skips; no audit regression was skipped or weakened.

  • Prior head b57464e: native macOS go test ./internal/audit -count=1 passed with isolated HOME/XDG_CONFIG_HOME (1.368s), exercising native temporary paths. The new regressions failed before the fix on both macOS and Linux.

  • At b57464e, the rebuilt binary: all 7 mdproof runbook steps passed (2526ms, zero failures/skips), including extensionless-script rejection, public-host twin install success and punctuated prose behavior. Initial runner XDG inheritance and a null-findings assertion were corrected; fixture requests/deserializers were never executed.

  • Website npm ci and RAYON_NUM_THREADS=2 npm run build passed for en, ja, ko, zh-Hans and zh-Hant. Dependency/Browserslist/Rspack warnings were nonfatal.

  • Five-pass project review and final consumer followup completed; full branch diff read; router and diff checks passed.

  • At 144a2f2, isolated Linux devcontainer audit tests and vet passed; the Docusaurus build passed for all five locales; python3 scripts/ai-context.py check and git diff --check passed. The Windows failures at b57464e were path-separator assertions in two audit tests and are normalized with filepath.ToSlash. GitHub Actions run 41561184675 for 144a2f2 passed unit, Ubuntu/macOS integration, Windows, Docker offline and redteam; Docker online and redteam-signal were skipped.

  • At 6416eab, isolated Linux devcontainer go test ./internal/audit -count=1 and go vet ./internal/audit/... passed; the router check and git diff --check passed. The new source/code-fence URL path and query regressions failed before the code change, then passed with the full audit package suite. The inline bare-host regression covers backtick trimming. Runbook additions were not executed; native macOS tests were not run locally because repository instructions require Go tests in the devcontainer. Prior-head CI run 41578469387 completed with unit-test failing only at TestPluginHostStateProducerLegacyProjection/local (internal/plugins/state_legacy_test.go:114), outside this diff; the other five required jobs passed and the two optional jobs were skipped.

  • Dashboard tests/build/screenshots were not rerun this round (no dashboard code changed). Windows VM, opt-in online/Docker and extended fuzz runs were not performed.

  • At 65358f7, added failing-first coverage for adjacent JavaScript template literal URL masking. The focused TestMetadataContextSeverity run, full internal/audit package tests, go vet ./internal/audit/..., gofmt, and git diff --check passed in an isolated devcontainer. Prior-head CI run 41580110209 passed all six required jobs (unit-test, Ubuntu/macOS integration, Windows, Docker offline, redteam); docker-sandbox-online and redteam-signal were skipped.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it (AI-assisted: built with Codex; the full diff and two fix rounds were reviewed independently, with each finding reproduced against a built binary, before opening)
  • Tests included and passing (make check)
  • No unrelated changes in the diff — the broader rule-load, merged-validation, and SARIF changes were removed
  • Scope is focused — the cross-cutting follow-ups were removed for separate review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T04:50:03.768820Z 65358f7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b57464e31a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

severityOverridden bool `yaml:"-"`
confidenceOverridden bool `yaml:"-"`
excludePhrase bool `yaml:"-"`
Files fileGlobs `yaml:"files,omitempty"`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve file filters when rules are re-enabled

An applicability-only override saved through the dashboard YAML editor, such as id: unsafe-deserialization-python with files: [], is silently deleted when the rule is disabled and re-enabled. In rules_mutate.go, removeEntryByID, removePatternEntry, and clearDisableForPattern all decide whether an entry has remaining overrides without checking Files. Re-enabling therefore restores the built-in file scope; in this example, previously configured Markdown/text coverage disappears. All three preservation checks need to retain non-nil Files, including explicit empty lists.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 144a2f2: all three re-enable paths retain non-nil Files overrides, including files: []. Regression tests cover rule toggles, pattern toggles, and clearing a rule-level disable.

Comment thread internal/audit/sensitive.go Outdated
Comment on lines +57 to +58
if r.Regex.MatchString(target) {
return r.Severity

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Check the URL hostname before escalating metadata mentions

For an inline requests.get("https://ipinfo.io/169.254.169.254/json") in SKILL.md outside a code fence, the request targets the public host ipinfo.io, but this check searches the entire captured URL and finds the metadata address in its path. That promotes the finding from HIGH to CRITICAL, causing the default install audit to reject a harmless skill. Parse the captured URL and check its hostname before promoting severity; metadata references in a public URL's path or query should remain HIGH.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 144a2f2: severity promotion now checks the parsed request hostname, so a metadata IP only in a public URL path or query remains HIGH. Regression tests cover Markdown, source files, and code fences; actual metadata-host requests remain CRITICAL.

@salmonumbrella

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 144a2f25c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +63 to +65
u, err := url.Parse(target)
if err != nil || u.Hostname() == "" {
continue

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Strip Markdown delimiters before parsing request URLs

For an ordinary SKILL.md instruction such as Run `curl http://169.254.169.254` , the curl/wget regex captures the closing backtick as part of target. url.Parse rejects that backtick in the hostname, so the finding falls through to HIGH rather than the previous CRITICAL result. The default install audit therefore allows a skill that explicitly requests a metadata host. Exclude Markdown delimiters from the URL capture before parsing and add a bare-host inline-code regression; the existing /latest case puts the backtick in the path and does not exercise this failure.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 6416eab: the scanner trims trailing inline Markdown backticks before parsing recognized request URLs, so the bare-host curl example stays CRITICAL. I also keep metadata addresses found only in non-metadata URL paths or queries at HIGH in source files and executable fences; TestMetadataContextSeverity covers the inline case, public path/query assignments, and a metadata-host control.

@salmonumbrella

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6416eabfb5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/audit/sensitive.go Outdated

var safeYAMLArgument = regexp.MustCompile(`^Loader\s*=\s*(?:yaml\.)?C?SafeLoader$`)
var safeTorchArgument = regexp.MustCompile(`^weights_only\s*=\s*True$`)
var metadataURLRegex = regexp.MustCompile("(?i)https?://[^\\s\"'<>]+")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep URL masking within a single source literal

For an admitted .js skill file containing fetch(`https://example.com/`);fetch(`http://169.254.169.254/latest`);, this new regex consumes both template literals as one URL because it accepts backticks and statement delimiters. maskNonMetadataURLPathMentions then parses example.com as the hostname and blanks the actual metadata request as though it were part of the public URL's path. Since requestRegex does not recognize backtick-quoted fetch arguments, the finding falls from CRITICAL to HIGH, so the default install audit no longer blocks it. Bound the masking span to one URL literal/token and add adjacent-template-literal regression coverage.

AGENTS.md reference: AGENTS.md:L36-L36

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 65358f7: the metadata URL scanner now stops at template and Markdown backticks, so a public URL cannot absorb an adjacent JavaScript template literal metadata request. TestMetadataContextSeverity covers a public metadata-IP path staying HIGH and the adjacent metadata request staying CRITICAL; the full internal/audit tests and go vet pass.

@salmonumbrella

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 65358f72bd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@runkids

runkids commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Thanks for this, and for writing down how the metadata severity differs from the proposal. I read through the diff and have a few points.

Correctness

  • internal/audit/sensitive.go:11: safeYAMLArgument only recognises Loader=…SafeLoader. yaml.load(f, yaml.SafeLoader), where the loader is passed positionally, is flagged HIGH, even though Loader is PyYAML's second positional parameter.
  • internal/audit/rules.yaml:401 (ssrf-internal-0), curl/wget branch:
    • (?:-[a-zA-Z]+\s+)* doesn't accept long options or options with arguments, so curl --silent http://localhost:8080, curl --fail http://10.0.0.5/ and curl -H "X: y" http://localhost give no finding.
    • The URL capture doesn't stop at ) or |. [ "$(curl -s http://127.0.0.1:8000)" ] captures http://127.0.0.1:8000), which fails to parse, and curl http://localhost:3000|jq behaves the same. Both give no finding.
  • Possibly: unsafe-deserialization-php (\bunserialize\s*\() also matches method definitions such as public function unserialize(string $data) from the Serializable interface.

Docs

  • website/docs/reference/commands/audit.md:321 ("Scanned Files") and the four translated copies don't list .php, .php3, .php4, .php5 or .phtml, which are scanned now.

Scope

  • Three changes go beyond item 10: global Rules() errors now fail the scan instead of silently returning no rules, merged rules are validated, and the SARIF highest-severity calculation changed. The Rules() change looks right, but it affects the CLI, install and server callers, and only ScanFile has a test for it. It would be easier to review separately.

If anything here looks wrong to you, please say so. Happy to discuss.

@salmonumbrella
salmonumbrella force-pushed the feat/audit-sensitive-destinations-deserialization branch from 65358f7 to 8b0c5e4 Compare November 4, 2026 15:14
@salmonumbrella

salmonumbrella commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Updated in 094a432:

  • yaml.load/load_all recognizes a safe loader in the second positional argument as well as the keyword form; unsafe APIs and loaders still warn.
  • curl/wget matching handles long options and option values, stops URL captures at shell ) and | delimiters, and distinguishes destinations from header values.
  • Confirmed the PHP false positive and excluded function unserialize(...) declarations while retaining calls.
  • Added PHP extensions to the scanned-file lists in English and all four translations.
  • Removed the global rule-load error propagation, merged-rule validation and SARIF descriptor changes from this PR for separate review.

The reported cases fail on the previous head and pass now. The full audit package, website typecheck and all-locale build pass on isolated local Linux. Docker/devcontainer was unavailable locally; CI covers the other platforms.

@salmonumbrella
salmonumbrella force-pushed the feat/audit-sensitive-destinations-deserialization branch from 8b0c5e4 to 094a432 Compare November 4, 2026 15:18

@runkids runkids left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The rule overrides, files validation and safe-loader negatives look right.

1. curl option values are read as request targets (internal/audit/sensitive.go:130). The skip list covers -H, -d, -o, -u and -X, but not -x/--proxy, -e/--referer, -T or --resolve. curl -x http://localhost:8080 https://example.com therefore reports the proxy as an internal target, a MEDIUM ssrf-internal-0 on a public request.

2. The new patterns get no category (internal/audit/audit.go:43). categoryForPattern doesn't map ssrf-* or unsafe-deserialization, so --json, SARIF and the dashboard report them as risk. Exfiltration for ssrf-* and injection or privilege for deserialization would fit better. A test would keep the mapping from regressing.

3. The docs miss the new files field. The custom-rule field table in website/docs/reference/commands/audit-rules.md:114 has no files row, and the template comment at :171 still reads "Optional: exclude…, enabled" while DefaultRulesTemplate now mentions files. The four website/i18n copies have the same gap.

4. Severity versus the proposal. The proposal says "Propose CRITICAL findings for recognized cloud metadata destinations"; prose and config mentions come out HIGH here. If that is intentional, please note it in the PR body.

Possible noise to consider (not blocking):

  • unsafe-deserialization-yaml matches ruamel's yaml = YAML(); yaml.load(f), which is safe by default.
  • torch.load() without weights_only=True is flagged HIGH, although torch ≥ 2.6 already defaults to weights_only=True.

Existing URL and code-execution signatures miss cloud metadata access and
language-specific deserializers. Add scoped static evidence and inspect safe
YAML and torch options within each call so safe siblings cannot hide risks.

Validate and preserve file applicability across overrides, scans and rule
listings. Collect PHP scripts and propagate rule-load errors so malformed
filters cannot silently disable global scanning. Document the policy and
limits with paired regressions, fuzzing and an isolated CLI runbook.

Co-Authored-By: GPT-6.1 Sol <[email protected]>
@salmonumbrella
salmonumbrella force-pushed the feat/audit-sensitive-destinations-deserialization branch from 094a432 to b144cad Compare November 5, 2026 02:39
@salmonumbrella

Copy link
Copy Markdown
Contributor Author

Updated in b144cad:

  • Skip proxy, referer, upload and resolve option values when identifying curl request targets; added positive and negative regressions.
  • Classify SSRF as exfiltration and unsafe deserialization as injection, with category tests.
  • Added files to the custom-rule field table and template comment in all five docs. The PR body now explicitly explains why prose/config mentions stay HIGH instead of the proposal's blanket CRITICAL.
  • Kept the ruamel and torch heuristics for now: the scanner cannot determine the runtime library or its version from a call alone, so treating either form as safe would also hide unsafe calls.

The focused regressions and full audit package pass on isolated Linux. Docker/devcontainer was unavailable; I did not rerun the website build for these docs-only edits.

@runkids runkids left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. All four points are resolved in b144cad:

  • The curl skip list now covers proxy, referer, upload and resolve values, with tests on both sides.
  • ssrf-* maps to Exfiltration and unsafe-deserialization to Injection.
  • The files field is documented in the English page and all four translations.
  • The PR body explains why prose and configuration mentions stay HIGH. That works for me.

internal/audit passes in the devcontainer, and CI is green. Nothing more from me on this round.

@salmonumbrella

Copy link
Copy Markdown
Contributor Author

Thanks for checking. Glad the changes address all four points.

# Conflicts:
#	internal/audit/audit_scan_content.go
#	internal/audit/patterns.go
#	internal/audit/rules.yaml
@runkids

runkids commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Heads-up: #755 just landed and conflicted with this branch in audit_scan_content.go, patterns.go and rules.yaml, so I merged main into your branch (c8a1213) rather than asking for another rebase. Both sides are kept: rulesForFile runs before scanWhitespacePadding, matchesLine checks the whitespace-padding ID before matchesSensitiveLine, and parseRulesYAML keeps both validations. internal/audit passes in the devcontainer. Please pull before pushing again. I'll merge once CI is green.

@runkids runkids left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving; all review points are resolved and CI is green on the updated branch.

@runkids runkids left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving; all review points are resolved and CI is green on the updated branch.

@runkids
runkids merged commit d699c3e into runkids:main Nov 5, 2026
10 checks passed
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.

2 participants