Skip to content

fix(server): steered Astra peer deliveries send the envelope only - #126

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5/remove-astra-delivery-guidance
Sep 11, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5/remove-astra-delivery-guidance

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Closes #117

Problem

The Codex Astra steered-delivery path appended a fixed platform guidance string after the envelope, telling the agent to continue the unfinished task and change course only when the user's instructions require it. Per the 2026-09-08 ruling, that guidance is wrong: an agent told by a peer that it should change course should not wait for a user who may never come, and Astra takes messages during work by design.

Fix

  • Deleted the guidance constant and the join in apps/server/src/j5/a2a/DeliveryTransport.ts. Steered deliveries now send the rendered envelope alone.
  • No other delivery behavior changes: the Astra eligibility rule, the run-pinned steer, receipt and race handling, and queue delivery for every other case are untouched.
  • The transport integration test now asserts each steer's text is exactly the rendered envelope, instead of asserting the guidance is present.

Docs: no product doc on j5/main names the guidance text. The definition-of-record update (docs/j5/product/a2a/index.md, Delivery / AC13) is already on the j5/docs-product-cleanup branch.

Verification

  • vp test run apps/server/src/j5/a2a/DeliveryTransport.integration.test.ts — 23 passed
  • vp run typecheck in apps/server — clean
  • vp lint on the two changed files — clean

Work done by Claude Fable 5.1 via Claude Code.

🤖 Generated with Claude Code

Codex Astra steered deliveries appended a fixed platform guidance string
telling the agent to continue the unfinished task and change course only
when the user's instructions require it. Ruling of 2026-09-08: drop it.
An agent told by a peer that it should change course should not wait for
a user who may never come; Astra takes messages during work by design.

Steered deliveries now carry the rendered envelope alone. Eligibility,
the run-pinned steer, receipt handling, and queue delivery for every
other case are unchanged. The transport test asserts each steer's text
is exactly the rendered envelope.

Closes #117

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 effective changed lines (test files excluded in mixed PRs). labels Sep 11, 2026
@Jacksondr5
Jacksondr5 merged commit 7611466 into j5/main Sep 11, 2026
17 checks passed
@Jacksondr5
Jacksondr5 deleted the j5/remove-astra-delivery-guidance branch September 11, 2026 23:22
Jacksondr5 added a commit that referenced this pull request Sep 14, 2026
… cross-environment changes

Rebased onto j5/main. Folds main's five doc changes into the rewritten
definitions in their own shape: list_squadrons and join_squadron in the
agent tools and substrate definitions and as Squadron AC14; reversible
archive, unarchive and separate deletion in the archive-flow and tools
definitions; the cross-environment merge (#125) as cross-device
AC7–AC10 and inbox criteria, with build status in the dogfood plan.
Records #126 and #127 as landed in the A2A plan. Moves the Squadron
Scope section into the Definition and the plan per the conventions.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Jacksondr5 added a commit that referenced this pull request Sep 14, 2026
* docs(j5): how the J5 docs are organized — five kinds, lifetimes, two identifier kinds

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): glossary rewritten as index + owned distinctions; casing rule made unambiguous

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): cite principles by name — headings un-numbered, every numeric citation rewritten

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): Squadron rewritten as a definition; naming session moved to a record; glossary review fixes; shared example fleet

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): A2A definition, substrate and agent-tools as definitions; communication-graph draft to a record; A2A plan to plans/

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): steering after the upstream integration — two independent policies, truthful-steer guard, stop wins over restart continuation; Astra delivery guidance removed

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): inbox, thread rendering and archive flow as definitions; Replied everywhere; a person receives asks only and never opens one

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): A2A definition — a person receives asks only and never opens one (repairs edits missed against the staged text)

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): Roles, Crews, Memos, Playbooks, Spawning Guide, Shared Squadrons as definitions — the design-review register dissolved into them

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): dogfood plan consolidated under plans/; decision log, design review and backlog become records; principles' cases point at definitions by name; GitHub milestones carry the backlog

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): problems, use cases, fleet vision, cross-device and the PR pane as definitions; the posted PR-pane brief kept as a record

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): mechanical sweep — records renamed date-first with frontmatter, research stamped as_of, runbooks under runbooks/, process classified, README rewritten

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): fold the Fleet page contract into a definition

Rewrites sidebar-and-roster as the Fleet page and sidebar definition
(AC1–AC26, scenarios, History mapping SB1–SB7, FV1–FV11 and DV6),
moves the 2026-09-04 fleet-visibility session record to its date-first
name with a pointer to the definition, re-keys the dogfood plan's
narrowing table by criterion, and gives the glossary's Fleet page,
Squadron scope, orphan and delivery alarm terms their owners. Supersedes
PR #107.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* docs(j5): rebase onto main and absorb the landed lifecycle, join, and cross-environment changes

Rebased onto j5/main. Folds main's five doc changes into the rewritten
definitions in their own shape: list_squadrons and join_squadron in the
agent tools and substrate definitions and as Squadron AC14; reversible
archive, unarchive and separate deletion in the archive-flow and tools
definitions; the cross-environment merge (#125) as cross-device
AC7–AC10 and inbox criteria, with build status in the dogfood plan.
Records #126 and #127 as landed in the A2A plan. Moves the Squadron
Scope section into the Definition and the plan per the conventions.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

* fix(server): pin the send_message description to the definition's new shape

The EnvelopeFormatter test reads the send_message description out of
docs/j5/product/a2a/agent-tools.md and compares it byte-for-byte with
the runtime string; the docs rewrite changed the heading and label the
parser looked for. Update the parser to the definition shape, drop the
stale "or a reply" toward a person from the runtime string (a person
never opens an ask, so there is nothing to reply to; the channel itself
went in #127), and hold the definition's description to the shipped
string. The regarding sentence returns with #111.

Co-Authored-By: Claude Fable 5.1 <[email protected]>

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the platform guidance appended to Astra steered peer deliveries

1 participant