-
Notifications
You must be signed in to change notification settings - Fork 8
fix(#268): align qa-* test from_session with ntok-bound alias — restore 13/13 L1 green #269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -86,9 +86,9 @@ mcp_call "$ALICE_NTOK" "report_status" "$ARG" | jq -e '.ok == true' >/dev/null \ | |
| || { echo "FAIL: alice report_status"; exit 1; } | ||
| # dispatch + reply (so /api/completions gets a row) | ||
| ARG=$(jq -nc --arg net "$ALICE_NET" \ | ||
| '{alias:"alice-secret-agent",task:"alice-confidential-task",priority:"normal",network_id:$net,from_session:"alice"}') | ||
| '{alias:"alice-secret-agent",task:"alice-confidential-task",priority:"normal",network_id:$net,from_session:"alice-secret-agent"}') | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Now that this setup gets past Useful? React with 👍 / 👎. |
||
| TASK_ID=$(mcp_call "$ALICE_NTOK" "send_task" "$ARG" | jq -r '.message_id') | ||
| [[ -n "$TASK_ID" ]] || { echo "FAIL: no task id"; exit 1; } | ||
| [[ -n "$TASK_ID" && "$TASK_ID" != "null" ]] || { echo "FAIL: no task id"; exit 1; } | ||
| ARG=$(jq -nc --arg t "$TASK_ID" \ | ||
| '{alias:"alice",text:"alice-private-reply-text",in_reply_to:$t,status:"replied",from_session:"alice-secret-agent"}') | ||
| mcp_call "$ALICE_NTOK" "send_reply" "$ARG" | jq -e '.ok == true' >/dev/null \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, the seeded
alice-confidential-taskrow is written withfrom_name=alice-secret-agentbecausesend_taskstoresfrom_sessionas the task sender, but step [7] still queries/api/tasks?from_name=aliceand looks for that content. The/api/taskshandler applies an exactfrom_name = ?predicate (server/src/index.ts:1979), so this probe now returns zero rows even if the documentedfrom_name=alicedashboard IDOR path regresses; seed this row through Alice's UTOK or update the probe to match the actual sender.Useful? React with 👍 / 👎.