mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
Preserve Pi notice severity and compact activity summaries
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
df424c9024
commit
00c7a4510b
6 files changed
+96
-13
No files matched your search
@@ -24,10 +24,10 @@ qualification. The existing draft stack must be reviewed in dependency order.
|
||||
| Runtime identity and admission | Exact runtime/profile/model; verified effective thinking; startup below the 60-second admission limit; unsupported configuration fails before a prompt | Deterministic checks and ARM installed startup pass. Recheck final source on all supported hosts. |
|
||||
| Live lifecycle | Pending native question survives controller restart in the original process; one creation and resolution; stale answer after provider death rejected; Stop retires owned processes; three warm turns keep process identity | Installed profile-14 same-turn steering passes at `dc2b053f3`. Restart and three-turn warm continuity pass at historical `f5f57e380`; pending-permission Stop and stale response rejection pass at `03dd6ef93`. Final-source lifecycle and provider-death evidence remain required. |
|
||||
| Product workflows | All 26 explicit Pi Product E2E cells (13 local, 13 Daytona); screenshots, public state, independent artifacts, terminal and cleanup evidence | Historical partial passes exist. Full final-source campaign remains required. |
|
||||
| Runner protocol | Pi roster passes through the native packaged runner and authenticated mock control plane; lifecycle/denial/control cases remain distinct from Product tests | Installed get-task-context passes at `f5f57e380`; context-before-action times out. Five cells remain unexecuted. |
|
||||
| Installed distribution | Public CLI/server tars on ARM Mac, Intel Mac and Linux; normal Pi setup; exact Linux companion and immutable Daytona image imported without binary override | Historical ARM and Intel public installations pass. Linux CI retains `session_handshake_timeout`; queued fleet jobs were cancelled. Final-source platform receipts, Linux companion and Daytona image remain required. |
|
||||
| Runner protocol | Pi roster passes through the native packaged runner and authenticated mock control plane; lifecycle/denial/control cases remain distinct from Product tests | Six of seven cases pass through installed `df424c902`, including context-before-action. Governed-wait fails durable suspension during cleanup; paid retries are held pending a concrete correction. |
|
||||
| Installed distribution | Public CLI/server tars on ARM Mac, Intel Mac and Linux; normal Pi setup; exact Linux companion and immutable Daytona image imported without binary override | ARM and Linux public installation pass at `df424c902`; Intel passes at `666cb3ecc`. Exact-source Linux companion and immutable Daytona proof remain required. Image job 37092761291 is queued on EC2; retain that handle. |
|
||||
| Governance and spend | Company isolation, human-only permission, duplicate/stale answers, Stop and budget hard stop; pricing estimates never become claimed bills | 58 focused governance/cost/session invariants pass at `f5f57e380`. Live pending-permission Stop passes at `03dd6ef93`. The qualification key cap is not proof of Paperclip budget enforcement. |
|
||||
| Integration and rollout | Review each prerequisite; final-head typecheck, tests, build and CI pass; no unresolved review; exact artifacts; rollback recorded | Draft #14956 is stacked on #14924. Prerequisite PRs #14921–#14924 remain open. No merge or release. |
|
||||
| Integration and rollout | Review each prerequisite; final-head typecheck, tests, build and CI pass; no unresolved review; exact artifacts; rollback recorded | All 55 CI checks pass at `df424c902`. Two #14924 UI findings have tested downstream corrections. Prerequisite PRs #14921–#14924 remain open; qualification and final-head review remain required. No merge or release. |
|
||||
|
||||
## Bounded execution
|
||||
|
||||
@@ -238,17 +238,57 @@ prices are estimates. Unpriced usage must stay unpriced in the ledger and UI.
|
||||
- No paid call, key reset, fallback credential, workflow change, lockfile
|
||||
commit, merge or release occurs in this resumed diagnosis.
|
||||
|
||||
## Qualification update — 2026-10-02 22:50 CDT
|
||||
|
||||
- All 55 CI checks pass at `df424c902`. Linux Canary proves normal public
|
||||
CLI/server installation, profile-14 setup and credential-free closed admission
|
||||
in 8.036 seconds, with clean Runner exit. ARM public admission passes in
|
||||
7.988 seconds at the same source. Intel public admission passes in 34.059
|
||||
seconds at `666cb3ecc`; the next commit changes only Rust test formatting.
|
||||
These receipts do not prove the immutable Daytona image or the full matrix.
|
||||
- Installed Runner qualification uses exact source `df424c902`, private eval
|
||||
definitions `a9e0e7e0`, frozen Pi profile 14, the exact model and low thinking.
|
||||
Context-before-action, get-task-context, create-task-document, finish-task,
|
||||
request-human-confirmation and workflow-context-document-progress all pass.
|
||||
Each has one attempt and zero infrastructure retries. Original failures
|
||||
remain unchanged.
|
||||
- Workflow-governed-wait creates its requested approval and wake and completes
|
||||
the provider turn without finishing the mock task. Its canonical grade is
|
||||
`infrastructure_failure`: cleanup never proves durable Runner suspension.
|
||||
Retained stderr proves provider drain and semantic tool settlement, with zero
|
||||
pending provider events; suspension alone fails. The owned Runner is killed.
|
||||
The eval program deletes its temporary workspace, limiting further diagnosis.
|
||||
No paid retry is authorized by an unchanged failure; investigate and correct
|
||||
the close boundary first.
|
||||
- The two #14924 notice findings are reproduced and corrected downstream.
|
||||
Error severity retains the Error label even with informational status.
|
||||
Distinct notices share one compact category so work and a later error remain
|
||||
visible. All 44 focused UI tests, token gates, isolated UI typecheck and UI
|
||||
build pass. Root UI dependency links point to a different frozen checkout;
|
||||
validation uses this task's own dependency-complete private source.
|
||||
- The existing image-only run 37092761291 remains queued for EC2 job
|
||||
111116414966. It uses no provider credentials or prompts. Do not dispatch a
|
||||
duplicate on an observation timeout. Its authorization binds `df424c902`;
|
||||
source changes require new exact-source qualification evidence.
|
||||
- The dedicated key's latest API observation is $0.092409367 lifetime usage,
|
||||
$4.907590633 remaining, and zero BYOK usage. The $5 lifetime cap and $100
|
||||
campaign limit remain. Billing observations are provisional, not invoices.
|
||||
Paid work is held until a concrete governed-wait correction and fresh
|
||||
exact-source packaging. The full 26 Product cells remain required.
|
||||
|
||||
## Remaining work in order
|
||||
|
||||
1. Recheck the corrected executable-scratch probe at the final source and
|
||||
1. Correct and reproduce the governed-wait suspension failure without a
|
||||
provider call. Retain its original failed grade. Rebuild exact-source public
|
||||
packages before one explicit paid retry. Recheck final-source lifecycle and
|
||||
classify the observed Mac ownership contention. Produce the normal Linux
|
||||
public-install and companion receipts,
|
||||
companion receipt,
|
||||
then import an immutable exact-source Daytona image without an override.
|
||||
Do not accept a timeout as an installation pass or widen the admission limit.
|
||||
2. Resolve Runner `context-before-action` with a concrete behavioral correction.
|
||||
Bounded harness instructions are corrected; the retained attempt has no progress mutation.
|
||||
Do not run an unchanged paid retry. Then execute the remaining explicit
|
||||
Runner cases and the full 26-cell Product matrix on the frozen candidate.
|
||||
2. Complete all seven Runner cases and the full 26-cell Product matrix on the
|
||||
frozen candidate. Context-before-action now passes after the bounded-context
|
||||
correction; its original timeout remains unchanged. Reuse only evidence whose
|
||||
executable inputs and source identity match the final candidate.
|
||||
3. Close the prerequisite review stack and final CI gates. Keep the original
|
||||
Codex interruption failures and the passing corrected integration evidence.
|
||||
Publish only the qualified artifacts, then use the
|
||||
|
||||
@@ -235,6 +235,7 @@ describe("TaskChatProtocolActivityRow", () => {
|
||||
["info", "informational", "Provider update", "lucide-info"],
|
||||
["warning", "informational", "Warning", "lucide-triangle-alert"],
|
||||
["error", "failed", "Error", "lucide-triangle-alert"],
|
||||
["error", "informational", "Error", "lucide-triangle-alert"],
|
||||
["info", "failed", "Error", "lucide-triangle-alert"],
|
||||
] as const)("renders %s/%s notice severity without hiding its summary", (severity, status, label, icon) => {
|
||||
const summary = "Pi estimates this turn at $0.000617. Billing cost is unverified.";
|
||||
|
||||
@@ -22,6 +22,7 @@ import {
|
||||
protocolActivityIsRunning,
|
||||
protocolActivityLabel,
|
||||
protocolActivityPresentation,
|
||||
providerNoticeSeverity,
|
||||
} from "./task-chat-activity-presentation";
|
||||
|
||||
const COMPACT_RESEARCH_RESULT_LIMIT = 5;
|
||||
@@ -281,6 +282,7 @@ export function TaskChatProtocolActivityRow({ item }: { item: TaskChatProtocolIt
|
||||
if (!presentation) return null;
|
||||
if (item.surface === "provider_activity" && item.family === "provider_notice") {
|
||||
const NoticeIcon = presentation.icon;
|
||||
const severity = providerNoticeSeverity(item);
|
||||
const summary = item.summary
|
||||
?? item.details.find((entry) => entry.label === "Summary")?.value
|
||||
?? "The provider reported a notice without a message.";
|
||||
@@ -288,7 +290,7 @@ export function TaskChatProtocolActivityRow({ item }: { item: TaskChatProtocolIt
|
||||
<div className="flex min-w-0 flex-col gap-1.5 py-1 text-xs" data-testid="task-chat-protocol-activity-row" data-activity-family="provider_notice">
|
||||
<div className="flex items-center gap-2 text-muted-foreground">
|
||||
<NoticeIcon className="h-3.5 w-3.5 shrink-0" aria-hidden data-testid="task-chat-protocol-activity-icon" />
|
||||
<span className="font-medium">{item.status === "failed" ? "Error" : item.details.find(detail => detail.label === "Severity")?.value === "info" ? "Provider update" : "Warning"}</span>
|
||||
<span className="font-medium">{severity === "error" ? "Error" : severity === "info" ? "Provider update" : "Warning"}</span>
|
||||
</div>
|
||||
<p className="min-w-0 whitespace-pre-wrap break-words text-foreground">{summary}</p>
|
||||
{item.details.some(detail => detail.label !== "Summary") ? (
|
||||
|
||||
@@ -173,4 +173,17 @@ describe("completedActivitySummary", () => {
|
||||
}]).icon).toBe(AlertTriangle);
|
||||
});
|
||||
|
||||
it("groups distinct notices and keeps a later error visible beside actual work", () => {
|
||||
const notices = ["info", "info", "warning", "error"].map((severity, index) => ({
|
||||
...provider("provider_notice", "informational"),
|
||||
id: `notice-${index}`,
|
||||
summary: `Distinct provider message ${index}`,
|
||||
details: [{ label: "Severity", value: severity }],
|
||||
}));
|
||||
const result = completedActivitySummary([tool("bash"), ...notices]);
|
||||
expect(result.label).toBe("Provider error reported, ran commands");
|
||||
expect(result.fullLabel).toBe(result.label);
|
||||
expect(result.label).not.toContain("Distinct provider message");
|
||||
});
|
||||
|
||||
});
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
type ToolFamily,
|
||||
type ToolIcon,
|
||||
} from "./tool-taxonomy";
|
||||
import { protocolActivityPresentation } from "./task-chat-activity-presentation";
|
||||
import { protocolActivityPresentation, providerNoticeSeverity } from "./task-chat-activity-presentation";
|
||||
|
||||
type Activity = TaskChatActivityPhaseItem["items"][number];
|
||||
const labels: Record<ToolFamily, string> = {
|
||||
@@ -42,6 +42,12 @@ export function completedActivitySummary(items: Activity[]) {
|
||||
completed: boolean;
|
||||
order: number;
|
||||
}> = [];
|
||||
const notices: Array<{
|
||||
summary: string | undefined;
|
||||
severity: "info" | "warning" | "error";
|
||||
icon: ToolIcon;
|
||||
order: number;
|
||||
}> = [];
|
||||
for (const [order, item] of items.entries()) {
|
||||
if (item.kind === "tool") {
|
||||
const p = toolActivityPresentation({
|
||||
@@ -71,7 +77,7 @@ export function completedActivitySummary(items: Activity[]) {
|
||||
// Reuse only the normalized notice text already available in the row.
|
||||
const summary = item.summary?.trim()
|
||||
|| item.details.find((entry) => entry.label === "Summary")?.value.trim();
|
||||
add(summary || "Received a provider update", p.icon, order);
|
||||
notices.push({ summary, severity: providerNoticeSeverity(item), icon: p.icon, order });
|
||||
continue;
|
||||
}
|
||||
const family =
|
||||
@@ -100,6 +106,21 @@ export function completedActivitySummary(items: Activity[]) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (notices.length) {
|
||||
const strongest = notices.find((notice) => notice.severity === "error")
|
||||
?? notices.find((notice) => notice.severity === "warning")
|
||||
?? notices[0]!;
|
||||
const label = notices.length === 1
|
||||
? strongest.summary || "Received a provider update"
|
||||
: strongest.severity === "error"
|
||||
? "Provider error reported"
|
||||
: strongest.severity === "warning"
|
||||
? "Provider warning reported"
|
||||
: "Received provider updates";
|
||||
// One notice category leaves room for actual work. Keep warnings and errors
|
||||
// visible when the compact label truncates other activity categories.
|
||||
add(label, strongest.icon, strongest.severity === "info" ? notices[0]!.order : -1);
|
||||
}
|
||||
const completedFamilies = new Set(
|
||||
tools.filter((tool) => tool.completed).map((tool) => tool.family),
|
||||
);
|
||||
|
||||
@@ -41,6 +41,12 @@ export interface TaskChatActivityPresentation {
|
||||
detail?: string;
|
||||
}
|
||||
|
||||
export function providerNoticeSeverity(item: TaskChatProviderActivityItem): "info" | "warning" | "error" {
|
||||
const severity = item.details.find((entry) => entry.label === "Severity")?.value;
|
||||
if (item.status === "failed" || severity === "error") return "error";
|
||||
return severity === "info" ? "info" : "warning";
|
||||
}
|
||||
|
||||
function providerDetail(item: TaskChatProviderActivityItem, ...labels: string[]): string | undefined {
|
||||
return item.details.find((entry) => labels.includes(entry.label))?.value;
|
||||
}
|
||||
@@ -136,7 +142,7 @@ export function providerActivityPresentation(item: TaskChatProviderActivityItem)
|
||||
case "wait":
|
||||
return { icon: Clock3, runningLabel: "Waiting", completedLabel: "Finished waiting", failedLabel: "Wait failed", interruptedLabel: "Wait stopped", detail };
|
||||
case "provider_notice":
|
||||
return { icon: item.status !== "failed" && providerDetail(item, "Severity") === "info" ? Info : AlertTriangle, runningLabel: "Provider notice", completedLabel: "Provider notice", failedLabel: "Provider error", interruptedLabel: "Provider notice", detail };
|
||||
return { icon: providerNoticeSeverity(item) === "info" ? Info : AlertTriangle, runningLabel: "Provider notice", completedLabel: "Provider notice", failedLabel: "Provider error", interruptedLabel: "Provider notice", detail };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user