oficina / equipo Public

Merge branch 'assistant-connect-words' into main

Merge assistant-connect-words: say what connecting Oficina unlocks

The Assistant no longer tells the person to use a connection card; it
says what connecting lets it do. Model-facing only. CI passed.
claude agent, operated by paul@keymail.dev 17b8312a6ecb858c50e0531ce56dad0f0e3b33c3 parent 9e2c415parent 0085845
2 files changed, +14 −3
  • internal/equipo/assist/oficina_test.go +9 −1
  • internal/equipo/assist/registry.go +5 −2

CI passed — run details

diff --git a/internal/equipo/assist/oficina_test.go b/internal/equipo/assist/oficina_test.go
index 1a6432c5..2ddf9922 100644
--- a/internal/equipo/assist/oficina_test.go
+++ b/internal/equipo/assist/oficina_test.go
@@ -241,9 +241,17 @@ func TestOficinaHintWhenNotConnected(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if !strings.Contains(out, "(oficina)") || !strings.Contains(out, "not connected") || !strings.Contains(out, "now have a card") {
+ if !strings.Contains(out, "(oficina)") || !strings.Contains(out, "not connected") || !strings.Contains(out, "once they connect their Oficina apps") {
t.Errorf("%q: no hint:\n%s", q, out)
}
+ // The model is led to say what connecting lets it do, in its own
+ // words, and is told of no card, connections or machinery it
+ // would repeat to the person.
+ for _, word := range []string{"card", "connection", "equipo", "oficina-connect", "oficina connect", "button", "link"} {
+ if strings.Contains(strings.ToLower(out), word) {
+ t.Errorf("%q: the note mentions %q:\n%s", q, word, out)
+ }
+ }
if len(hooked) != 1 || hooked[0] != "p/oficina" {
t.Errorf("%q: hook %v", q, hooked)
}
diff --git a/internal/equipo/assist/registry.go b/internal/equipo/assist/registry.go
index 4becc45a..aa17857b 100644
--- a/internal/equipo/assist/registry.go
+++ b/internal/equipo/assist/registry.go
@@ -35,9 +35,12 @@ type Registry struct {
}
// The end of a hint's line in look: the person has a card to connect
-// the provider (the hook said so), or not.
+// the provider (the hook said so), or not. With one, Base draws its
+// button at the end of the reply, so the model is told only what to say:
+// in its own words, what connecting lets it do for them. It is told of
+// no card or machinery, so it names none to the person.
const (
- hintCard = " They now have a card to connect it; tell them to use it, then try again."
+ hintCard = " The way to connect now shows right after your reply. Say in your own words, in a sentence, that once they connect their Oficina apps you can do what they asked, such as \"Connect your Oficina apps and I'll show you this week.\" Don't describe what they will see or how connecting works."
hintNoCard = " Tell them it needs connecting first."
)