Skip to content

Maya: retain reply context and preview media updates - #19

Merged
Muawiya-contact merged 4 commits into
mainfrom
feat-owner-media-update-drafts
Nov 14, 2026
Merged

Muawiya-contact merged 4 commits into
mainfrom
feat-owner-media-update-drafts

Conversation

@Muawiya-contact

Copy link
Copy Markdown
Member

What changed

Implements the open follow-up in #12. Maya now keeps a bounded three-turn private dialogue for 48 hours and gives the exact earlier turn priority when the owner replies to a Maya WhatsApp message. This makes follow-ups such as “what do you mean?” and “update that one” use the relevant recent context instead of only the newest text.

Owner text, voice notes, images, PDFs, and text attachments can now propose academic task changes. Maya extracts a short-lived owner-bound draft, resolves course/title matches in application code, shows a preview, and changes tasks only after yes. Ambiguous items are never changed by a broad confirmation. Task state is rechecked before one SQLite transaction, and owner-originated changes retain their WhatsApp source reference in an audit table.

Safety

  • No model-selected task IDs or direct model database writes.
  • Drafts expire after 15 minutes and are bound to the verified owner.
  • Media content remains untrusted data.
  • Existing group provenance remains intact; no new group send path exists.
  • Secrets, .env, source code, shell access, and arbitrary database edits remain unavailable from WhatsApp.

Validation

  • npm run typecheck
  • npm run lint
  • node --import tsx --test tests/*.test.mjs — 138 passing tests
  • npm run eval:phase3 — 33 passing tests
  • Targeted reply-context and owner-task-update tests — 8 passing tests

Manual test after deployment

  1. Ask Maya a question, then reply directly to Maya’s answer with what do you mean? or what about that group?.
  2. Send an image/PDF/voice note containing corrected deadlines with: These deadlines are correct. Update them all.
  3. Inspect the preview; reply yes only if it is correct.
  4. Send a deliberately ambiguous Quiz 1 update and confirm that Maya asks for the course rather than changing either task.

Refs #12

@netlify

netlify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for maya-assistant ready!

Name Link
🔨 Latest commit 8a9b3ab
🔍 Latest deploy log https://app.netlify.com/projects/maya-assistant/deploys/6af89f48243c385250a292d5
😎 Deploy Preview https://deploy-preview-19--maya-assistant.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T17:41:47.224776Z
We couldn’t complete this review. Comment @codex review to try again.
cf8585c PR opened
ℹ️ 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Muawiya-contact Muawiya-contact left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

@Muawiya-contact
Muawiya-contact merged commit af99f62 into main Nov 14, 2026
6 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.

1 participant