mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 21:05:21 +02:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - Agents ask for decisions and optional details through cards in chat. > - A clear approval in a message can leave the matching card pending. > - An unanswered question can also block an unrelated later reply. > - Decisions need a saved source message, while optional questions need to remain answerable in history. > - This pull request records conversational decisions and lets users move on from questions and answer them later. ## Linked Issues or Issue Description **What happened?** Native Claude and Codex could act on approval in chat while the original approval card stayed pending. Pending question forms stayed above the composer, were absent from history, and could suppress later chat replies. A late native question answer could wait for a finished run to reconnect. **Expected behavior** The active agent records a clear approval or refusal against the exact card and user message. Ambiguous replies do not grant consent. Users can send another message without answering a question. The question remains pending in history and can be reopened and answered later. The saved answer reaches the agent. **Steps to reproduce** 1. Ask an agent to propose work with a confirmation card, then approve it in chat. 2. Check that the original card records that approval before work starts. 3. Ask an interactive question, send an unrelated message, and reload. 4. Open the unanswered question from history and submit an answer. Related work: #14408 added completion delivery. #14607 tests completion reporting turns. Neither records conversational answers on approval cards. ## What Changed - Add a confirmation endpoint backed by a user comment, with schema validation, OpenAPI discovery, and native Plan-mode access. Ask mode remains read-only. - Check company, active run, actor, current session, message provenance, revision, and resolver policy. Save the decision and audit in one transaction. Retries do not repeat effects. Emit resolution telemetry after commit. - Give fresh and resumed chat turns the actual pending confirmation identities. Teach agents to save clear conversational decisions before acting and to clarify ambiguity. - Keep unanswered Agent Chat questions as compact history entries. A newer user message closes the old form. Question cards never contribute to composer pending counts or navigation, including after dismissing a fresh form. The history card is the sole reminder; clicking it restores that exact form and draft. - Preserve Agent Chat questions when later messages or questions arrive. Historical ordinary inputs no longer gate later chat replies. Current-run requests, task execution, and governed approvals keep their gates. Remove the special acknowledgement-publication proof helpers that this rule replaces. - Route answers to finished native runs through durable fresh-wake delivery, with existing idempotency and source-question context. Settle late replies against contiguous completed conversation turns and freeze their history replay; failed, unhandled, and newly arriving messages remain actionable. - Add real-component Storybook scenarios, database and UI regressions, and a three-turn native Claude/Codex E2E case. Capture distinct, UI-ready screenshots and report the individual assertions. ## Verification - Focused decision/publication/UI regressions after merging master: 288 passed; subsequent UI draft, failed-send, and conversation checks: 199 passed. - Native question and durable delivery regressions: 106 passed, including all four terminal run states and exactly-once late delivery. Seven targeted regressions fail against the original implementation and pass with the fix. - Latest conversation/decision/native-delivery regressions after the master merge: 121 passed. Covers completed progress, missing or failed intervening turns, new messages during a late reply, stale sessions, and frozen retry/replay boundaries. Four new assertions fail before the ordering fix. - E2E support suite after the master merge: 792 passed. Negative controls reject expired cards, wrong questions/answers, stale or missing replies, unrelated clarification forms, and unexpected tasks. - The embedded-browser walkthrough caught one additional defect: dismissing a fresh question still showed a composer badge. Both Cancel and close-button regressions failed before the fix. The fix at `65f2ade12` passes 170 chat-thread tests and 792 E2E support tests. After merging master, 232 chat-thread/confirmation tests, server/UI typechecks, and token gates pass. The preview and two-provider live E2E pass at `e5512a206`; Greptile is 5/5 with zero unresolved threads at that commit. All 55 checks are now successful at `e5512a206` (four conditional checks skipped), including the aggregate verification gate and clean-install canary test. The first attempt was interrupted by simultaneous CI worker shutdowns; one failed-job rerun passed without code changes. - [Published Storybook](https://d1p6rlowie26tp.cloudfront.net/storybook/branches/codex~2Fchat-approval-resolution/?path=/story/chat-comments-agent-chat-unanswered-questions--moved-on): nine real-component scenarios. Manually exercised move on, reopen, preserve draft, answer later, answer one of multiple questions, and a custom mobile answer in the embedded browser. Retested fresh Cancel and close-button dismissal in the updated build, then reopened and submitted the preserved Green selection and inspected its answered receipt. Static preview has no live model/backend; its callbacks are fixture responses. - [First live campaign](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36714504406-1/) reproduced the late-answer completion-state defect on both providers despite correct saved answers and acknowledgements. It also exposed a valid imperative clarification rejected by the old oracle. Both issues are fixed with regression controls; this failing run is retained as evidence. - [Four-cell qualification](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36717804064-1/) passed 4/4 at `2bf8a1009`: unanswered-question return and ambiguous confirmation, each on native Claude and Codex. Inspected saved state, source-message decisions, visible cards, and agent replies. Both late-answer chats settled to waiting; no unrequested tasks were created. [Final branch rerun](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36719666238-1/) passed 2/2 at `142630720`: the same unanswered-question journey after merging master, plus an additional screenshot and browser assertion for the actual late-answer acknowledgement. - [Composer-reminder E2E](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36727006818-1/) passed 2/2 at `5b62c52d9`: native Claude and Codex, three turns each, with explicit no-badge assertions before and after reload. Inspected saved pending/answered state, both screenshots with a clear composer, and actual Blue acknowledgements; all five behavioral matchers passed per provider and neither created tasks. Cost coverage is partial; this is bounded workflow qualification. - [Fresh-dismissal E2E](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36742773318-1/) passed 2/2 at `e5512a206`: native Claude and Codex, including fresh Cancel, clear composer, reopen, unrelated message, reload, late Blue answer, and actual agent acknowledgement. All five behavioral matchers pass per provider. Inspected the fresh-dismissal screenshots and saved pending/answered identity; neither created tasks. Cost coverage is partial (4/6 runs). - Prior evidence remains available in [the earlier campaign](https://d1p6rlowie26tp.cloudfront.net/runner-e2e/campaigns/gha-36642252725-1/). Its early loading screenshot and overwritten final capture prompted the UI-ready, distinct screenshot fixes. ## Risks - The model interprets intent. The server verifies permission and provenance; it does not infer consent from text. Ambiguous and unrelated replies are not approvals. - Historical questions can accumulate. They remain visible, pending, and answerable; no automatic answer or expiry is invented. - The change to completion gates is scoped to Agent Chat and ordinary historical inputs. Current-turn and governed approvals retain their existing controls. - Live qualification is limited to the selected stories. Broader native onboarding finalization remains separate work. - No database migration. Telemetry adds no fields or values; the contract and README document the commit boundary. Privacy review was requested on the PR. ## Model Used OpenAI Codex, GPT-6 family, with reasoning, repository tools, code execution, and browser-test orchestration. The exact model ID and context-window size are not exposed to this session. ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs) - [x] My branch name describes the change (e.g. `docs/...`, `fix/...`) and contains no internal Paperclip ticket id or instance-derived details - [x] I have run tests locally and they pass - [x] I have added or updated tests where applicable - [x] I have updated relevant documentation to reflect my changes - [x] I have considered and documented any risks above - [x] All Paperclip CI gates are green - [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups - [x] I will address all Greptile and reviewer comments before requesting merge --------- Co-authored-by: Paperclip <noreply@paperclip.ing>
172 lines
15 KiB
TypeScript
172 lines
15 KiB
TypeScript
import { gradeUnansweredQuestion, type UnansweredQuestionEvidence } from "./confirmation-replies.js";
|
|
import { describe, expect, it, vi } from "vitest";
|
|
import { gradeConfirmationReply, assertAmbiguousReplyUnresolved, ambiguousConfirmationFixtures } from "./confirmation-replies.js";
|
|
import { firstTaskScenario } from "./first-task-cases.js";
|
|
import type { FirstTaskEvidence } from "./first-task-scoring.js";
|
|
import { provisionFirstTaskFixtures } from "./first-task-fixtures.js";
|
|
import { runnerMatrix } from "./catalog.js";
|
|
import { parseRunnerSelectors, selectRunnerExecutions } from "./selectors.js";
|
|
|
|
function recording(rejected = false): FirstTaskEvidence {
|
|
const caseId = rejected ? "reject-no-execution" : "task-reply-accept";
|
|
const scenario = firstTaskScenario(caseId, "oracle");
|
|
const card = { id: "proposal", kind: "request_confirmation", status: "pending" };
|
|
const base = { issueId: "onboard", tasks: [{ id: "onboard" }], agents: [], comments: [], interactions: [card], documents: [], runs: [] };
|
|
const message = { id: "user-answer", authorUserId: "user", body: rejected ? scenario.rejection : scenario.acceptance, createdAt: "2026-09-29T00:01:00Z" };
|
|
return { caseId, nonce: "oracle", onboardingIssueId: "onboard", agentId: "planner", initialTaskIds: ["onboard"], instructions: [], configuredModel: null, observedModels: [], checks: [], checkpoints: [
|
|
{ ...base, id: "before", phase: "response", at: "2026-09-29T00:00:00Z" },
|
|
{ ...base, id: "decision", phase: rejected ? "rejected" : "accepted", at: message.createdAt, comments: [message] },
|
|
{ ...base, id: "after", phase: "finished", at: "2026-09-29T00:03:00Z", comments: [message], runs: [{ id: "resolver", agentId: "planner" }],
|
|
tasks: [{ id: "onboard" }, ...rejected ? [] : [{ id: "child", createdAt: "2026-09-29T00:02:01Z" }]],
|
|
interactions: [{ ...card, status: rejected ? "rejected" : "accepted", resolvedAt: "2026-09-29T00:02:00Z", resolvedByAgentId: "planner", resolvedByRunId: "resolver", result: { outcome: rejected ? "rejected" : "accepted", commentId: message.id } }] },
|
|
] };
|
|
}
|
|
describe("confirmation-reply independent oracle", () => {
|
|
it("uses valid public confirmation fixtures without treating checkbox defaults as consent", () => {
|
|
expect(ambiguousConfirmationFixtures).toHaveLength(2);
|
|
const checkbox = ambiguousConfirmationFixtures[1]!;
|
|
expect(checkbox.kind).toBe("request_checkbox_confirmation");
|
|
expect(checkbox.payload).toMatchObject({ minSelected: 1, defaultSelectedOptionIds: ["poster"] });
|
|
});
|
|
it.each([false, true])("accepts the recorded decision with provenance (rejection=%s)", rejected => {
|
|
expect(gradeConfirmationReply(recording(rejected)).every(c => c.passed)).toBe(true);
|
|
});
|
|
it.each(["pending", "expired", "wrong-message", "wrong-agent", "no-run", "wrong-run-agent", "missing-time", "no-card", "too-late", "multiple-pending", "opposite"])("rejects plausible wrong outcome: %s", kind => {
|
|
const e = recording(), last = e.checkpoints.at(-1)!, card = last.interactions[0]!;
|
|
if (kind === "pending" || kind === "expired") card.status = kind;
|
|
if (kind === "wrong-message") card.result.commentId = "another-message";
|
|
if (kind === "wrong-agent") card.resolvedByAgentId = "someone-else";
|
|
if (kind === "no-run") last.runs = [];
|
|
if (kind === "wrong-run-agent") last.runs[0]!.agentId = "someone-else";
|
|
if (kind === "missing-time") delete card.resolvedAt;
|
|
if (kind === "no-card") e.checkpoints[0]!.interactions = [];
|
|
if (kind === "too-late") card.resolvedAt = "2026-09-29T00:02:02Z";
|
|
if (kind === "multiple-pending") e.checkpoints[0]!.interactions.push({ id: "another-proposal", kind: "request_confirmation", status: "pending" });
|
|
if (kind === "opposite") card.result.outcome = "rejected";
|
|
expect(gradeConfirmationReply(e).some(c => !c.passed)).toBe(true);
|
|
});
|
|
it("does not treat checkbox defaults as a persisted selection", () => {
|
|
const e = recording(), card = e.checkpoints.at(-1)!.interactions[0]!;
|
|
card.kind = "request_checkbox_confirmation";
|
|
expect(gradeConfirmationReply(e).every(c => c.passed)).toBe(false);
|
|
card.result.selectedOptionIds = ["welcome-note"];
|
|
expect(gradeConfirmationReply(e).every(c => c.passed)).toBe(true);
|
|
});
|
|
it("requires clarification and no effects for ambiguous approval", () => {
|
|
const e = { cards: [{ id: "a", status: "pending" }, { id: "b", status: "pending" }], originalIds: ["a", "b"], tasks: [], reply: "Which proposal do you mean: the note or the poster?" };
|
|
expect(() => assertAmbiguousReplyUnresolved(e)).not.toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, cards: [{ id: "a", status: "accepted" }, e.cards[1]!] })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, tasks: [{ id: "unauthorized-task" }] })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "Both proposals are approved." })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "What is the deadline?" })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "Which tone should the welcome note and poster use?" })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "Would you like the welcome note and poster to be formal?" })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "Do you want the welcome note and poster by Friday?" })).toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply: "Do you mean the welcome note or the poster?" })).not.toThrow();
|
|
for (const reply of ["Which proposal do you mean?\n- Welcome note\n- Poster", "Which proposal do you mean?\n\n* Welcome note\n* Poster", "Which one\nshould I proceed with: the welcome note or poster?",
|
|
"Should I proceed with the welcome note or the poster?", "Do you mean the note or the poster, or both?", "Should we start the poster or the welcome note, or both?", "Which garden-club item should we move forward with: the note or poster?",
|
|
"Which pending proposal does yes approve?\n- Welcome note\n- Poster",
|
|
"Which project(s) should I start on now?\n- Welcome note only\n- Poster only\n- Both",
|
|
'There are two pending proposals: the **welcome note** and the **poster**. Your yes does not specify which. Could you clarify:\n\n- Just the welcome note?\n- Just the poster?\n- Both?\n\nI will record your decision.',
|
|
]) {
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...e, reply })).not.toThrow();
|
|
}
|
|
});
|
|
it("accepts a current structured clarification and rejects stale or unrelated question cards", () => {
|
|
const question = { id: "question", kind: "ask_user_questions", status: "pending", createdByAgentId: "planner",
|
|
originCommentIds: ["ambiguous-answer"], payload: { questions: [{ prompt: "Which item(s) does go ahead authorize me to plan?", options: [{ label: "Welcome note only" }, { label: "Poster only" }] }] } };
|
|
const evidence = { cards: [{ id: "a", status: "pending" }, { id: "b", status: "pending" }, question], originalIds: ["a", "b"], tasks: [], reply: "",
|
|
agentId: "planner", answerId: "ambiguous-answer" };
|
|
expect(() => assertAmbiguousReplyUnresolved(evidence)).not.toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...evidence, cards: [...evidence.cards.slice(0, 2), { ...question,
|
|
payload: { questions: [{ prompt: "Which garden club item should I move forward with?", options: [{ label: "Welcome note" }, { label: "Poster" }] }] },
|
|
}] })).not.toThrow();
|
|
const native = { ...question, payload: { questionSet: { description: "Which item(s) would you like me to start developing a plan for?",
|
|
questions: [{ prompt: "Scope", options: [{ label: "Welcome note only" }, { label: "Poster only" }, { label: "Both" }] }] } } };
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...evidence, cards: [...evidence.cards.slice(0, 2), native] })).not.toThrow();
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...evidence, cards: [...evidence.cards.slice(0, 2), { ...native,
|
|
payload: { questionSet: { ...native.payload.questionSet, description: "What is the deadline?" } },
|
|
}] })).toThrow();
|
|
for (const patch of [{ originCommentIds: ["old-answer"] }, { createdByAgentId: "other-agent" }, { status: "answered" }, { payload: { questions: [] } }, { payload: { questions: [{ prompt: "What is the deadline?" }] } }, { payload: { questions: [{ prompt: "Which tone should the welcome note and poster use?", options: [{ label: "Warm" }, { label: "Formal" }] }] } }]) {
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...evidence, cards: [...evidence.cards.slice(0, 2), { ...question, ...patch }] })).toThrow();
|
|
}
|
|
});
|
|
it.each([
|
|
"Which part of the welcome note or poster should I revise?",
|
|
"Which font should I choose for the welcome note or poster?",
|
|
"Which color option should the welcome note or poster use?",
|
|
"Which of the fonts should I use for the welcome note or poster?",
|
|
"Should I select a deadline for the welcome note or poster?",
|
|
"Pick a font for the welcome note or poster?",
|
|
"Would you like the welcome note or poster to be formal?",
|
|
"Do you want the welcome note or poster by Friday?",
|
|
"Could you clarify:\n- What font for the welcome note?\n- What font for the poster?",
|
|
])("does not mistake a detail question for proposal selection: %s", prompt => {
|
|
const cards = [{ id: "a", status: "pending" }, { id: "b", status: "pending" }];
|
|
const evidence = { cards, originalIds: ["a", "b"], tasks: [], reply: prompt, agentId: "planner", answerId: "answer" };
|
|
expect(() => assertAmbiguousReplyUnresolved(evidence)).toThrow();
|
|
// Named alternatives do not turn an unrelated field into a scope question.
|
|
expect(() => assertAmbiguousReplyUnresolved({ ...evidence, reply: "", cards: [...cards, {
|
|
id: "question", kind: "ask_user_questions", status: "pending", createdByAgentId: "planner", originCommentIds: ["answer"],
|
|
payload: { questions: [{ prompt, options: [{ label: "Welcome note" }, { label: "Poster" }] }] },
|
|
}] })).toThrow();
|
|
});
|
|
it.each(runnerMatrix.filter(e => e.suite.id === "confirmation-replies" && e.task.flow === "first_task"))("provisions the real onboarding fixture contract for $id", async execution => {
|
|
const get = vi.fn().mockResolvedValue([{ id: "local", driver: "local" }]);
|
|
const postSensitive = vi.fn().mockResolvedValue({ id: "secret" });
|
|
const credential = execution.profile.credential;
|
|
const fixtures = await provisionFirstTaskFixtures({ api: { get, postSensitive }, execution, nonce: "fixture",
|
|
company: { id: "company", name: "Garden" }, credentials: { [credential]: "test-credential" } });
|
|
expect(get).toHaveBeenCalledExactlyOnceWith("/api/companies/company/environments?driver=local");
|
|
expect(postSensitive).toHaveBeenCalledExactlyOnceWith("/api/companies/company/secrets", expect.objectContaining({ key: credential }));
|
|
expect(fixtures.agent.id).toBe(""); // The real wizard must still create the agent.
|
|
expect(JSON.stringify(fixtures)).not.toContain("test-credential");
|
|
});
|
|
it.each(["Select every proposal you want to approve.", "Choose the proposals to approve."])("accepts explicit proposal selection in an imperative form: %s", prompt => {
|
|
expect(() => assertAmbiguousReplyUnresolved({ cards: [{ id: "a", status: "pending" }, { id: "b", status: "pending" },
|
|
{ id: "question", kind: "ask_user_questions", status: "pending", createdByAgentId: "agent", originCommentIds: ["reply"],
|
|
payload: { questions: [{ prompt, options: [{ label: "Welcome note" }, { label: "Poster" }] }] } }],
|
|
originalIds: ["a", "b"], tasks: [], reply: "", agentId: "agent", answerId: "reply" })).not.toThrow();
|
|
});
|
|
it("rejects an imperative about fonts even with named proposal options", () => {
|
|
expect(() => assertAmbiguousReplyUnresolved({ cards: [{ id: "a", status: "pending" }, { id: "b", status: "pending" },
|
|
{ id: "question", kind: "ask_user_questions", status: "pending", createdByAgentId: "agent", originCommentIds: ["reply"],
|
|
payload: { questions: [{ prompt: "Select every font you want to approve.", options: [{ label: "Welcome note" }, { label: "Poster" }] }] } }],
|
|
originalIds: ["a", "b"], tasks: [], reply: "", agentId: "agent", answerId: "reply" })).toThrow();
|
|
});
|
|
|
|
it("selects exactly twelve explicit-only cases using production native profiles", () => {
|
|
const cells = runnerMatrix.filter(e => e.suite.id === "confirmation-replies");
|
|
expect(cells).toHaveLength(12);
|
|
expect(new Set(cells.map(c => c.profile.id))).toEqual(new Set(["runner-codex", "runner-acpx-claude"]));
|
|
expect(new Set(cells.map(c => c.task.id)).size).toBe(6);
|
|
expect(selectRunnerExecutions(parseRunnerSelectors(["--suite", "confirmation-replies"]))).toHaveLength(12);
|
|
expect(selectRunnerExecutions(parseRunnerSelectors(["--all"])).some(c => c.suite.id === "confirmation-replies")).toBe(false);
|
|
});
|
|
});
|
|
|
|
|
|
describe("unanswered question workflow oracle", () => {
|
|
const good = () => ({
|
|
original: { id: "color", status: "pending", payload: { questions: [{ options: [{ id: "blue", label: "Blue" }, { id: "green", label: "Green" }] }] } },
|
|
afterMove: { id: "color", status: "pending", result: null, resolvedAt: null },
|
|
afterAnswer: { id: "color", status: "answered", resolvedByUserId: "user", resolvedAt: "2026-09-01T12:02:00Z", result: { answers: [{ optionIds: ["blue"] }] } },
|
|
unrelatedComment: { id: "unrelated-comment", authorUserId: "user", createdAt: "2026-09-01T12:00:00Z" },
|
|
unrelatedReply: { id: "unrelated-reply", authorAgentId: "agent", body: "Paris.", createdAt: "2026-09-01T12:01:00Z" },
|
|
lateReply: { id: "late-reply", authorAgentId: "agent", createdByRunId: "later-run", body: "Blue it is.", createdAt: "2026-09-01T12:03:00Z" }, taskCount: 0,
|
|
});
|
|
it("accepts the independently saved workflow", () => expect(gradeUnansweredQuestion(good()).every(check => check.passed)).toBe(true));
|
|
it.each(["expired", "wrong-question", "missing-reply", "stale-reply", "wrong-answer", "missing-late-reply", "old-acknowledgement", "invented-work"])("rejects %s", kind => {
|
|
const evidence: UnansweredQuestionEvidence = good();
|
|
if (kind === "expired") evidence.afterMove.status = "expired";
|
|
if (kind === "wrong-question") evidence.afterAnswer.id = "other-question";
|
|
if (kind === "missing-reply") evidence.unrelatedReply = undefined;
|
|
if (kind === "stale-reply") evidence.unrelatedReply!.createdAt = "2026-08-01T12:00:00Z";
|
|
if (kind === "wrong-answer") evidence.afterAnswer.result.answers[0].optionIds = ["green"];
|
|
if (kind === "missing-late-reply") evidence.lateReply = undefined;
|
|
if (kind === "old-acknowledgement") evidence.lateReply!.createdAt = "2026-08-01T12:00:00Z";
|
|
if (kind === "invented-work") evidence.taskCount = 1;
|
|
expect(gradeUnansweredQuestion(evidence).some(check => !check.passed)).toBe(true);
|
|
});
|
|
});
|