Keep pre-token preflight metadata-only and state what it cannot check. A verified collector can now report a definite URL rejection; unclassified and older exits still stop safely without guessing why or exposing the child output.
Refs #4748
Contract-Neutral: Deployment-installability and security-privacy are unchanged: preflight sequence, installer exits and event identities, TLS and URL admission, signature verification, credentials and redaction keep their existing contracts. Agent-lifecycle records the validator exit classification.
Change-source: pulse-maintainer
Docker operators need to diagnose service failures and change one image
without losing the source that owns a running application. Bind approved
updates to the registered Compose file or Git base, then show the running
image and fresh HTTP evidence after rollout. Keep log access opt-in, mute
container alerts per runtime, and connect the Docker installer and demo
to the application workflow.
Community installs already stored 90 days of daily metric averages and
366 days of availability history, but the chart, availability and agent
history reads refused anything past seven days, and lapsed paid installs
had history past seven days purged 60 days after a downgrade. Locking
users out of data on their own disk is the kind of limit that drew the
loudest complaints before (the monitored-system cap, SSO), and it is not
what people pay for: 12 of 88 covered paid installs read past seven days
in the last 30 days.
The history routes now serve every supported range on every plan, and
storage retention alone decides how far back the answer goes.
long_term_metrics moves into Community as a compatibility key with no
upgrade reason. TierHistoryDays, max_history_days and the downgrade
purge (DowngradeRetentionState, the metrics store commercial ceiling and
the generated-report purge) are removed, so nothing deletes history or
reports because a plan ended. The chart and drawer lock panels, the
history plan link, the billing summary row and the plan copy that sold
history go with them. Paying users lose nothing.
The public pricing pages and licence server copy in pulse-pro change
when the release carrying this ships.
Validate repeated root and destination members before resolving observer credentials. Preserve singleton aliases, explicit transport and provisioning choices, and saved primary authority on refusal and correction. Keep the pending hosted lifecycle candidate separate.
Change-source: pulse-maintainer
The update read the pull progress stream and threw it away. The daemon
reports most pull failures (rate limits, denied access, missing
manifests) inside that stream, and a pull cut off by its two-minute
timeout just ends early, so a failed pull went on to stop the container,
recreate it on the old image and report a verified update.
Read the stream to its end and fail the update on a reported error, a
broken stream or an expired deadline, before anything is stopped. Give
the pull its own eight-minute limit so large images on slow links can
finish inside the fifteen-minute update window.
When the pulled tag resolves to the image the container already runs,
refuse with image_unchanged instead of restarting the service for
nothing.
Name each step that stops an update before any change with a typed
reason code (inspection, precondition, image pull, unchanged image,
stop, rename). Field telemetry showed every pre-change failure from
current agents counted as "uncoded", which reads as agents awaiting the
typed refusal vocabulary. The new codes fill the existing prerequisite
and target_changed counters, so the telemetry schema is unchanged.
A failed stop or rename call is no longer taken as proof that nothing
changed, since the daemon may have acted before its response was lost.
The container is read back: a stopped or renamed original gets its name
back and is started again, and the result reports that as a rollback and
whether it worked.
The live Compose integration test now starts its services on an older
image under the tag the update pulls, so each update is a real image
change, and checks that a second update is refused as unchanged without
restarting the container.
Share admission between the portal precheck and authoritative insert. Preserve explicit local MSP plans, refuse absent or withdrawn billing before provisioning writes, and keep completion from overwriting cancellation. Store withdrawn Stripe states distinctly from grace and exercise provider compatibility, final admission races and multi-registry ceilings.
Contract-Neutral: The provider proof command passes its existing configured MSP mode/plan explicitly; deployment and installability behavior is unchanged. The actual workspace-admission contract delta is documented in cloud-paid with executable verification.
Change-source: pulse-maintainer
A replay graded a correct conclusion on fault P4 "Handed back": it said
the guest stopped "with no corresponding entry in the Proxmox task log",
which is the decisive fact, but the rubric only took phrases such as
"no stop task" or "died". P4 v2 also accepts the wordings Patrol used
across the stored runs for "no Proxmox task stopped it".
The scorecard regraded stored runs with the manifest they ran under, so
a rubric change never reached them, though the runbook said it would.
It now grades a run by the catalog's newer rubric when that version
changed nothing but its outcome, and says so under the table. Regraded,
every stored P4 run keeps its grade except that one, now Handed over.
The fault set only covered Docker, so nothing measured Patrol on the
platform most Pulse installs monitor. pve-v1 adds four replayable faults
on a dedicated Proxmox node: a container a person stopped (must stay
quiet), a container disk filled from one folder, a storage filled with
old backups of one guest, and a container that died (start it).
The proxmox driver only writes to a node that carries the lab marker and
to guests marked as fixtures, records every file it writes, and requires
a no-op second cleanup and an unchanged guest and backup inventory.
Two things the first live runs showed are built in. Disk and storage
probes read Proxmox's own used and total, because df's Use% counts
reserved blocks and left a fill short of Pulse's alert threshold. Patrol
keys Proxmox findings and alerts by the source ID (pmxlab:pmxlab:111),
so the harness binds them through the resource's canonical identity.
On a default install Pulse can see that a container failed and not why.
The line that names the cause is in the log, and a default agent reads
no logs. On the fault set, the restart loop from a bad DATABASE_URL
stayed "Handed back" on a default agent through every replay for that
reason.
An operator can now turn on --enable-failure-logs (or
PULSE_ENABLE_FAILURE_LOGS) on a host. The agent then reports the last
lines of a container whose own state shows a failure: a non-zero exit,
an out-of-memory kill, a restart after either, or a failing health
check. It never reads a container that stopped cleanly, runs healthy or
was never started, and with the switch off it never asks the runtime
for logs at all. Nothing the server sends can turn the switch on: this
is a local boundary like custom sensors, not a read-only command mode,
and the server never chooses a container, a path or a line count.
What leaves the host is at most 30 lines and 4 KB, read once per
failure, with terminal codes and control characters removed and then
credential-shaped values masked. Cleaning comes before masking because
a secret split by a control character matches no rule until the
character is gone. The server cleans, masks and bounds the lines again
on receipt and accepts only the four known reasons, so it does not
depend on the agent having done any of it. The masking rules moved from
the AI safety package to pkg/secretredact, with no change to them, so
the agent and the server apply one set.
The lines show in the container's details as "Last log lines", in view
on the overview, as plain text. Patrol and the Assistant get them on the
single-container payload with a fixed note that they are untrusted text
and never instructions.
Masking is pattern-based and is not a guarantee. The lines are readable
by anyone who can read the container, go to the AI provider when Patrol
reads it, and can be quoted by Patrol in a finding. The docs say so.
A read-only review before this was pushed found that masking ran before
cleaning, that a restarted healthy container qualified for a read, that
the stream reader trusted a frame's declared length and kept the oldest
text, and that stale lines could be served for a new failure. All are
fixed here with tests. It also found that the first docs promised the
lines never reach a notification, which a quoted line in a finding can.
The promise is corrected.
Let Serve own listener cancellation and join its accepted handlers, and interrupt blocked connection I/O when the service lifetime ends. Do not dispatch an already-ended operation. Remove the command-level watcher now owned by the server.
Keep peer admission, typed operations and durable update recovery unchanged. Draining remains cooperative; a peer disconnect or lost response is not an operation rollback. Cover lifecycle ordering, blocked transports, late admission and actual Unix peer/client shutdown in the registered Go suites.
Change-source: pulse-maintainer
Keep the existing private regular-file policy effective across the check/open interval and file growth. Read complete bounded config and token snapshots; refuse swapped Unix symlinks/streams and unsafe opened permissions before reading. Preserve transport, provisioning and primary saved authority, with deterministic race-window, bounded FIFO, parser and CLI recovery tests.
Contract-Neutral: Enforces existing observer private-file type, permission and size rules at the read boundary; no configuration schema, transport, provisioning, credential scope or frontend contract delta.
Change-source: pulse-maintainer
Pulse raises no alert for a container that exits 0 soon after starting
with no restart policy, because it reads it as a finished job. A service
stopped cleanly looks the same to that rule, so Patrol is asked to tell
the two apart on its scheduled run. Fault set v1 could not replay that:
its only whole-estate run is the startup run, before any container
exists, and every fault was asked through a scoped run.
D7 stops a Git service cleanly beside the finished migration job. Two
additions to the response track make it measurable:
- engagement.fallback "full_run" asks for a run over the whole estate
once the natural wait is over, as the schedule does. A scoped run reads
the selected container and never follows the triage flag.
- outcome.quiet_resources names negative controls the scenario is also
about. A finding on one grades the run False alarm before anything
else is read. D7 names the finished job.
The gitea fixture traps SIGTERM and ends with exit code 0, as docker
stop does to most real services.
First live runs, Sonnet, one per profile: each whole-estate run raised
two flags, reported the service and left the job alone. The default
agent handed it over, and with commands on Patrol started the service
and Pulse verified it. The next-step terms were widened after the first
run: copied from the crashed worker, they missed "restart the gitea
container".
Scores from before this change are out of 6.
Use the existing pre-parse no-follow boundary for startup and periodic hostname/config reads, preserving TLS, signatures, local authority and fallback. Share it with the already protected host consumers and bind real report closure, startup, refresh and same-credential recovery to registered regression proof.
Change-source: pulse-maintainer
Distinguish dangling saved-file and relocated-directory links from genuine first-run absence. Stop before replacement authority, retain linked state and explain how to restore its target. Extend registered reader, enrollment and trusted-TLS startup coverage while keeping live links and explicit configuration compatible.
Change-source: pulse-maintainer
Reject non-regular and oversized saved token/identity files without fallback, replacement state or waiting on Unix FIFOs. Preserve linked read-only secrets, relocated state and configured-ID precedence; cover private refusals, state-safe recovery, complete reads and boundary-size identity persistence.
Change-source: pulse-maintainer
Keep explicit flag and environment IDs authoritative in read-only Kubernetes/OpenShift deployments. Require saved confirmation only for identities selected from disk or derived locally, while preserving canonical enrollment persistence, confinement and credentials. Cover no-state restarts, optional-save failures, derived-ID refusal and matching read-only controls.
Change-source: pulse-maintainer
Stop before enrollment and authenticated consumers when an agent ID write fails and the saved file cannot confirm the selected identity. Keep matching read-only IDs usable without forcing permission changes. Cover refusal, state-preserving recovery, consumer identity and verified TLS, and record the lifecycle and privacy obligations.
Change-source: pulse-maintainer
The containing native job references a Proxmox test helper excluded by !windows and treats mode0000 as Unix unreadability on Windows, where it actually prevents replacement. Give enrollment its own all-platform adapter and retain every explicit-ID consumer and restart assertion with a writable Windows destination. Unix read obstruction remains unchanged.
Contract-Neutral: Tests only; correct Windows helper availability and fixture permission semantics without changing enrollment, identity persistence, credential/TLS policy or any production source.
Change-source: pulse-maintainer
Require a complete bounded HTTP 200 reply with usable runtime authority before saving it. An invalid success may follow a consumed one-use bootstrap exchange, so retain state and return uncertainty rather than exchanging again. Keep response bodies and raw body-read errors out of enrollment diagnostics while preserving status policy, backoff and TLS trust.
Change-source: pulse-maintainer
The trusted-HTTPS startup fixture must pass --cacert, the existing CLI flag, rather than fail flag parsing before exercising enrollment persistence.
Contract-Neutral: Correct the enrollment HTTPS fixture argv; production behavior and subsystem contracts are unchanged.
Change-source: pulse-maintainer
Require saved runtime credentials and canonical identity before releasing enrolled authority to agent startup. Treat local persistence failures as terminal without replaying bootstrap exchange, retain any saved runtime token, and gate explicitly selected identity files as well.
Change-source: pulse-maintainer
Model hostname lookup before remote configuration and assert both authenticated requests. Keep temporary state explicit for the existing fixture ownership guard, without changing production startup or its timing bounds.
Change-source: pulse-maintainer
Stop before deriving or publishing a replacement identity when the selected saved agent ID cannot be read. Keep first-start derivation, explicit overrides and local validation probes unchanged, with actual-file and authenticated-consumer regression coverage.
Change-source: pulse-maintainer
Distinguish an absent implicit instance token from a failed read, preserving optional startup for missing or readable-empty files and every higher-priority credential source. Return an actionable path-free error before modules start, without modifying saved state. Cover resolver and real flag-loader states and update the agent-lifecycle and security-privacy contracts.
Change-source: pulse-maintainer
Some platforms classify a non-directory ancestor as a missing path. Exercise unknown-state refusal only when the actual filesystem error is distinct from absence; preserve the same production error classification everywhere.
Change-source: pulse-maintainer
Distinguish unreadable enrollment state from a missing runtime credential in configuration loading, pre-module enrollment and the legacy host enrollment loop. Stop before bootstrap fallback, exchange or state replacement, with a path-free actionable error. Preserve first enrollment, readable empty files and saved-token restarts.
Contract-Neutral: Local saved-state error classification only; no wire, persistence-format, authentication-scope or UI contract change.
Change-source: pulse-maintainer
Pulse could start, stop or restart a Proxmox guest only through a
separately enrolled action runner. Getting one takes five steps, needs
HTTPS and turns command access off on the node. So when a container
died, Patrol handed it back even on a node whose owner had ticked
"Allow Pulse to run commands on this host".
A node's own Pulse agent can now start a stopped guest, after an admin
approves. It starts and does nothing else: stop, shutdown and reboot
stay with the action runner, refused on an agent session by the server
gate, by the executor and by the agent itself.
The agent could not run a typed command at all. Its transient systemd
unit was bound to the runner's service, used the runner's state
directory and started a launcher only the runner binary serves. The
collector now serves that launcher for its own catalog (the containment
probe, a status read and a start), binds the unit to its own service and
uses its own state directory. Every other unit property is the
runner's. The runner's path is unchanged.
The server decides from what the agent reports at registration, never
from a version. The agent reports it only with commands enabled, as
root, running as pulse-agent.service on a Proxmox node, with durable
receipts and a passed containment probe. Otherwise it gives a closed
reason and Pulse says which it is: commands off, agent too old, not a
systemd service, or containment not set up.
A start an agent session ran is confirmed only by Pulse's own Proxmox
check. The agent's readback stays as evidence and no longer confirms.
No installer change, no default change, no new scope, no telemetry.
Patrol's Phase 1 score (5 of 6 seeded faults resolved with a
command-enabled agent, 1 of 6 on a default install) came from hand-run
rig scripts. Each Phase 2 change is to be scored again on the same six
faults, so the set has to be something anyone can replay and get the
same table from.
The qualification harness gains a fourth track, response. A response
run lets Pulse collect a healthy lab, injects one real fault and then
only observes: whether Patrol woke by itself or had to be asked (read
from the trigger reason of the Patrol run that first reported the
finding), which agent profile Pulse reports for the host (commands on,
or the default with commands off), what the investigation concluded, and
whether the scenario's own governed fix ran, was verified by Pulse and
was confirmed by the lab oracle. The result is an outcome grade (Fixed,
Handed over, Partial, Handed back, Quiet, Not looked at, False alarm)
decided from that structured state and scenario-owned terms. Nobody
reads a conclusion to grade it.
D1 to D6 are six scenarios on one shared six-service stack. The fixtures
are reviewed driver code with real image and container names, because a
lab that looked like a test changed how the model behaved. They are
limited to a private Docker daemon, and a build never replaces an image
it did not build. The host disk fault writes only below an operator-named
dedicated mount of bounded size and removes exactly what it wrote.
The Phase 1 runs are checked in as stored evidence. A test requires the
grader to give them the grades a person gave them, which is the check
that the rubric measures what the hand-made scorecard measured.
patrol-qualify -mode fault-set replays the set for one agent profile and
prints the scorecard. Response runs stay out of live-suite, model
comparison and community evidence export: a valid run is not a pass.
Substring version checks admitted stale agents and dependency literals, while
ARMv6 executables could select ARMv7 updates. Share compiler target and exact
release identity admission across producers, downloads and activation, and
keep validated local downloads bound to their open file descriptor.
Cover bounded runtime probes, failure atomicity, canonical executable formats,
ARM emulation and saved-state installer repair boundaries. Retain the installed
ARM fleet and physical-device gap, and leave release qualification open.
Reuse private destination-validation errors in host enrollment and replace Docker URL echoes with destination indices. Admit the unified agent's existing primary URL policy before logging, clients or saved-state writes. Preserve the updater's local self-test behavior and cover saved credentials, rejected inputs and accepted transport with registered Go tests.
Contract-Neutral: Implement the already-declared safe URL diagnostic boundary before runtime side effects, without changing accepted transport, authority, wire data or configuration formats. Human-held subsystem contract files are unchanged.
Change-source: pulse-maintainer
/msp and the guide promise that without a valid lease a provider's clients
fall back to Community behaviour and core monitoring keeps running. In fact
the hosted gate treated them as Pulse Cloud subscribers and returned 402. A
client whose container could not renew its one-day lease locked about a day
after creation, licensed or not: private-address DNS, the runtime's refusal
of private addresses, no NAT hairpin or a filtering firewall all do it.
The control plane now marks its clients, and a marked runtime opens the
workspace it was provisioned for. Capabilities still come only from a
verified lease, and organization routes and further organizations stay
gated, so nothing paid is granted. Pulse Cloud keeps the 402.
Renewal also stops depending on the host's network. Traefik answers the
portal's name on a client's isolated network, and a runtime with a configured
control plane accepts that private address. Older runtimes refuse private
addresses and upgrade.sh leaves them in place by default, so the name is
given only to runtimes whose image declares they can use it.
Checked on a lab VM with a release-tagged build and a private-address domain:
a client with an expired lease renewed; one created with no licence opened and
accepted an agent report.
The agent findings provider methods now take the request organization, so the cmd/pulse-mcp fleet test double must match or the package fails to compile.
Contract-Neutral: Test fixture only: the pulse-mcp findings fake follows the org-scoped AgentFindingsProvider signature.
Windows native CI fails the read-only admission test because os.Chmod cannot express Unix 0750/0600 there. Capture the actual pre-admission directory and file modes and assert they remain unchanged, alongside contents and file inventory, on every platform. Runtime URL, credential and installer behaviour is unchanged.
Contract-Neutral: Test-only native permission baseline; no runtime or public contract change.
Change-source: pulse-maintainer
Defer the environment-token read until ordinary configuration resolution. Prove the URL-only path never reads it, ordinary startup retains its fallback, and unsupported or unexecutable validators refuse before admission.
Contract-Neutral: The existing read-only URL admission contract is unchanged; defer an unused credential default and cover its no-read and fail-closed boundaries without changing startup permissions or installed state.
Change-source: pulse-maintainer
Use the verified staged agent's production primary URL policy before changing services, installed binaries, saved credentials or safe-profile authority. The URL-only mode performs no credential reads, enrollment, logging or state writes. Unsupported or unexecutable validation fails closed, and TLS bypass never becomes plaintext consent.
Contract-Neutral: No deployment-installability or security-privacy contract delta: this enforces the existing agent URL/HTTPS policy before Unix replacement, without new transport permissions, service profiles or installation routes. The owning agent lifecycle contract and real-CLI installer regressions are included; the shared deployment contract remains untouched while human PR3756 holds it.
Change-source: pulse-maintainer
Guard standard clients without mutating caller policy or transport. Apply the same boundary to manifest discovery, capabilities, workflow activity and MCP event streaming so tokens and replayable bodies do not follow off-origin redirects. Preserve same-origin requests and report a fixed final-base-URL diagnostic.
Change-source: pulse-maintainer
Keep restored collectors running after helper rollback with their error
status. Require typed post-replacement restart failure before handing over
to the service manager. Sync executable bytes and mode before an atomic
POSIX replacement and apply the same barriers to persistent copies.
Make helper startup evidence authoritative, including an explicit absence,
so recovered and later helper starts cannot consume stale local markers.
Carry updater evidence through the canonical agent facet and host snapshot
with owned status and timestamp copies for fleet diagnostics.
Keep fleet diagnostic rows keyed by connection identity so refreshed
update evidence does not discard an open disclosure or its keyboard focus.
Project command and runbook history from typed, kind-specific facts instead of trusting metadata key names or trimming stored reason strings. Preserve canonical evidence and existing executor/session reads; cover ordinary builders, malformed legacy values, authenticated concurrent HTTP and the real MCP text/structured consumer.
Change-source: pulse-maintainer
Let the authenticated context and notification proof reach the actual scoped response instead of stopping at durable request validation.
Change-source: pulse-maintainer
Withhold full canonical results from tokens without command-disclosure authority. Return an explicitly redacted, content-free outcome summary without rewriting evidence or collapsing execution, verification and compensation truth. Scrub legacy error suffixes and verification notes, preserving known refusal prefixes and full authorized reads.
Change-source: pulse-maintainer
Replace remote-script pipelines and quarantine bypass advice with published-release and exact-asset verification, local review, and a matching binary version pin. Exercise each download/verification failure without running the saved installer.
Contract-Neutral: Existing MCP installation and signature behaviour is unchanged; this corrects operator guidance and tests its fail-stop download recipe.
Change-source: pulse-maintainer
The README mentioned the MCP adapter in one unlinked sentence under Optional AI checks, which read as part of bring-your-own-model Patrol. It now has its own line saying what an agent can ask and linking the pulse-mcp quick start, and the pulse-mcp introduction leads with the read-only questions a monitoring-read token answers before the governed actions.
Agents could read current values and, since list_recent_changes, what
changed, but not how a resource's metrics moved: whether a disk filled
gradually or suddenly, whether memory climbed before a restart. Pulse
records that history for its own charts.
get_metric_history (GET /api/agent/metric-history, monitoring:read,
on the Pulse MCP surface) takes the canonical resource id the other
agent reads return, resolves the resource's metrics target through the
registry, and delegates to the chart history read. Agents and charts
therefore share tiers, fallbacks, downsampling and the licensed history
limit: a window beyond it returns the same license_required error.
The history route now accepts the registry's Kubernetes target kinds
(pod, k8s-cluster, k8s-node, k8s-deployment) as the k8s store type.
The frontend translated them client-side; any other caller passing a
target through got a 400.
An agent holding /api/agent/events open heard about findings, approvals
and action completions, but not about the facts it most often has to
react to: an alert firing or clearing, or a resource going down. Pulse
already records those as resource changes that list_recent_changes
reads; this publishes them live as alert.fired, alert.resolved and
resource.status_changed, so agents and Pulse MCP --emit-notifications
clients can react without polling.
The monitor adapter tells an observer about each change after the store
accepts it, with the resource ID resolved to the canonical identity it
was stored under. Registry diffs are announced after the new generation
is swapped in. Alert rows are announced only from the alert manager's
live lifecycle callback through RecordLiveChange; lifecycle replay,
active-alert reconciliation and imported history keep using RecordChange,
so a restart never re-announces old alerts. Nothing new is persisted and
nothing is read back from the store, so there are no extra disk writes.
Payloads mirror the timeline record (changeId, kind, canonical
resourceId, current name and type, from/to or alert identifier, type,
level and resolution) and never carry alert messages, change reasons or
command metadata. Only state transitions whose status field changed
count as status events. Status changes are coalesced per resource over
30 seconds: the first is immediate, later ones fold into at most one
event per window, and a flap that returns to the announced status
publishes nothing. Change events carry the recording monitor's
organization and reach only subscribers in that organization.
Pulse keeps 30 days of observed resource changes, but the agent
capability manifest, and so Pulse MCP, only exposed the five most recent
changes per resource inside get_resource_context. An assistant asked
"what happened overnight?" had no tool to answer it.
list_recent_changes (GET /api/agent/changes, monitoring:read) reads the
existing change store with since/before/resourceId/kind/sourceType
filters, a limit capped at 200 and a truncated flag. It writes nothing,
so it adds no disk load. Each change carries the resource's current name
and type, and history for removed resources stays readable.
The raw /api/resources/timeline route returns command text and output
excerpts to read-only tokens. This route instead applies the agent
redaction rule: without ai:execute, command and runbook changes keep only
allowlisted metadata and the command is cut from the reason.
The shared projection now forwards integral JSON numbers as query
parameters, so manifest integer filters such as limit reach GET routes
through MCP instead of being dropped.
Reconstitute the exact runtime and executable proof from Core 4651beb4
without importing its broad unlanded history. The four affected source
files still match that fix parent byte-for-byte. Preserve current
subsystem contracts while inserting the existing typed-filter obligations.
Boolean true and false survive MCP HTTP projection; path and private
metadata, supported value types, write bodies and authentication stay bounded.
Original-contribution: https://github.com/rcourtman/Pulse/pull/3097
Reported-by: X1pheR (Pulse PR #3097)
Source-Commit: 4651beb4c8
Change-source: pulse-maintainer
With the web chat window and its backend routes retired (#3126,
#3137), the pulse_assistant surface only serves Pulse Mobile's chat.
Its manifest description still called it the explanation and handoff
surface for Patrol findings, and that text is public: the docs/AI.md
overview, the MCP README surface block, and the External agents
settings panel all show it. It now names the Pulse Mobile role and says
the web chat is retired.
The browser's fallback affordances for an Assistant surface with none
declared still offered interactive questions. They now match the
backend default of tools only, so no client path advertises a question
tool nobody can answer.
## Why
The in-app Assistant chat window was retired in #3126. Several backend
routes existed only for that window, and Pulse Mobile, the remaining
chat client, never called them. This removes them and the code that only
they reached.
## What changes
- **Routes removed:**
- `GET /api/ai/assistant/surface-tools`
- `POST /api/ai/workflow-prompts/render`
- `POST /api/ai/question/{id}/answer`
- the `/summarize`, `/fork`, `/undo`, `/redo`, `/steer`, `/diff`,
`/revert` and `/unrevert` sub-resources under `/api/ai/sessions/{id}`.
These now return `404` after the existing `ai:chat` scope check.
- **Code removed behind them:**
- the handlers and their `AIService` methods;
- the chat service's fork, undo, redo, steer, summarize, answer-question
and surface-tool methods;
- the session store's fork and turn-undo operations and the persisted
redo stack (`can_redo` leaves session summaries);
- session compaction, the agent loop's steering inbox and
question-answer wait, the `steered` message flag, and the `question` and
`steer_applied` stream events.
- **The question tool is no longer offered.** Interactive chat still
offered `pulse_question`, and Pulse Mobile has no way to answer it, so a
Mobile turn that called it waited until the request ended. Now:
- no profile offers the tool;
- the agent loop answers any call with a refusal telling the model to
ask in its reply text, the same path Patrol runs already took;
- the chat system prompt no longer mentions a clarification tool;
- the agent capabilities manifest's Pulse Assistant surface no longer
declares the `interactiveQuestions` affordance, so the prompt's
affordance text, the fallback governance names, and the generated
`docs/AI.md` and `cmd/pulse-mcp/README.md` surface blocks drop it. The
External agents settings panel stops showing an "Interactive questions"
affordance for Pulse Assistant. The shared `pulse_question` declaration
stays.
- **Docs and contracts:**
- `docs/API.md` lists the remaining routes under "Chat Sessions (Pulse
Mobile)", including the rename route Mobile already used.
- The ai-runtime and api-contracts rules for the removed workflows are
rewritten, and the dependent contracts carry dated notes.
## Unchanged
- `/api/ai/chat` and the session list, create, rename, delete, messages
and abort routes, which are the Pulse Mobile relay route list.
- `/api/ai/status`, which the dev health check uses.
- `/api/ai/workflow-prompts/activity`, which Patrol uses.
- Patrol investigations, provider routing, model-boundary sanitizing and
approvals.
- Old session files: they load as before and drop the redo stack and
`steered` flags on their next write.
## Not in this PR
- The Pulse Assistant surface description in the manifest, which still
calls it a handoff surface for Patrol findings. It now describes Pulse
Mobile chat and can be reworded with the surface contract when Mobile
retires.
- The browser's legacy fallback in
`frontend-modern/src/api/agentCapabilities.ts`. It still gives Pulse
Assistant `interactiveQuestions` when a manifest declares no affordances
at all. A same-version server always declares them, so that path is
unused; it changes with the surface description.
- The dead `highlight.js` chunk rule in `vite.config.ts`.
## Release note
> Removed API routes the retired in-app chat window used: Assistant
surface tools, workflow-prompt rendering, question answers, and the
session summarize, fork, undo, redo, steer, diff, revert and unrevert
routes. Pulse Mobile's chat is unaffected.
The in-app Assistant chat window was retired in #3126. Several backend
routes existed only for it, and Pulse Mobile, the remaining chat client,
never called them: assistant surface-tools, workflow-prompt render,
question answers, and the session summarize, fork, undo, redo, steer,
diff, revert and unrevert sub-resources. This removes them along with
the handlers, service and session-store methods, the persisted redo
stack, session compaction, mid-turn steering and the question-answer
wait behind them.
The question tool needed more than a route removal. Interactive chat
still offered pulse_question, and Pulse Mobile has no way to answer it,
so a Mobile turn that called it waited until the request ended. No
profile offers it now. The agentic loop answers any call with a refusal
that tells the model to ask in its reply text, the path Patrol runs
already took, and the chat prompt drops its clarification-tool advice.
The capabilities manifest's Assistant surface stops declaring
interactive questions, so the generated docs and fallback governance
names follow it.
/api/ai/chat and the session list, create, rename, delete, messages and
abort routes Pulse Mobile uses are unchanged, as is /api/ai/status. Old
session files load as before and drop the redo stack and steered flag
on their next write. docs/API.md lists the remaining chat routes, and
the subsystem contracts record the removal.