Skip to content

Skill: clarify how a Python agent receives signal payloads#21

Merged
basedfriday merged 1 commit into
mainfrom
docs/clarify-signal-payload-input-channel
May 15, 2026
Merged

Skill: clarify how a Python agent receives signal payloads#21
basedfriday merged 1 commit into
mainfrom
docs/clarify-signal-payload-input-channel

Conversation

@basedfriday
Copy link
Copy Markdown
Contributor

Summary

  • The writing-friday-python-agents skill led with "prefer ctx.input over prompt scraping" — accurate for inputFrom step handoffs, but misleading for the common case of a job triggered by a signal. There, the payload arrives in the prompt string and ctx.input is empty, so an agent following the old guidance would guess a ctx.input key and silently get nothing back.
  • Adds a "which channel?" decision callout at the top of Structured Input Handling: signal payload arrives in prompt (use parse_input), upstream step output arrives in ctx.input (inputFrom only). Also scopes the ctx.input intro and fixes the capability-table row that implied ctx.input carries the signal payload.
  • Docs only — no SDK code change, no version bump.

Test plan

  • Read the rendered SKILL.md — the two input channels read as unambiguous

A type:user agent gets input through two channels, and the skill led
with "prefer ctx.input over prompt scraping" — true for inputFrom
handoffs, but misleading for the common case of a job triggered by a
signal with no upstream producer. There, the payload arrives in the
`prompt` string and `ctx.input` is empty; an agent following the old
guidance guesses a ctx.input key and silently gets nothing back.

Add a "which channel?" decision callout at the top of Structured Input
Handling, scope the ctx.input intro to inputFrom, and fix the capability
table row so it no longer implies ctx.input carries the signal payload.

Docs only — no SDK version bump.

## Progress
- Task: Workspace-chat mutation-awareness fixes (from a self-modification chat review)
- Decisions: Kept the edit to SKILL.md only; left version pinning and the friday-studio re-vendor for a later release.
- Key Learnings: The skill is vendored into friday-studio via scripts/sync-sdk-skill.ts at a pinned tag — this branch reaches friday-studio only after release + version bump + re-vendor, so it does not need a coordinated cross-repo change.
- Files: packages/python/skills/writing-friday-python-agents/SKILL.md
@basedfriday basedfriday merged commit d216350 into main May 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant