Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(agent): surface Hermes dependency reinstall at launch (MUL-8124) (#9434)

Multica Eve88de9d371359
diff --git a/apps/docs/content/docs/troubleshooting.mdx b/apps/docs/content/docs/troubleshooting.mdx
index 3f5c2c8860..501b5d33c2 100644
--- a/apps/docs/content/docs/troubleshooting.mdx
+++ b/apps/docs/content/docs/troubleshooting.mdx
@@ -111,6 +111,16 @@ To restore access:
Repeat this after every CLI upgrade. Auto-update is on by default only for daemons connected to Multica Cloud; start the daemon with `--no-auto-update` so upgrades happen only when you run them. The CLI bundled with [Multica Desktop](/desktop-app) is signed with a Developer ID, so its grants survive upgrades.
+## Hermes runs reinstall dependencies after you use the Hermes CLI
+
+If you alternate between the Hermes CLI (or the Hermes desktop app) and Multica Hermes runs, each switch can add 30–60 seconds to startup while Hermes rebuilds its shared Python dependency environment. Each rebuild also leaves a new environment generation on disk until Hermes cleans it up.
+
+This happens when your own Hermes home sets `memory.provider` to a plugin that has Python dependencies. Each Multica run uses its own Hermes home, shares your installed dependencies, and turns the external memory provider off so memory is not shared across runs. Hermes works out which dependencies it needs from the active home's plugins, so your home and the run's home disagree, and each one treats the other's install as out of date. The underlying behavior is tracked upstream in [NousResearch/hermes-agent#137726](https://github.com/NousResearch/hermes-agent/issues/137726).
+
+To confirm, look in the [daemon log](#log-locations) for `hermes is reinstalling its dependency environment before this task starts`. A follow-up `hermes dependency reinstall finished` entry reports, in `startup_delay_ms`, how long Hermes took from launch until it was ready, including the reinstall.
+
+Until Hermes fixes this upstream, you can avoid the rebuilds by setting `memory.provider: ""` in your own Hermes `config.yaml`, which turns that memory plugin off for the CLI as well. Otherwise, expect the one-time delay after each switch.
+
## Realtime updates stop working
If runs still execute but comments and status changes no longer appear live, the WebSocket is usually not connected.
diff --git a/server/pkg/agent/hermes.go b/server/pkg/agent/hermes.go
index 14030a183f..a771e0ba99 100644
--- a/server/pkg/agent/hermes.go
+++ b/server/pkg/agent/hermes.go
@@ -534,7 +534,10 @@ func (b *hermesBackend) Execute(ctx context.Context, prompt string, opts ExecOpt
return nil, fmt.Errorf("start hermes: %w", err)
}
- stderrSink := io.MultiWriter(newLogWriter(b.cfg.Logger, "[hermes:stderr] "), providerErr)
+ // Surface a launch-time dependency reinstall (otherwise only visible at
+ // Debug through the forwarder above); see hermes_depsync.go / GH #9390.
+ depSync := newHermesDepSyncWatcher(b.cfg.Logger, b.cfg.Env["HERMES_HOME"])
+ stderrSink := io.MultiWriter(newLogWriter(b.cfg.Logger, "[hermes:stderr] "), providerErr, depSync)
stderrDone := make(chan struct{})
go func() {
defer close(stderrDone)
@@ -687,6 +690,7 @@ func (b *hermesBackend) Execute(ctx context.Context, prompt string, opts ExecOpt
},
"clientCapabilities": map[string]any{},
})
+ depSync.Finish(err == nil)
if err != nil {
finalStatus = "failed"
finalError = fmt.Sprintf("hermes initialize failed: %v", err)
diff --git a/server/pkg/agent/hermes_depsync.go b/server/pkg/agent/hermes_depsync.go
new file mode 100644
index 0000000000..dac24a073e
--- /dev/null
+++ b/server/pkg/agent/hermes_depsync.go
@@ -0,0 +1,156 @@
+package agent
+
+import (
+ "log/slog"
+ "strings"
+ "sync"
+ "time"
+)
+
+// hermesDepSyncMarkers are the stderr lines Hermes prints right before it
+// rebuilds its managed Python dependency environment at launch
+// (hermes_cli/venv_sync.py prepare_launch). Matched as prefixes of the trimmed
+// line so a trailing detail (the data-root variant names the root) still
+// matches.
+//
+// Why this is surfaced: Hermes keys the dependency stamp on the ACTIVE home's
+// plugin selection. Multica's per-task Hermes home links installs/ back to the
+// user's home but blanks memory.provider (no cross-task memory sharing), so a
+// user whose memory provider plugin declares Python dependencies gets a
+// different stamp per home. Alternating between the Hermes CLI and Multica
+// tasks then reinstalls the shared environment on every switch (~45-60s and a
+// new generation on disk each time; GH multica#9390, upstream
+// NousResearch/hermes-agent#137726). The stderr forwarder logs at Debug, so
+// without this the cost is invisible in a default daemon log.
+var hermesDepSyncMarkers = []string{
+ "hermes: completing source-update dependencies",
+ "hermes: preparing dependencies for this update",
+ "hermes: preparing dependencies for this data root",
+}
+
+const hermesDepSyncHint = "Hermes resolves its dependency set from the active home's plugins; " +
+ "the per-task home disables memory.provider, so a memory plugin with Python dependencies " +
+ "in your own Hermes home makes each switch between the Hermes CLI and Multica tasks reinstall " +
+ "the shared environment (multica#9390, NousResearch/hermes-agent#137726)"
+
+// hermesDepSyncWatcher sniffs Hermes stderr for a launch-time dependency
+// reinstall and logs one Warn when it is seen and one once the ACP handshake
+// has returned, with the measured startup time. It never alters the task
+// outcome. Safe for concurrent Write (stderr copier) and Finish (run
+// goroutine).
+//
+// stdout and stderr are read independently, so the stderr copier may process
+// the marker only AFTER the initialize response was handled, even though
+// Hermes wrote the marker first. The watcher therefore records both events
+// and emits the finish log when the second of them arrives, whichever it is.
+// The delay is measured from launch (watcher creation, right after the
+// process starts) to the handshake, so it does not depend on when the stderr
+// copier got to the marker line.
+type hermesDepSyncWatcher struct {
+ logger *slog.Logger
+ hermesHome string
+ now func() time.Time
+ launched time.Time
+
+ mu sync.Mutex
+ remains []byte
+ marker string
+ detected bool
+ handshake bool // Finish has been called
+ handshakeOK bool
+ handshakeAt time.Time
+ finished bool // finish log emitted
+}
+
+func newHermesDepSyncWatcher(logger *slog.Logger, hermesHome string) *hermesDepSyncWatcher {
+ return newHermesDepSyncWatcherAt(logger, hermesHome, time.Now)
+}
+
+func newHermesDepSyncWatcherAt(logger *slog.Logger, hermesHome string, now func() time.Time) *hermesDepSyncWatcher {
+ return &hermesDepSyncWatcher{logger: logger, hermesHome: hermesHome, now: now, launched: now()}
+}
+
+// hermesDepSyncRemainsCap bounds the partial-line buffer. Marker lines are
+// short; a long unterminated line (tool echo) is irrelevant and is dropped
+// rather than buffered without limit.
+const hermesDepSyncRemainsCap = 4096
+
+func (w *hermesDepSyncWatcher) Write(p []byte) (int, error) {
+ w.mu.Lock()
+ defer w.mu.Unlock()
+ if w.detected {
+ // One reinstall per launch is all we report; skip scanning.
+ return len(p), nil
+ }
+ data := append(w.remains, p...)
+ nl := strings.LastIndexByte(string(data), '\n')
+ if nl < 0 {
+ if len(data) > hermesDepSyncRemainsCap {
+ data = data[:0]
+ }
+ w.remains = append(w.remains[:0], data...)
+ return len(p), nil
+ }
+ complete := string(data[:nl])
+ rest := data[nl+1:]
+ if len(rest) > hermesDepSyncRemainsCap {
+ rest = rest[:0]
+ }
+ w.remains = append(w.remains[:0], rest...)
+
+ for _, line := range strings.Split(complete, "\n") {
+ line = strings.TrimSpace(line)
+ for _, m := range hermesDepSyncMarkers {
+ if strings.HasPrefix(line, m) {
+ w.detected = true
+ w.marker = line
+ w.remains = w.remains[:0]
+ w.logger.Warn("hermes is reinstalling its dependency environment before this task starts; startup will be slower",
+ "hermes_output", line,
+ "hermes_home", w.hermesHome,
+ "hint", hermesDepSyncHint,
+ )
+ w.maybeLogFinishLocked()
+ return len(p), nil
+ }
+ }
+ }
+ return len(p), nil
+}
+
+// Finish records that the ACP initialize handshake has returned (Hermes'
+// dependency sync runs before its ACP server starts, so this bounds the
+// reinstall's added startup time). ok=false means the handshake failed. Only
+// the first call counts. The finish log is emitted here if the marker was
+// already seen, or later by Write if the marker is processed afterwards.
+func (w *hermesDepSyncWatcher) Finish(ok bool) {
+ w.mu.Lock()
+ defer w.mu.Unlock()
+ if w.handshake {
+ return
+ }
+ w.handshake = true
+ w.handshakeOK = ok
+ w.handshakeAt = w.now()
+ w.maybeLogFinishLocked()
+}
+
+func (w *hermesDepSyncWatcher) maybeLogFinishLocked() {
+ if !w.detected || !w.handshake || w.finished {
+ return
+ }
+ w.finished = true
+ w.logger.Warn("hermes dependency reinstall finished",
+ "startup_delay_ms", w.handshakeAt.Sub(w.launched).Milliseconds(),
+ "handshake_ok", w.handshakeOK,
+ "hermes_output", w.marker,
+ "hermes_home", w.hermesHome,
+ )
+}
+
+// Detected reports whether a dependency reinstall marker has been seen.
+func (w *hermesDepSyncWatcher) Detected() bool {
+ w.mu.Lock()
+ defer w.mu.Unlock()
+ return w.detected
+}
diff --git a/server/pkg/agent/hermes_depsync_execute_unix_test.go b/server/pkg/agent/hermes_depsync_execute_unix_test.go
new file mode 100644
index 0000000000..449e1e9068
--- /dev/null
+++ b/server/pkg/agent/hermes_depsync_execute_unix_test.go
@@ -0,0 +1,160 @@
+//go:build !windows
+
+package agent
+
+import (
+ "bytes"
+ "context"
+ "log/slog"
+ "path/filepath"
+ "strings"
+ "sync"
+ "testing"
+ "time"
+)
+
+// A Hermes launch that reinstalls dependencies before serving ACP gets a Warn
+// in the daemon log carrying the task's HERMES_HOME and the measured delay,
+// and the task itself still completes normally (GH #9390).
+func TestHermesExecuteLogsDependencyReinstall(t *testing.T) {
+ t.Parallel()
+
+ fakePath := filepath.Join(t.TempDir(), "hermes")
+ writeTestExecutable(t, fakePath, []byte(`#!/bin/sh
+printf '%s\n' 'hermes: completing source-update dependencies...' >&2
+sleep 0.3
+while IFS= read -r line; do
+ id=$(printf '%s' "$line" | sed -n 's/.*"id":\([0-9]*\).*/\1/p')
+ case "$line" in
+ *'"method":"initialize"'*)
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"protocolVersion":1,"agentCapabilities":{}}}\n' "$id"
+ ;;
+ *'"method":"session/new"'*)
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"sessionId":"ses_dep"}}\n' "$id"
+ ;;
+ *'"method":"session/prompt"'*)
+ printf '{"jsonrpc":"2.0","method":"session/update","params":{"sessionId":"ses_dep","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"done"}}}}\n'
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"stopReason":"end_turn"}}\n' "$id"
+ exit 0
+ ;;
+ esac
+done
+`))
+
+ var logs syncBuffer
+ backend, err := New("hermes", Config{
+ ExecutablePath: fakePath,
+ Env: map[string]string{"HERMES_HOME": "/work/task/hermes-home"},
+ Logger: slog.New(slog.NewJSONHandler(&logs, nil)),
+ })
+ if err != nil {
+ t.Fatalf("new hermes backend: %v", err)
+ }
+ ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
+ defer cancel()
+ session, err := backend.Execute(ctx, "prompt", ExecOptions{Timeout: 5 * time.Second})
+ if err != nil {
+ t.Fatalf("execute: %v", err)
+ }
+ go func() {
+ for range session.Messages {
+ }
+ }()
+
+ select {
+ case result := <-session.Result:
+ if result.Status != "completed" {
+ t.Fatalf("reinstall notice must not change the outcome; status=%q error=%q", result.Status, result.Error)
+ }
+ case <-time.After(10 * time.Second):
+ t.Fatal("timeout waiting for result")
+ }
+
+ recs := decodeDepSyncLogs(t, bytes.NewBufferString(logs.String()))
+ if len(recs) != 2 {
+ t.Fatalf("want start+finish reinstall logs, got %d: %s", len(recs), bytes.NewBufferString(logs.String()).String())
+ }
+ if recs[0].Level != "WARN" || recs[0].HermesHome != "/work/task/hermes-home" ||
+ !strings.HasPrefix(recs[0].HermesOutput, "hermes: completing source-update dependencies") {
+ t.Errorf("unexpected start record: %+v", recs[0])
+ }
+ if recs[1].HandshakeOK == nil || !*recs[1].HandshakeOK || recs[1].StartupDelayMs < 200 {
+ t.Errorf("finish record should report a successful handshake after the simulated sync: %+v", recs[1])
+ }
+}
+
+// Hold the stderr forwarder until session/new proves initialize has returned.
+// This forces an allowed ordering between the independent pipe readers.
+type depSyncDelayedStderrHandler struct {
+ slog.Handler
+ ready chan struct{}
+ once sync.Once
+}
+
+func (h *depSyncDelayedStderrHandler) Handle(ctx context.Context, r slog.Record) error {
+ if strings.HasPrefix(r.Message, "[hermes:stderr] ") {
+ select {
+ case <-h.ready:
+ case <-time.After(10 * time.Second):
+ }
+ }
+ if r.Message == "hermes session created" {
+ h.once.Do(func() { close(h.ready) })
+ }
+ return h.Handler.Handle(ctx, r)
+}
+
+// Regression for the PR #9434 review: Hermes writes the reinstall marker to
+// stderr before serving ACP, but the stderr copier may process it only after
+// initialize has returned. The finish log must still be emitted.
+func TestHermesExecuteLogsDependencyReinstallWhenStderrLags(t *testing.T) {
+ t.Parallel()
+ fakePath := filepath.Join(t.TempDir(), "hermes")
+ writeTestExecutable(t, fakePath, []byte(`#!/bin/sh
+printf '%s\n' 'hermes: completing source-update dependencies...' >&2
+while IFS= read -r line; do
+ id=$(printf '%s' "$line" | sed -n 's/.*"id":\([0-9]*\).*/\1/p')
+ case "$line" in
+ *'"method":"initialize"'*)
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"protocolVersion":1,"agentCapabilities":{}}}\n' "$id"
+ ;;
+ *'"method":"session/new"'*)
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"sessionId":"ses_delayed"}}\n' "$id"
+ ;;
+ *'"method":"session/prompt"'*)
+ printf '{"jsonrpc":"2.0","method":"session/update","params":{"sessionId":"ses_delayed","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"done"}}}}\n'
+ printf '{"jsonrpc":"2.0","id":%s,"result":{"stopReason":"end_turn"}}\n' "$id"
+ exit 0
+ ;;
+ esac
+done
+`))
+ var logs syncBuffer
+ handler := &depSyncDelayedStderrHandler{
+ Handler: slog.NewJSONHandler(&logs, &slog.HandlerOptions{Level: slog.LevelDebug}),
+ ready: make(chan struct{}),
+ }
+ backend, err := New("hermes", Config{ExecutablePath: fakePath, Logger: slog.New(handler)})
+ if err != nil {
+ t.Fatal(err)
+ }
+ ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
+ defer cancel()
+ session, err := backend.Execute(ctx, "prompt", ExecOptions{})
+ if err != nil {
+ t.Fatal(err)
+ }
+ for range session.Messages {
+ }
+ result := <-session.Result
+ if result.Status != "completed" || result.Output != "done" {
+ t.Fatalf("unexpected result: %+v", result)
+ }
+ recs := decodeDepSyncLogs(t, bytes.NewBufferString(logs.String()))
+ if len(recs) != 2 {
+ t.Fatalf("want start+finish reinstall logs even when stderr lags the handshake, got %d; logs:\n%s", len(recs), logs.String())
+ }
+ if recs[1].HandshakeOK == nil || !*recs[1].HandshakeOK {
+ t.Errorf("finish record should report the successful handshake: %+v", recs[1])
+ }
+}
diff --git a/server/pkg/agent/hermes_depsync_test.go b/server/pkg/agent/hermes_depsync_test.go
new file mode 100644
index 0000000000..6e46739691
--- /dev/null
+++ b/server/pkg/agent/hermes_depsync_test.go
@@ -0,0 +1,171 @@
+package agent
+
+import (
+ "bytes"
+ "encoding/json"
+ "log/slog"
+ "strings"
+ "testing"
+ "time"
+)
+
+type depSyncLogRecord struct {
+ Level string `json:"level"`
+ Msg string `json:"msg"`
+ HermesOutput string `json:"hermes_output"`
+ HermesHome string `json:"hermes_home"`
+ StartupDelayMs int64 `json:"startup_delay_ms"`
+ HandshakeOK *bool `json:"handshake_ok"`
+}
+
+func decodeDepSyncLogs(t *testing.T, buf *bytes.Buffer) []depSyncLogRecord {
+ t.Helper()
+ var out []depSyncLogRecord
+ for _, line := range strings.Split(strings.TrimSpace(buf.String()), "\n") {
+ if line == "" {
+ continue
+ }
+ var r depSyncLogRecord
+ if err := json.Unmarshal([]byte(line), &r); err != nil {
+ t.Fatalf("decode log line %q: %v", line, err)
+ }
+ if strings.Contains(r.Msg, "dependency") {
+ out = append(out, r)
+ }
+ }
+ return out
+}
+
+func newTestDepSyncWatcher(buf *bytes.Buffer) (*hermesDepSyncWatcher, *time.Time) {
+ clock := new(time.Time)
+ *clock = time.Unix(1_700_000_000, 0)
+ w := newHermesDepSyncWatcherAt(slog.New(slog.NewJSONHandler(buf, nil)), "/tmp/task/hermes-home",
+ func() time.Time { return *clock })
+ return w, clock
+}
+
+// Every launch-time reinstall message Hermes prints (hermes_cli/venv_sync.py)
+// is detected, logged once at Warn with the line and home, and the finish log
+// carries the measured startup delay.
+func TestHermesDepSyncWatcherDetectsReinstallMarkers(t *testing.T) {
+ t.Parallel()
+ lines := []string{
+ "hermes: completing source-update dependencies...",
+ "hermes: preparing dependencies for this update...",
+ "hermes: preparing dependencies for this data root (the checkout's updates belong to C:\\Users\\u\\AppData\\Local\\hermes)...",
+ }
+ for _, line := range lines {
+ line := line
+ t.Run(line[:40], func(t *testing.T) {
+ t.Parallel()
+ var buf bytes.Buffer
+ w, clock := newTestDepSyncWatcher(&buf)
+ _, _ = w.Write([]byte("some unrelated banner\r\n" + line + "\r\n"))
+ if !w.Detected() {
+ t.Fatalf("marker %q not detected", line)
+ }
+ *clock = clock.Add(47 * time.Second)
+ w.Finish(true)
+
+ recs := decodeDepSyncLogs(t, &buf)
+ if len(recs) != 2 {
+ t.Fatalf("want start+finish logs, got %d: %s", len(recs), buf.String())
+ }
+ if recs[0].Level != "WARN" || recs[0].HermesOutput != line || recs[0].HermesHome != "/tmp/task/hermes-home" {
+ t.Errorf("unexpected start record: %+v", recs[0])
+ }
+ if recs[1].StartupDelayMs != 47000 || recs[1].HandshakeOK == nil || !*recs[1].HandshakeOK {
+ t.Errorf("unexpected finish record: %+v", recs[1])
+ }
+ })
+ }
+}
+
+// A marker split across writes is still matched; repeat markers and repeat
+// Finish calls log only once.
+func TestHermesDepSyncWatcherPartialWritesAndOnce(t *testing.T) {
+ t.Parallel()
+ var buf bytes.Buffer
+ w, _ := newTestDepSyncWatcher(&buf)
+ _, _ = w.Write([]byte("hermes: completing source-upd"))
+ if w.Detected() {
+ t.Fatal("partial line must not be matched before its newline")
+ }
+ _, _ = w.Write([]byte("ate dependencies...\n"))
+ _, _ = w.Write([]byte("hermes: preparing dependencies for this update...\n"))
+ w.Finish(false)
+ w.Finish(true)
+
+ recs := decodeDepSyncLogs(t, &buf)
+ if len(recs) != 2 {
+ t.Fatalf("want exactly one start and one finish log, got %d: %s", len(recs), buf.String())
+ }
+ if recs[1].HandshakeOK == nil || *recs[1].HandshakeOK {
+ t.Errorf("finish should record the first (failed) handshake, got %+v", recs[1])
+ }
+}
+
+// Normal startup output, including log records that merely mention
+// dependencies, never triggers the warning, and Finish without a detection is
+// silent.
+func TestHermesDepSyncWatcherIgnoresUnrelatedOutput(t *testing.T) {
+ t.Parallel()
+ var buf bytes.Buffer
+ w, _ := newTestDepSyncWatcher(&buf)
+ _, _ = w.Write([]byte(strings.Join([]string{
+ "2026-10-21 09:54:01,123 [INFO] root: user said: hermes: completing source-update dependencies",
+ "venv sync: current",
+ "⚠️ API call failed (attempt 1/3): retryable upstream blip",
+ "",
+ }, "\n")))
+ w.Finish(true)
+ if w.Detected() {
+ t.Fatal("unrelated output must not be detected as a reinstall")
+ }
+ if recs := decodeDepSyncLogs(t, &buf); len(recs) != 0 {
+ t.Fatalf("expected no logs, got %s", buf.String())
+ }
+}
+
+// An oversized unterminated line is dropped instead of buffered without bound.
+func TestHermesDepSyncWatcherBoundsPartialLine(t *testing.T) {
+ t.Parallel()
+ var buf bytes.Buffer
+ w, _ := newTestDepSyncWatcher(&buf)
+ _, _ = w.Write(bytes.Repeat([]byte("x"), hermesDepSyncRemainsCap+10))
+ w.mu.Lock()
+ n := len(w.remains)
+ w.mu.Unlock()
+ if n > hermesDepSyncRemainsCap {
+ t.Fatalf("partial-line buffer grew to %d bytes", n)
+ }
+ _, _ = w.Write([]byte("\nhermes: completing source-update dependencies...\n"))
+ if !w.Detected() {
+ t.Fatal("marker after a dropped oversized line should still be detected")
+ }
+}
+
+// stdout and stderr are drained independently, so the handshake can be
+// handled before the stderr copier reaches a marker Hermes wrote first. The
+// finish log must still be emitted, with the delay measured from launch to the
+// handshake rather than from when the marker line happened to be processed.
+func TestHermesDepSyncWatcherHandshakeBeforeMarker(t *testing.T) {
+ t.Parallel()
+ var buf bytes.Buffer
+ w, clock := newTestDepSyncWatcher(&buf)
+ *clock = clock.Add(52 * time.Second)
+ w.Finish(true)
+ if recs := decodeDepSyncLogs(t, &buf); len(recs) != 0 {
+ t.Fatalf("no logs expected before a marker is seen, got %s", buf.String())
+ }
+ *clock = clock.Add(3 * time.Second)
+ _, _ = w.Write([]byte("hermes: completing source-update dependencies...\n"))
+
+ recs := decodeDepSyncLogs(t, &buf)
+ if len(recs) != 2 {
+ t.Fatalf("want start+finish logs, got %d: %s", len(recs), buf.String())
+ }
+ if recs[1].StartupDelayMs != 52000 || recs[1].HandshakeOK == nil || !*recs[1].HandshakeOK {
+ t.Errorf("finish should report launch-to-handshake delay: %+v", recs[1])
+ }
+}