diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/.gitkeep b/work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/.gitkeep similarity index 100% rename from work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/.gitkeep rename to work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/.gitkeep diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/delegation-intent.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/delegation-intent.md similarity index 100% rename from work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/delegation-intent.md rename to work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/delegation-intent.md diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/review.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/review.md similarity index 100% rename from work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/review.md rename to work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/review.md diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/task-hook-investigation.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/task-hook-investigation.md similarity index 100% rename from work-items/open/20260605-004807-hook-context-system-item-sink/artifacts/task-hook-investigation.md rename to work-items/closed/20260605-004807-hook-context-system-item-sink/artifacts/task-hook-investigation.md diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/item.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/item.md similarity index 99% rename from work-items/open/20260605-004807-hook-context-system-item-sink/item.md rename to work-items/closed/20260605-004807-hook-context-system-item-sink/item.md index be6ec54a..1f500415 100644 --- a/work-items/open/20260605-004807-hook-context-system-item-sink/item.md +++ b/work-items/closed/20260605-004807-hook-context-system-item-sink/item.md @@ -2,12 +2,12 @@ id: 20260605-004807-hook-context-system-item-sink slug: hook-context-system-item-sink title: Hook: add context handles for host-mediated SystemItem append -status: open +status: closed kind: feature priority: P1 labels: [hooks, feature-registry, history, task-reminder] created_at: 2026-06-05T00:48:07Z -updated_at: 2026-06-05T01:25:03Z +updated_at: 2026-06-05T01:26:06Z assignee: null legacy_ticket: null --- diff --git a/work-items/closed/20260605-004807-hook-context-system-item-sink/resolution.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/resolution.md new file mode 100644 index 00000000..62d2ebdb --- /dev/null +++ b/work-items/closed/20260605-004807-hook-context-system-item-sink/resolution.md @@ -0,0 +1 @@ +Added PreRequestContext and host-mediated SystemItemAppendHandle for pre-request hooks. Hook returns remain per-hook-point flow-control actions; the append handle has host-private construction and a narrow task-reminder request surface; queued system items commit through the existing LogEntry::SystemItem / Event::SystemItem path only on successful continue. Existing Task reminder ownership remains unchanged for the follow-up ticket. External review approved. Merge validation passed: cargo test -p pod hook --lib, cargo test -p pod --lib, cargo test -p llm-worker --lib, cargo fmt --check, cargo check --workspace --all-targets, ./tickets.sh doctor, git diff --check, nix build .#yoi, ./result/bin/yoi pod --help. diff --git a/work-items/open/20260605-004807-hook-context-system-item-sink/thread.md b/work-items/closed/20260605-004807-hook-context-system-item-sink/thread.md similarity index 93% rename from work-items/open/20260605-004807-hook-context-system-item-sink/thread.md rename to work-items/closed/20260605-004807-hook-context-system-item-sink/thread.md index 9966e44c..63ae62f7 100644 --- a/work-items/open/20260605-004807-hook-context-system-item-sink/thread.md +++ b/work-items/closed/20260605-004807-hook-context-system-item-sink/thread.md @@ -194,4 +194,13 @@ Not rerun: The remaining risk is in future authority granularity, not this prerequisite implementation: today the handle is present for pre-request hooks when a log writer exists, rather than being selected per installed feature/hook. That should be tightened before exposing hooks to untrusted external plugins. The existing `SystemItemCommitter` API also logs and drops commit failures rather than returning a result; this is pre-existing behavior shared by other SystemItem lanes, but it means disk-write failure handling is not made stronger by this ticket. +--- + + + +## Closed + +Added PreRequestContext and host-mediated SystemItemAppendHandle for pre-request hooks. Hook returns remain per-hook-point flow-control actions; the append handle has host-private construction and a narrow task-reminder request surface; queued system items commit through the existing LogEntry::SystemItem / Event::SystemItem path only on successful continue. Existing Task reminder ownership remains unchanged for the follow-up ticket. External review approved. Merge validation passed: cargo test -p pod hook --lib, cargo test -p pod --lib, cargo test -p llm-worker --lib, cargo fmt --check, cargo check --workspace --all-targets, ./tickets.sh doctor, git diff --check, nix build .#yoi, ./result/bin/yoi pod --help. + + ---