Repository navigation
feat: reconcile academic task status evidence - #30
Conversation
✅ Deploy Preview for maya-assistant ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3656dc40a7
ℹ️ 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".
| WHERE t.status IN ('open', 'done') OR (t.status = 'expired' AND t.updated_at >= ?) | ||
| ORDER BY CASE t.status WHEN 'open' THEN 0 WHEN 'done' THEN 1 ELSE 2 END, t.due_at IS NULL, t.due_at, t.id LIMIT ?`) |
There was a problem hiding this comment.
Keep completed tasks out of deadline context
For a question like “when is my assignment due?”, this query now includes completed tasks in the same candidates as open work. The later relevance sort breaks ties by due date, so if at least 14 older completed assignments match the query, they can fill the evidence slots and hide upcoming open deadlines. Include completed tasks only for academic-status questions, or rank open tasks ahead of completed ones.
AGENTS.md reference: AGENTS.md:L5-L6
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be417199a9
ℹ️ 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".
| status: row.status, updatedAt: row.updatedAt }); | ||
| } | ||
|
|
||
| if (/\b(?:what changed|changes?|status)\b|بدل|حالت/iu.test(question)) { |
There was a problem hiding this comment.
Include completion provenance in status-answer context
When the owner asks whether an assignment was submitted or what they completed, wantsAcademicStatus includes the task, but this branch only adds observations for questions containing “what changed,” “changes,” or “status.” The model then sees only a generic done task status, so it cannot distinguish an owner-reported completion from portal-confirmed submission and may attribute completion to VU, which does not provide reliable submission evidence. Include observations for submitted/completed questions or otherwise expose the evidence kind.
AGENTS.md reference: AGENTS.md:L5-L7
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3ed687818
ℹ️ 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".
| const observation = recordTaskObservation({ taskId: assignment.taskId, source: 'nfc-cms', status: 'missing', | ||
| dueAt: null, observedAt: now, evidenceKind: 'missing_from_successful_listing' }); |
There was a problem hiding this comment.
Validate the NFC listing before marking assignments missing
If the authenticated assignments page has no matching table rows, assignmentRows() returns [] and parsing succeeds; this loop then records every known linked assignment as missing and the scheduler can notify the owner based on that false evidence. Validate that the expected listing was actually read before treating absent IDs as missing.
AGENTS.md reference: AGENTS.md:L5-L6
Useful? React with 👍 / 👎.
| if (wantsAcademicStatus) { | ||
| const since = new Date(now.getTime() - 14 * 24 * 60 * 60_000).toISOString(); | ||
| for (const source of ['nfc-cms', 'vu-classic-todo', 'owner-report']) { | ||
| for (const observation of recentTaskObservations(source, since).slice(-8)) add({ |
There was a problem hiding this comment.
Scope status observations to the requested tasks
When a task’s observation is older than the latest eight observations for its source, this global cap drops it even if the task itself is selected for the question. The context then contains only the task’s generic done status, so Maya cannot distinguish portal-confirmed submission from owner-reported completion; select observations for the relevant task IDs before applying the cap.
Useful? React with 👍 / 👎.
Closes #25
What changed
Safety model
owner-report, not as a portal-confirmed result.Validation
browser-use --doctornpm run typechecknpm run lintnode --import tsx --test tests/nfc-sync.test.mjs tests/nfc-scheduler.test.mjs tests/vu-scheduler.test.mjs tests/vu-classic-todo.test.mjs tests/context-phase3.test.mjs tests/natural-done.test.mjs tests/commands.test.mjs(26 passing)git diff --checkManual verification after deployment
what changed?.I completed <task name>and askwhat have I completed?; Maya must not describe it as portal-confirmed.No credentials, LMS content, or student data are in this PR.