chore: update issue tracker, remove ai-sdk ADR
This commit is contained in:
1 parent
e88ab5ee85
commit
5ce821b561
3 files changed
+8
-51
No files matched your search
@@ -138,3 +138,4 @@
|
||||
{"id":"int-77c23261cb5fd1c2881ff882de56d86e","kind":"field_change","created_at":"2026-08-25T15:05:23.948131293Z","actor":"Sam Catlow","issue_id":"archie-core-p1bl","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Shipped in 6a23f8d: logging resolves every non-nil error attribute through Error(), with custom unexported-field and typed-nil regression coverage; included in archied v1.18.0."}}
|
||||
{"id":"int-ff379eca588df2a11fc3bf5121a7cc18","kind":"field_change","created_at":"2026-08-25T15:05:25.362400545Z","actor":"Sam Catlow","issue_id":"archie-core-440c","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Shipped in 16f9456: explicitly configured trusted forwarded headers drive effective Origin validation, with direct/proxied/spoofed regression coverage; included in archied v1.18.0."}}
|
||||
{"id":"int-d61ab877d6ab666df299085a52ca1c75","kind":"field_change","created_at":"2026-08-25T16:02:24.011512716Z","actor":"Sam Catlow","issue_id":"archie-core-vq92","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"task_logs cursor pagination, level/time filters, and honest truncation reporting"}}
|
||||
{"id":"int-6578329d076c7da3806f4c446f2dfe20","kind":"field_change","created_at":"2026-08-27T14:31:41.48495579Z","actor":"Sam Catlow","issue_id":"archie-core-1786637489932-6-1f803e02","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Wired GET /api/curators (names, health, last-run, recent actions) backed by a new bounded in-memory activity tracker in internal/domain/curator, plus a Curators dashboard page at ui/src/curators/."}}
|
||||
@@ -77,6 +77,13 @@
|
||||
{"_type":"issue","id":"archie-core-g7tm","title":"telegram: finalize the reply through a live context, matching the error branch","description":"The success path calls live.finalize(turnCtx, reply) with the raw cancellable turn context (telegram.go:582), while the error branch two lines above deliberately uses context.WithoutCancel(turnCtx). If /stop lands during finalize, the rich edit, the plain-text retry, and the split-send fallback all abort with context.Canceled (go-telegram/bot builds requests with NewRequestWithContext), so the authoritative reply is never delivered and the live message keeps the ▌ cursor forever. The reply is persisted to the ledger, so the loss is delivery-level — but the user sees a frozen half-answer.\n\nFailure: a long tool-using turn is /stop-ped as it completes; turnCtx is cancelled mid-finalize; every send fails on the dead context; the chat shows the last live frame with a blinking cursor and no final answer.\n\nFound by code-review of PR #476 (feat/467, merged 98e8dda).","design":"live.finalize(context.WithoutCancel(turnCtx), reply) — the one-liner the error branch already uses. Consider making finalize take a live context internally rather than trusting each caller to remember.","acceptance_criteria":"A /stop landing mid-finalize still delivers the authoritative reply and drops the cursor; a test covers the cancellable-context finalize path.","status":"closed","priority":1,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-14T14:43:08Z","created_by":"Sam Catlow","updated_at":"2026-08-14T15:07:36Z","started_at":"2026-08-14T14:53:28Z","closed_at":"2026-08-14T15:03:28Z","close_reason":"Fixed in internal/channels/telegram/live.go and telegram.go: finalize/abandon strip context cancellation before sending (mirroring each other), ToolCall escapes Markdown metacharacters via bot.EscapeMarkdown, splitLongMessage splits on rune boundaries. All new/changed tests verified red-then-green; task check clean; adversarial review pass found no blocking issues.","external_ref":"https://github.com/samcharles93/archie-core/issues/484","labels":["code-review","streaming","telegram"],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-tb3a","title":"Fix streaming review blockers for inline tool calls","description":"Resolve the four evidence-gated findings in merged inline tool-call streaming: preserve the authoritative Telegram reply when final edits fail; keep Telegram network I/O off the model FullStream consumer and cancellable; correlate tool inputs with results and render a bounded redacted parameter summary; snapshot show_tool_calls per live reply to avoid reload races. Add regression tests for every path and run task check plus lint/race validation.","acceptance_criteria":"Regression tests fail on the merged implementation and pass after the fix. Final edit failure falls back to normal split delivery. Delta and ToolCall callbacks do not wait on Telegram HTTP and stop cancels in-flight rendering. Completed tool events include bounded redacted parameters correlated by tool-call ID. Reload cannot race an in-flight reply's show_tool_calls setting. task check passes, golangci-lint reports no new findings, and focused race tests pass.","notes":"Implemented in worktree /tmp/archie-core-tb3a on branch fix/archie-core-tb3a. Added cancellable async Telegram rendering, final edit failure fallback through normal split delivery, call-ID-correlated bounded conservative parameter summaries, atomic per-reply show_tool_calls snapshots, SSE/UI parameter rendering, rebuilt ui/dist, and regression tests. Validation: GOFLAGS=-buildvcs=false task check passed; golangci-lint --new-from-rev=HEAD ./... reported 0 issues; focused race suite passed; fresh adversarial reviewer reported PASS with zero findings. Plain task check is blocked in linked worktrees by Go VCS stamping exit 128, hence buildvcs override.\n2026-08-24 reconciliation: the close reason's 'worktree left uncommitted' is stale. The work did land on main via ba33527 (Merge pull request #477 from samcharles93/fix/archie-core-tb3a); verified on main: gateway/stream.go sensitiveParameterKey+redactToolParameters, telegram/live.go per-reply showToolCalls snapshot, webui/api_chat.go gating. The /tmp/archie-core-tb3a worktree and its branch are gone, as expected.\n","status":"closed","priority":1,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-13T18:05:35Z","created_by":"Sam Catlow","updated_at":"2026-08-24T07:29:09Z","started_at":"2026-08-13T18:05:39Z","closed_at":"2026-08-13T18:35:26Z","close_reason":"Completed and independently reviewed; worktree left uncommitted per conservative repository policy.","external_ref":"https://github.com/samcharles93/archie-core/issues/485","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-dzx","title":"Remove duplicate archie-agent safe.directory setup","description":"## Problem\\ncmd/archie-agent/main.go configures git safe.directory inline and then calls markWorktreeSafe, so startup writes the same global git configuration twice.\\n\\n## Scope\\nKeep markWorktreeSafe as the single tested production path and remove the older inline exec.Command block/import. Add regression coverage proving startup wiring has exactly one authoritative safe-directory call.\\n\\n## Acceptance\\n- archie-agent startup invokes markWorktreeSafe exactly once\\n- no second inline safe.directory command remains in main.go\\n- cmd/archie-agent tests and repository quality gate pass","acceptance_criteria":"Single tested safe.directory setup path remains; duplicate inline command is removed; tests and task check pass","notes":"Red proof: TestMainConfiguresWorktreeSafetyOnce failed with 2 setup paths before implementation. Green proof: go test/vet/build ./cmd/archie-agent/... passed; golangci-lint --new-from-rev=HEAD reported 0 issues. Fresh adversarial review found no blockers. Full task check was not run because the working tree contains unrelated in-progress changes and task check rewrites files; scoped package gate used per repository protocol.","status":"closed","priority":1,"issue_type":"bug","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-08-13T16:10:09Z","created_by":"Sam Catlow","updated_at":"2026-08-13T16:13:48Z","started_at":"2026-08-13T16:10:24Z","closed_at":"2026-08-13T16:13:48Z","close_reason":"Removed duplicate inline safe.directory setup; markWorktreeSafe is now the single tested production path","external_ref":"https://github.com/samcharles93/archie-core/issues/470","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.7","title":"Architecture decision record: scheduling destination matrix entry in migration-decisions.md","description":"`migration-decisions.md` section 1 explicitly names scheduling among the largest unreviewed areas needing a destination matrix entry: 'every current package MUST receive one explicit disposition' includes the cron/scheduling capability.\n\nThe ticker engine `scheduling.Engine` is already in `internal/domain/scheduling` (decided by being built there). The remaining slices — store, runner/router, blueprints, lifecycle guard — need their target paths, dependencies, contracts, and deletion criteria recorded.","acceptance_criteria":"- Section 1 (or a new section row) lists each scheduling slice — store, runner/router, blueprints, lifecycle guard, config, composition, ticker — with its target path, dependencies to remove, contracts preserved, and migration prerequisites.\n- Names the existing `JobSource` / `Runner` / `Sink` / `Clock` interfaces as the contracts that bound the destination choices (so future maintainers see why no runner / store ended up under the engine package).\n- Marks the recording as approved-by-position (the maintainer approved this placement implicitly by accepting the engine PR) so it is not re-litigated.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:48Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:48Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.7","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:48Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.6","title":"Wire cron engine: app/archied composition, sink adapter, Start/Stop lifecycle","description":"Composition slice that connects the four siblings: instantiates the ticker engine in `internal/app/archied/` over the job store and the router, with the configured `EngineConfig` from the translator; registers it with the daemon's existing Start/Stop lifecycle (Start on boot, bounded-during Stop) and wires the events-bus sink so emitted `KindJobRun` / `KindJobError` events reach the bus subjects the rest of the system already listens on.\n\nThis is the last bead before the epic's acceptance scenario — daily-status-summary cron, persists across restarts, dangerous commands refused — is end-to-end runnable by a fresh operator.","acceptance_criteria":"- `engine.Start` called during daemon boot, with the configured interval.\n- `engine.Stop(ctx)` called during daemon shutdown, bounded by the same grace deadline the rest of the daemon uses (matches `taskrun`/workflow engine shutdown pattern).\n- `scheduling.Sink` adapts to the events bus emitter so dashboard / dashboard timeline surfaces running and failed jobs with the same `Kind`/`Detail`/`Data` shape the rest of the system uses.\n- With all four sibling slices landed, the parent epic acceptance ('a daily-status-summary cron job can be created, persists across restarts, dangerous commands are refused') is exercisable end-to-end.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:45Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:45Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.6","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:45Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.6","depends_on_id":"archie-core-1786637496320-249-be6d9a20.1","type":"blocks","created_at":"2026-08-27T14:35:39Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.6","depends_on_id":"archie-core-1786637496320-249-be6d9a20.2","type":"blocks","created_at":"2026-08-27T14:35:41Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.6","depends_on_id":"archie-core-1786637496320-249-be6d9a20.4","type":"blocks","created_at":"2026-08-27T14:35:41Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.6","depends_on_id":"archie-core-1786637496320-249-be6d9a20.5","type":"blocks","created_at":"2026-08-27T14:35:42Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":4,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.5","title":"Cron configuration block: [scheduling] in config.example.toml with EngineConfig translation","description":"Operator input for the cron/scheduling slice: a `[scheduling]` block in `config.example.toml` (`interval`, `max_parallel`, `job_timeout`, `events_sink`) plus a translation layer in `internal/infrastructure/configuration` that produces the `scheduling.EngineConfig`.\n\nWithout this, the engine has no path from operator input to runtime. The translator is the bridge the wiring slice then hands to `internal/app/archied/`.","acceptance_criteria":"- `config.example.toml` shows a `[scheduling]` block with all four fields and their default behaviour on zero values (mirrors `scheduling.Default*` constants).\n- Configuration translator yields a fully-resolved `scheduling.EngineConfig` with documented defaults applied; negative values are validated and surface as a startup error, not a panic.\n- Sink plumbing produces a concrete `scheduling.Sink` from the events-bus emitter; absent sink leaves `Events` nil, which the engine already documents as a valid (unobservable) configuration.","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:43Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:43Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.5","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:43Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.4","title":"Cron lifecycle guard: reject dangerous commands at job creation","description":"Slice 4 of the cron/scheduling epic (archie-core-1786637496320-249-be6d9a20). The epic's third acceptance criterion verbatim: 'Dangerous commands are rejected at creation time.'\n\nGuards both runners from the previous slice: ChatCourier (whose body could include shell-shaped payloads) and WorkflowTask (whose shell-step is a documented footgun). Rejection happens at job creation, not at tick time, so a refused job is visible in the store with a refusal reason and never reaches the ticker engine.","acceptance_criteria":"- Rejects job specs whose target body includes any of: `archied` restart, `systemctl`, `launchctl`, `pkill`, `mkfs`, `dd`, `shutdown`, `reboot`.\n- Rejection reason is recorded on the refused job and surfaced through the gateway / dashboard; the job is not written to the store.\n- One named rejection function both the CLI and gateway paths call, so adding a new dangerous token does not require touching every UI surface.\n- False positives are deliberate — the list over-broadens then narrows by operator feedback. Cost of accepting a dangerous command vastly exceeds the cost of a refused one.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:40Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:40Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.4","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:40Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.4","depends_on_id":"archie-core-1786637496320-249-be6d9a20.1","type":"blocks","created_at":"2026-08-27T14:35:44Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.3","title":"Cron blueprints: parameterised templates with typed slots and form schemas","description":"Slice 3 of the cron/scheduling epic (archie-core-1786637496320-249-be6d9a20). The authoring surface: predefined templates with typed slots (time, enum, text, weekdays — each with their validators) that gate the gateway and CLI creation forms.\n\nDaily status summary is the headline blueprint. An author without a blueprint can still create a job directly, but the gateway form is the recommended surface for non-trivial jobs.","acceptance_criteria":"- A small registry of built-in blueprints (daily-status-summary at minimum; weekday-pickable and time-pickable are sufficient for headline coverage) exposed to gateway and CLI form renderers.\n- Typed slot definitions (`time`, `enum`, `text`, `weekdays`) with a generated form schema suitable for the gateway chat-form surface.\n- Template renderer fills slots from a validated values map; missing or wrong-typed slots reject the job at creation, not at next tick.\n- Adding a new blueprint is data, not code, and the gateway / CLI form reflect added blueprints without a rebuild.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:38Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:38Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.3","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:38Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.3","depends_on_id":"archie-core-1786637496320-249-be6d9a20.1","type":"blocks","created_at":"2026-08-27T14:35:42Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.2","title":"Cron delivery runner + router: dispatch due jobs to chat/task targets","description":"Slice 2 of the cron/scheduling epic (archie-core-1786637496320-249-be6d9a20). Implements `scheduling.Runner` and the router that picks one runner per job kind.\n\nWithout this slice, the ticker engine has no work to dispatch. Concrete target types to ship: ChatCourier (sends a templated message through the existing channel-agnostic `channels.Channel` gateway, so the channel choice stays the operator's, not the cron's) and WorkflowTask (submits a `workintake` envelope so the existing task lifecycle owns scheduling, retries, gates, and PR opening).\n\nJob store is a hard prerequisite. Composition wiring and lifecycle guard block the wiring slice, not this one.","acceptance_criteria":"- At least two `Runner` implementations: `ChatCourier` (renders the job's templated body through the channel layer) and `WorkflowTask` (submits a `workintake` envelope carrying the cron identity and body so the existing workflow domain runs the rest).\n- A `Router` that maps `Job.Kind` to a Runner; an unrecognised kind emits `KindJobError` `phase=\"dispatch\"` and is otherwise a no-op — refused at the gate, not silently dropped.\n- Every Runner honours `ctx.Done()` so the engine's bounded shutdown actually drains in flight.\n- The epic's headline scenario ('daily status summary') is exercisable end-to-end through the ChatCourier runner with a hard-coded template; the blueprints slice replaces this with parameterisation.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:35Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:35Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.2","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:35Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-1786637496320-249-be6d9a20.2","depends_on_id":"archie-core-1786637496320-249-be6d9a20.1","type":"blocks","created_at":"2026-08-27T14:35:43Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-1786637496320-249-be6d9a20.1","title":"Cron job store: per-profile JSON with cross-process file locking","description":"Slice 1 of the cron/scheduling epic (archie-core-1786637496320-249-be6d9a20). Implements the durable job store: one JSON file per profile at the conventional path, CRUD operations, and cross-process file locking so a CLI edit and a daemon writer don't corrupt each other.\n\nThe ticker engine (internal/domain/scheduling) consumes this through its `JobSource` interface. The store's only contract with the engine is `Due(ctx, now) -\u003e ([]Job, error)` — the engine applies no schedule arithmetic of its own, so the store owns cron expressions, fixed intervals, and catch-up windows.","acceptance_criteria":"- One JSON file at the conventional per-profile path (`\u003cconfig_dir\u003e/cron/jobs.json` or equivalent). Schema is durable and version-stamped for forward compatibility.\n- Create / read / update / delete by job ID with merge semantics that preserve fields not in the patch.\n- Cross-process file lock (`flock` or OS equivalent) makes concurrent CLI+daemon writers serial; last-writer-wins is documented as the conflict policy.\n- Implements `scheduling.JobSource` so the ticker engine can poll it without knowing the file layout or format.\n- A truncated/partial-write file is not a panic: open returns an explicit error the engine surfaces as `phase=\"source\" KindJobError` rather than crashing the loop.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-27T14:34:32Z","created_by":"Sam Catlow","updated_at":"2026-08-27T14:34:32Z","labels":["enhancement"],"dependencies":[{"issue_id":"archie-core-1786637496320-249-be6d9a20.1","depends_on_id":"archie-core-1786637496320-249-be6d9a20","type":"parent-child","created_at":"2026-08-27T14:34:32Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":4,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-h019.8","title":"Operator-triggered PR review with selectable reviewer model","description":"Expose the reviewer as a channel-neutral application capability that can review an existing pull request on operator request. The Web UI should offer a Review PR action as one adapter; chat/Telegram and future channels must invoke the same command rather than duplicating review behavior. The operator can configure or select the reviewer model independently from planner/builder models. Reuse the reviewer epic's fresh-context, read-only snapshot, structured findings, calibration, and visibility contracts.","acceptance_criteria":"A channel-neutral review command accepts a repository and PR identity, launches the approved isolated reviewer path, and returns/persists structured findings; Web UI exposes Review PR; at least one non-Web-UI channel can invoke the same command; reviewer model is configurable independently with a safe default; authorization and duplicate/concurrent review behavior are deterministic; findings and review status are visible without requiring raw logs.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-08-24T18:08:58Z","created_by":"Sam Catlow","updated_at":"2026-08-24T18:09:03Z","external_ref":"https://github.com/samcharles93/archie-core/issues/636","dependencies":[{"issue_id":"archie-core-h019.8","depends_on_id":"archie-core-h019","type":"parent-child","created_at":"2026-08-24T18:08:58Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-atv2","title":"liveReply fallback lines appended after finalize are never rendered","description":"A media delivery that fails AFTER doFinalize has run appends its fallback line to l.toolLines and calls requestRender(), but stopRendering() has already closed renderDone and the renderer goroutine has exited. requestRender is a non-blocking send into a cap-1 channel with no consumer, so the line is dropped and the finalized Telegram message stands unchanged.\n\nMedia is fire-and-forget with a 30s budget while the turn's text finishes far earlier, so this is the NORMAL case for a large upload: a 40MB document that 400s or times out reports 'could not send x' into a slice nothing reads. Pre-dates the local-file work (URL fallbacks have the same hole) but archie-core-absb's guarantee that non-delivery is always visible depends on it.\n\nFound by adversarial review of 9a45fbb. internal/channels/telegram/live.go:419-437 with :498-532.\n\n## Acceptance Criteria\nA media failure occurring after the live reply has finalized still reaches the user -- e.g. as its own follow-up message rather than an edit to a message nothing re-renders. Covered by a test that finalizes first and fails the send second.","status":"open","priority":2,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-08-24T15:54:42Z","created_by":"Sam Catlow","updated_at":"2026-08-24T19:49:41Z","external_ref":"https://github.com/samcharles93/archie-core/issues/646","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-h3lg","title":"Dashboard swallows failed operator actions, showing nothing in the UI","description":"When an operator action fails, the dashboard surfaces nothing. Pressing Stop on a running task issued POST /api/tasks/3/action, received 403, and the only evidence anywhere was a browser console line: \"Failed to load resource: the server responded with a status of 403\". The page itself showed no error, no toast, no change of state -- the button simply appeared to do nothing.\n\nThis is how archie-core-440c (every dashboard mutation 403s behind a TLS-terminating reverse proxy) went unnoticed: the operator pressed Stop, saw nothing happen, and reasonably concluded the task was unstoppable rather than that the request had been refused. The bug was only found by opening devtools.\n\nConfirmed live 2026-08-25 while signed in to the production dashboard.\n\n## Why this is its own bead\n\n440c fixes the 403. This bead fixes the fact that ANY failed action is invisible -- a 500, a store failure, a refused state transition, an expired session -- and each of those has its own way of going wrong. Fixing only 440c leaves the next failure equally silent.\n\nNote internal/webui/api_tasks.go already returns distinguishable, human-readable failures (\"missing CSRF header\", \"cross-origin mutation refused\", \"runtime task control is unavailable\"). The server side is doing its job; the client discards it.\n\n## What is needed\n\n- A failed action tells the operator it failed, in the UI, with the server's reason where one is given.\n- The distinction that matters most: refused (403, bad state, not permitted) versus broken (5xx, network). The operator's next move differs -- the first is \"you cannot do that\", the second is \"try again or check the daemon\".\n- A 401 or an expired forward-auth session should prompt re-authentication rather than reading as a generic failure, since the deployment sits behind Authelia.\n- The optimistic UI must not show an action as applied when it was refused.\n\nPer CLAUDE.md the frontend is one folder per feature under ui/src/\u003cfeature\u003e with shared primitives in ui/src/base -- error surfacing used by more than one feature belongs in base, extracted on the SECOND real consumer, not in anticipation. Remember ui/dist is committed: run `task ui` and commit the rebuilt output in the same change.\n\n## Steps to Reproduce\n\n1. Load the dashboard in a deployment where mutations fail (any 440c-affected proxied deployment reproduces it directly).\n2. Press Stop, Retry, Abandon or Archive on a task.\n3. Observe the request fails in devtools while the page reports nothing.\n\n## Acceptance Criteria\n\nA failed operator action is reported in the dashboard with the server's reason where supplied; refused and broken failures are distinguishable to the operator; an authentication failure prompts re-auth rather than a generic error; no optimistic state change survives a failed request; dashboard tests cover a refused action, a server error and a network failure; ui/dist is rebuilt and committed.\n","status":"open","priority":2,"issue_type":"bug","owner":"sam@catlow.tech","created_at":"2026-08-24T15:49:18Z","created_by":"Sam Catlow","updated_at":"2026-08-24T15:50:15Z","external_ref":"https://github.com/samcharles93/archie-core/issues/629","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
|
||||
@@ -222,57 +222,6 @@ The final migration plan must order:
|
||||
Each legacy package requires objective removal criteria. No compatibility path
|
||||
may become an indefinite second implementation.
|
||||
|
||||
### 9. Provider/chat SDK migration — ai-sdk to goai
|
||||
|
||||
**DECIDED:** replace `github.com/samcharles93/ai-sdk` with
|
||||
`github.com/zendev-sh/goai` at the provider/chat boundary. Trigger:
|
||||
`ai-sdk/provider/openai` hardcodes `http.Client{Timeout: 5 * time.Minute}` as
|
||||
the fallback whenever `runtime.ProviderConfig.Timeout` is unset
|
||||
(`runtime/builtin.go:283-288`), and archie-core's only construction site,
|
||||
`internal/agentexec/runtime.go:14`, never sets it. A slow-but-alive router
|
||||
response (observed: `openai/gpt-5.6-luna`, build stage, task 4/issue #648,
|
||||
2026-08-25) is killed client-side at exactly 5 minutes regardless of the
|
||||
configured `[budgets] wall_clock` (60m) or container `max_uptime` (60m), and
|
||||
surfaces indistinguishably from a real budget timeout as `stop_reason:
|
||||
"timed_out"`. This is a design defect in ai-sdk's provider layer, not a
|
||||
config mistake: the failure mode is invisible until it fires, and nothing in
|
||||
`config.example.toml` exposes a knob to prevent it. `goai` does not have this
|
||||
class of bug — `options.go:75-76`'s `Timeout` is applied only when explicitly
|
||||
set (`generate.go:736,1198,1308`); with no override it defers entirely to the
|
||||
caller's `context.Context` deadline, which is what archie-core's own budget
|
||||
system already assumes everywhere else.
|
||||
|
||||
**Scope — DECIDED:** the swap is the provider/chat boundary only:
|
||||
`internal/agentexec`'s construction of the model runtime and any direct
|
||||
`ai-sdk/core`, `ai-sdk/chat`, or `ai-sdk/runtime` call sites. It is NOT a
|
||||
workflow-engine swap. `internal/domain/workflow` (stage routing, TDD /
|
||||
feasibility / bootstrap workflows, the gate-and-park model, worktree
|
||||
integration) stays exactly as designed and does not move to zenflow or any
|
||||
other third-party workflow product — that logic is bespoke to how archied
|
||||
runs tasks and a third-party DSL would be a net loss of control for no
|
||||
identified payoff. Do not reopen this without contradictory evidence.
|
||||
|
||||
**Still open — must be decided before implementation starts:**
|
||||
|
||||
- Reimplementation of the gate mechanism (`ai-sdk/agentloop/gate.go`'s
|
||||
mutating-tool-wrap + consecutive-failure-park pattern) on top of goai's
|
||||
hook system (`hooks.go`: `OnRequest`, `OnResponse`, `OnToolCall`,
|
||||
`OnBeforeToolExecute`) — goai has no packaged equivalent to
|
||||
`agentloop`'s `WallClock`/`MaxSteps`/park-on-fail loop; that orchestration
|
||||
becomes archie-core's own code sitting directly on goai's generate/hook
|
||||
primitives.
|
||||
- Provider parity check: every provider currently configured in
|
||||
`config.example.toml` / live deployments (openai, ollama, and whichever
|
||||
`[providers.*]` entries exist per-operator) must have a goai equivalent
|
||||
before cutover.
|
||||
- Cutover shape: whether `internal/agentexec` supports both SDKs
|
||||
side-by-side during migration (dual-path, selected per provider or
|
||||
globally) or cuts over in one change once the gate reimplementation is
|
||||
proven in tests.
|
||||
- Deletion criteria for the `ai-sdk` dependency and any code that only
|
||||
exists to work around its behaviour (e.g. once this lands, revisit whether
|
||||
a `Timeout` field belongs on `agentexec.Provider` at all, or whether goai's
|
||||
context-deadline-only model makes it unnecessary).
|
||||
|
||||
## Completion criteria
|
||||
|
||||
|
||||
Reference in new issue
Block a user