Skip to content

[codex] Redact agent task logs with hash correlation - #425

Open
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-task-log-redaction-241
Open

[codex] Redact agent task logs with hash correlation#425
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-task-log-redaction-241

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

Closes #241.

Replaces raw agent task logging with hash-based correlation and debug-only redacted task text:

  • logs taskHash plus suspicious at info level
  • logs the redacted full task at debug level for support investigations
  • redacts known care recipient/caregiver names and known medication names before debug logging
  • keeps token/secret redaction from the existing shared redactor
  • adds Vitest coverage for the hash-only info log and redacted debug task text

Validation

  • npm test -- agent/__tests__/task-log.test.ts shared/__tests__/redact.test.ts
  • npx tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --allowImportingTsExtensions --esModuleInterop --allowSyntheticDefaultImports --strict --skipLibCheck --types node,vitest agent/task-log.ts agent/__tests__/task-log.test.ts shared/redact.ts shared/__tests__/redact.test.ts
  • git diff --check

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Dreamstore2046 is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Agent logs task with .slice(0, 100) — full task lost

1 participant