Repository navigation
docs(pull): one entry point for the pull migration — delete five superseded planning docs - #2657
Conversation
…rseded planning docs The migration's state lived across eleven planning/testing documents plus the tracker, and they had drifted apart. Five of them were finished work that was never retired: they were last touched on 2026-07-08, the day the Phase 0-3 PR merged, and their conclusions had already been folded into TARGET_ARCHITECTURE.md. Leaving them in the tree is not free. EFFECT_IDEMPOTENCY_DIRECTION_B_RETRY_CONTEXT.md is a *proposal* whose content was adopted into the spec; it frames the fail-closed execution_id policy as an open question, while the spec states it as settled. A reader who finds the proposal first concludes the policy is undecided and re-opens a closed decision. That happened, and it cost a full review cycle. Deleted (git retains them; nothing in tests, CI or scripts referenced any of them): PULL_PILOT_946_SOAK.md #946 closed; the decision record was never filled in - it is a blank scaffold EFFECT_IDEMPOTENCY_1084_REVIEW_NOTE.md #1084 closed; reviews Direction A, retired EFFECT_IDEMPOTENCY_DIRECTION_B_RETRY_CONTEXT adopted into TARGET_ARCHITECTURE.md (#1404) ORCHESTRATION_BUG_META_ANALYSIS_2026-06.md its own §5 is titled "applied 2026-06-06"; the spec header records the three changes TRANSACTIONAL_EXECUTIONS_2026-06.md June planning artifact, nothing points at it Archiving rather than deleting was considered and rejected: an archived file is still in the working tree, still grepped, still loaded into an agent's context, and still read by someone who does not scroll up to the "superseded" header - which is the exact failure mode above. Git history is the durable copy. PULL_MIGRATION_STATUS.md is rewritten as the entry point and verified against dev and the tracker. It was materially wrong: Phase 4 read "not started" (it is built and in review), #1401/#1402 read "not yet built" (closed in July), and it named a branch that no longer exists. It now also carries two things that were recorded nowhere - the trigger reach table (six of nine on dev, nine with Phase 4), and the behaviour the loop and fan-out rewrites change on installs with an EMPTY pilot allowlist, which is not flag-gated and is operator-visible. Corrected across the surviving docs: - The Phase-5 ">=2-week zero-orphan soak" bar was cited to #856 in four places. #856 sets no such bar - it is a closed spike on multi-agent fleet stability and does not mention duration, orphans or pull. The figure originates in #429's gating condition for #306 (the event bus, closed 2026-04-21) and was carried over. #1766's own criterion asks for "several days". Flagged for deliberate re-derivation rather than silently re-fixed. - T6.3 now states that the fail-closed policy is DECIDED in the spec and that #2392 is the build, not the decision. - M5 records the first end-to-end observation of lease expiry, re-delivery and poison-park outside the 2026-07-08 synthetic pilot (2026-09-09, local PG, forced fault): re-delivery preserved the execution id and recovered the work on a different worker, and killing on every claim walked the counter to the cap and parked it with a high-priority operator alert. Every production window so far has reported redelivery_count=0, which until now was indistinguishable from "untested". The five surviving reference docs get a banner pointing at the status file. Net: eleven documents to six, one entry point. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019Tm7UEkd4G9KQZD5oeLRSa
|
merge-train 2026-09-09: not on this train. The editorial judgement is good and the factual corrections check out — I verified them against the tracker rather than taking them on trust: #429's body does carry the ≥2-week/orphan bar verbatim, #856's body has zero mentions of it, and the #1401/#1402 close dates are as stated. The new §3 trigger-reach table matches The blocker is that two of the five deletions are still load-bearing. 1. Deleting
After merge, 2. 3. The rewrite drops settled decisions for an open issue. Old 4. Dangling reference in a live memory doc — On the archive question, which is where I think the disagreement actually is. The anti-archive argument in the body is genuinely good for the case it was written about — a proposal that reads as an open question, whose header frames a settled policy as undecided, is a trap whether it sits in Smaller things, cheap in the same pass:
Minimum to land: archive rather than delete the meta-analysis and the transactional doc, fix |
The PR deletes docs/planning/PULL_PILOT_946_SOAK.md and already removed this same bullet from MESSAGE_ENVELOPE_SCHEMA.md; the copy in agent-to-agent-collaboration.md's "Reference docs" list was missed because the PR's link verification scoped to docs/planning/, not docs/memory/. Verified: all five files this PR deletes now have zero live (non-archive) references. merge-train: mechanical, per the merge-train note on the PR. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01CswDvc38w7EheWhbbUD4So
|
merge-train 2026-09-10: on this train. Two commits pushed to Pushed: the dangling reference to a file this PR deletes. under "Reference docs". You already removed the identical bullet from I swept the other four deletions the same way rather than fixing only the one found: Not fixed — your call. Verified, not assumed. Validation spot-checked seven factual claims in the diff against live source — including the exact |
Two items in the rewritten status doc moved this weekFlagging these against the PR rather than editing it, since the point of consolidating was to have one file that is actually true — both of these will be stale on merge otherwise. §4 item 3 — "a soak on an agent that actually emits". The doc says the mechanics for a second emitting pilot are in the ops repo and "are not yet applied — the backend still reports The choice differs from what the doc anticipates in one way worth capturing: it is not a disposable agent. A disposable agent only produces synthetic traffic; an existing cron agent exercises the guard under real load and can catch a natural lease expiry. The cost is that the emitting agent's own pre-flip history stops being a valid control — which is why the clean baseline arm is a separate agent carrying no emit. That two-agent split is the part worth writing down. §3 trigger reach — one trigger is missing from the table. §4 item 4 / Phase 5. The deletion list is S-01/S-02/S-03. B-02 belongs there too — filed as #2840. It has no pull awareness (its premise is that the backend drains, which is false for a pilot), fired One addition for §5 or §6, if you want it. A backend restart discards every in-flight push execution, including completed-and-paid-for turns, because push dispatch ownership is an in-process dict plus a 60s Redis liveness marker; pull rows are immune because ownership is durable columns. Measured on eu2 twice this week (detail on #1081 / #429). That is the sharpest short statement of the Phase-5 payoff I have, and the status doc currently has no equivalent line. Everything else in the rewrite matches what I see on |
|
Operator decision, 2026-09-16 (@obasilakis): Open Question 7 resolves to the edge adapter — human-interactive chat goes on the durable queue, and the push coordination path is deleted rather than kept alongside. Full record on #1989; work created as #2842 and #2843. This PR needs changes before merge, or it lands the opposite of the decision into the document that is meant to be the single entry point. Flagging rather than pushing to your branch. Three places in the rewritten status doc now assert the opposite:
Given this PR's own thesis — that an archived-but-present document still gets read and relitigated, and that this cost a review cycle once already — §4 item 5 is precisely the sentence that will cause the next one. Two smaller corrections while it is open, both from the
|
The pull migration's state lived across eleven planning/testing documents plus the tracker, and they had drifted apart. This reduces that to six documents with one entry point, and corrects what the survivors got wrong.
No source changes.
tests/unit/test_2306_architecture_split.pyandtest_2533_alembic_head_watch.pypass; no internal markdown link in the six surviving docs is broken; nothing intests/,scripts/or.github/referenced any deleted file.Deleted five (git retains them)
PULL_PILOT_946_SOAK.mdVerdict: GO | NO-GO,Envelope finding: <notes>. A blank scaffold.EFFECT_IDEMPOTENCY_1084_REVIEW_NOTE.mdEFFECT_IDEMPOTENCY_DIRECTION_B_RETRY_CONTEXT.mdTARGET_ARCHITECTURE.md(#1404).ORCHESTRATION_BUG_META_ANALYSIS_2026-06.mdTRANSACTIONAL_EXECUTIONS_2026-06.mdWhy deleted rather than archived. An archived file is still in the working tree, still grepped, still loaded into an agent's context, and still read by someone who doesn't scroll up to the "superseded" header. That is not hypothetical: the Direction B proposal frames the fail-closed
execution_idpolicy as an open question — "Neither is obviously right… this decision is the substance of the issue" — while the spec states it as settled. Reading the proposal first produces the conclusion that the policy is undecided, and re-opens a closed decision. That happened this week and cost a full review cycle. Moving the file toarchive/would not have prevented it.Rewrote the status doc as the entry point
PULL_MIGRATION_STATUS.mdis meant to be this already — "the durable record of what was built, what is load-bearing, and what remains" — but it was materially wrong:It now also carries two things that were written down nowhere:
devtoday (agent,event,schedule,webhook,reminder,loop);fan_out,a2aandoperator_responsearrive with feat(pull): async fan-out join + sync edge adapter — no autonomous trigger is stranded (#2524) #2532; interactive chat is excluded by the Open Question 7 scope cut and Decide (on paper) whether human-interactive chat belongs in the pull queue — TARGET_ARCHITECTURE Open Question 7 #1989 is still undecided.interrupted, and a fan-out deadline reports a still-open subtask asrunningrather thanfailed. All verified with the flag off. The restart behaviour is operator-visible and belongs in release notes.Corrections to the surviving docs
The Phase-5 soak bar is mis-cited in four places. They say "≥2-week zero-orphan soak (#856)". #856 sets no such bar — it is a closed 2026-05-15 spike on soak-testing approaches for multi-agent fleet stability (context exhaustion, retry storms) that never mentions duration, orphans, or pull. The two-week figure originates in #429's own gating condition — "#306 must be in production for ≥2 weeks with zero observed orphan recoveries" — written for the Redis Streams event bus, which closed 2026-04-21. #1766's own acceptance criterion asks for "several days of real traffic".
I have not silently picked a new number. The citation is corrected, the discrepancy is stated, and §4 flags it for deliberate re-derivation — including which measurements pool across non-consecutive windows and which need a build-matched baseline.
T6.3 now states the fail-closed policy is decided in the spec and that #2392 is the build, not the decision.
M5 records the first end-to-end observation of lease expiry → re-delivery → poison-park outside the 2026-07-08 synthetic pilot (2026-09-09, local PostgreSQL, forced fault): re-delivery preserved the
execution_idand recovered the work on a different worker; killing on every claim walked the counter to the cap and parked it with a high-priority operator alert. Every production soak window so far has reportedredelivery_count = 0, which until now was indistinguishable from "the mechanism is untested".Result
Eleven documents to six, each of which someone would actually open: the spec, the status file, the test/gate list, the rollback runbook, the wire contract, and the taxonomy. The five survivors carry a banner pointing at the status file.
🤖 Generated with Claude Code
https://claude.ai/code/session_019Tm7UEkd4G9KQZD5oeLRSa