Testing Center results report the routed topic as a truncated name ("p") for topics with the `p_<plannerId>_` prefix that `sf agent create` itself generates
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, node.js
Direzione di ricerca
Inizia con lib/agentTester.js e verifica come vengono passati generatedData.topic e actualValue della topic assertion. Esegui i passaggi di riproduzione elencati per sf agent create e sf agent test run, quindi confronta i nomi di topic con prefisso e puliti nell'output JSON. Il lavoro è completato quando si determina se la troncatura può essere risolta in questa CLI o deve essere corretta nella server-side results pipeline.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
CLI Version:
@salesforce/cli/2.149.9
Architecture:
win32-arm64
Node Version:
node-v24.14.1
Plugin Version:
@oclif/plugin-autocomplete 3.2.56 (core)
@oclif/plugin-commands 4.1.63 (core)
@oclif/plugin-help 6.2.58 (core)
@oclif/plugin-not-found 3.2.93 (core)
@oclif/plugin-plugins 5.4.87 (core)
@oclif/plugin-search 1.2.54 (core)
@oclif/plugin-update 4.7.59 (core)
@oclif/plugin-version 2.2.57 (core)
@oclif/plugin-warn-if-update-available 3.1.73 (core)
@oclif/plugin-which 3.2.61 (core)
@salesforce/cli 2.149.9 (core)
agent 2.0.5 (user)
apex 4.1.0 (core)
api 2.0.9 (core)
auth 5.0.6 (core)
code-analyzer 5.12.0 (user)
data 5.1.5 (core)
deploy-retrieve 4.1.2 (core)
info 4.0.9 (core)
limits 4.0.3 (core)
marketplace 2.0.5 (core)
org 6.0.9 (core)
packaging 3.0.5 (core)
schema 4.0.5 (core)
settings 3.0.5 (core)
sobject 2.0.5 (core)
telemetry 4.0.5 (core)
templates 57.0.9 (core)
trust 4.0.9 (core)
user 5.0.1 (core)
OS and Version:
Windows_NT 10.0.26200
Shell:
powershell
Summary
sf agent create names an agent's topics with an auto-generated prefix:
p_<plannerId>_<Topic_Name> (e.g. p_16xxV0000006xXX_Shipping_Details).
When an AiEvaluationDefinition test then runs against that agent, the run
results report the routed topic as the literal string p — in both
generatedData.topic and the topic assertion's actualValue. The name
appears to be truncated at the planner-id segment somewhere in the results
pipeline. Consequence: every topic assertion fails, no matter what
expected value the test author supplies, because nothing can equal p.
Built-in topics without the prefix (e.g. Off_Topic) are reported
correctly, which localizes the problem to the prefixed names.
This is server-side, not CLI parsing: @salesforce/agents
(lib/agentTester.js) spreads the API's generatedData payload through
verbatim (only invokedActions is HTML-decoded), so the p arrives in the
API response.
Steps to reproduce
sf agent create --spec specs/agentSpec.yaml --name "Test Agent" ...
(topics getp_<plannerId>_*developerNames — the default behavior)- Create a Testing Center test whose cases set
expectedTopicto a
topic's full developerName; deploy and activate the agent. sf agent test run --api-name <test> -o <alias> --wait 15 --json
Actual result
Every case: topic_assertion: FAILURE with
expected: p_<plannerId>_<Topic_Name>, actual: p. The run's
generatedData.topic is also p.
Expected result
The routed topic is reported by its full developerName (or the docs state
which name form topic assertions compare against).
Workaround
Redeploy the topics under clean developerNames without the auto-generated
prefix (and update the planner bundle references); full names then
round-trip correctly and topic assertions pass. But note the colliding
defaults: the naming convention agent create generates is the one the
results pipeline cannot report.
Environment
- sf CLI: <paste
sf version --verbose> - Org: Agentforce Developer Edition (
orgfarm-*.develop.my.salesforce.com)
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 571
- Fork
- 80
- Merge medio
- 2g 2h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di forcedotcom/cli
-
investigating validated
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
forcedotcom/cli#3657 · 2 commenti ·
-
`sf agent preview` fails with `AgentApiNotFound` against staging (aws-stage1) orgs — `stage.api.salesforce.com` missing from endpoint fallbackForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:afdx owned by another team
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
forcedotcom/cli#3645 · 2 commenti ·
-
bug investigating validated
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
forcedotcom/cli#3644 · 6 commenti ·
-
sf agent mcp asset replace --assets null throws raw TypeError instead of InvalidShapeForse già presa @konkonrong-lgtm l’ha presa 59 giorni fa. Apertaarea:afdx bug investigating owned by another team validated
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
forcedotcom/cli#3625 · 4 commenti ·
-
area:afdx bug owned by another team
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
forcedotcom/cli#3608 · 2 commenti ·
Tutte le issue di forcedotcom/cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
friction
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
kentcdodds/kody#3263 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
PolicyEngine/policyengine-us#10073 ·
I maintainer di solito rispondono entro 2 giorni
-
bug release:v5.56
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Jason-Vaughan/TangleClaw#2270 ·
I maintainer di solito rispondono entro 1 giorno
-
area:jobads-cv BE mvp P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
klasolsson81/jobbliggaren#2099 ·
I maintainer di solito rispondono entro 1 giorno