Update Implementer packages for inner-loop convergence and Planner flags (v0.16.0) #38

Merged
anodyine merged 3 commits from ISSUE-25 into main 2026-11-25 23:37:56 -05:00
5 changed files with 51 additions and 30 deletions
Showing only changes of commit b217bfcb03 - Show all commits

No files matched your search

+22 -19
View File
@@ -16,8 +16,8 @@ uncertainty to the Planner; the Reviewer proposes Trust Pyramid guardrails.
Owner rules for typed escalation, Implementer flags, and Guardrail Proposal
cards are proposed in RelayView and not yet shipped, so the packages fall back
to stating an escalation in the Plan or review result, and a flag in the
message to the Planner, when no owner interface is assigned. No schema, role, or step changes;
every earlier release keeps its bytes.
message to the Planner, when no owner interface is assigned. No schema, role,
or step changes; every earlier release keeps its bytes.
### `planner-scope`
@@ -58,24 +58,27 @@ every earlier release keeps its bytes.
- **Before (0.13.0):** documentation reconciliation, clarification with the
Planner, and review content naming the candidate and its focused checks.
- **After:** `SKILL.md` adds "Converge before sealing" (run the Plan's
Implementer fast checks, seconds not minutes, after each change and resolve
- **After:** `SKILL.md` adds two short sections that defer to the guide:
"Converge before sealing" (iterate on the Plan's Implementer fast checks and
Planner feedback before sealing a candidate for the Building Inspector) and
"Flag instead of escalating" (route genuine specification ambiguity, an
unexpected sensitive boundary, or scope creep to the Planner as a
`needs_operator_decision` or `scope_exceeded` flag, never paging the
Operator or silently improvising). `handoff.md` adds an "Inner loop" section
(fall back to the repository's focused checks when the Plan names none,
never present a candidate with a failing fast check as ready) and a "Flags
to the Planner" section (when each flag applies, what it states, one flag
per decision, never just to be safe, and the message to the Planner as the
fallback when no flag interface is assigned). Review content adds declared
test-resource readiness and known gaps. The description names the new
scope. The package names no typed escalation reason: the Implementer only
flags.
- **Fork:** schema 1 and the two declared files are unchanged. A fork keeping
its own `handoff.md` can adopt the new sections independently of
`SKILL.md`; recalculate the digests of each changed file.
"Flag instead of escalating" (send an unsettled decision to the Planner as a
flag rather than to the Operator). `handoff.md` carries the rules. Its new
"Inner loop" section defines fast checks (types, lint, static analysis, unit
and integration tests: seconds, not minutes), falls back to the
repository's focused checks when the Plan names none, and never presents a
candidate with a failing fast check as ready. Its new "Flags to the
Planner" section raises `needs_operator_decision` for genuine specification
ambiguity, an unexpected sensitive boundary, or an unsettled visible
tradeoff, and `scope_exceeded` for scope creep. It never pages the Operator
or silently improvises, raises one flag per decision and never just to be
safe, and uses the message to the Planner as the fallback when no flag
interface is assigned. Review content adds declared test-resource readiness
and known gaps. The description names the new scope. The package names no
typed escalation reason: the Implementer only flags.
- **Fork:** schema 1 and the two declared files are unchanged. The inner-loop
and flag rules live in `handoff.md`, so a fork that keeps its own
`handoff.md` can adopt them without touching `SKILL.md`; recalculate the
digest of each changed file.
### `implementer-communication`
+3 -3
View File
@@ -12,14 +12,14 @@ During the assigned implementation step, keep the repository's current-behavior
## Converge before sealing
Work in a tight inner loop with the Planner. After each change, run the Plan's Implementer fast checks: deterministic checks that finish in seconds, not minutes, such as types, lint, static analysis, and unit and integration tests. Iterate until they pass and the Planner feedback is resolved, before sealing a candidate. The Building Inspector's runtime verification is slow and scarce; it should find what fast checks cannot, not what they would have caught.
Work in a tight inner loop with the Planner, as the handoff guide describes: after each change, run the Plan's Implementer fast checks, and iterate until they pass and the Planner feedback is resolved, before sealing a candidate. The Building Inspector's runtime verification is slow and scarce; it should find what fast checks cannot, not what they would have caught.
## Flag instead of escalating
When you meet genuine specification ambiguity, an unexpected sensitive boundary, or scope creep, raise a `needs_operator_decision` or `scope_exceeded` flag to the Planner as the handoff guide describes. Do not page the Operator directly, and do not silently improvise the behavior. The Planner settles the flag inside the approved specification or escalates it.
When a question needs a decision that the specification, the Plan, and the project's contracts do not settle, raise a `needs_operator_decision` or `scope_exceeded` flag to the Planner as the handoff guide describes, rather than escalating to the Operator yourself. The Planner settles the flag inside the approved specification or escalates it.
## Hand off
Prepare a concise, attributable review handoff when the assigned workflow gives you a place to submit one. Identify the exact candidate, the fast checks and their observed results on it, declared test resource readiness and known gaps, any manual evidence and its observer, open flags, unresolved limitations, and the documentation disposition. A command attempted is not a check passed; report failures and stale evidence explicitly.
Use only the Implementer's assigned tools and owner interfaces. The owner verifies validation, review, provider effects, and stage readiness; your prose is a report for that process. This step is complete when the fast checks pass on the exact candidate you seal, documentation describes verified behavior, and the handoff lets a reviewer reproduce the relevant checks.
Use only the Implementer's assigned tools and owner interfaces. The owner verifies validation, review, provider effects, and stage readiness; your prose is a report for that process. This step is complete when documentation describes verified behavior and the handoff states the fast-check results on the exact candidate you seal and lets a reviewer reproduce the relevant checks.
+4 -4
View File
@@ -2,12 +2,12 @@
## Inner loop
- Take the fast checks from the Plan. When the Plan names none, use the repository's recorded focused checks for the changed areas and their direct consumers.
- Take the fast checks from the Plan: deterministic checks that finish in seconds, not minutes, such as types, lint, static analysis, and unit and integration tests. When the Plan names none, use the repository's recorded focused checks for the changed areas and their direct consumers.
- Run them after each change and fix what they report before moving on. Keep the loop fast: a check that takes minutes belongs to verification, not to the inner loop.
- Resolve each piece of Planner feedback in the code or answer it with evidence, then rerun the affected checks.
- Seal a candidate only when every fast check passes on that exact candidate and no Planner feedback is open. Any later change makes earlier results stale; rerun the checks it affects.
- Aim to seal a candidate once every fast check passes on that exact candidate and no Planner feedback is open; the owner's workflow decides when it is sealed. Any later change makes earlier results stale; rerun the checks it affects.
- Do not run the Building Inspector's verification goals in place of fast checks, and do not use them to find defects a fast check would catch.
- If a fast check cannot pass, for example because of a failure outside the Plan or a missing tool, do not present the candidate as ready. Report the check, its output, and the cause you found, and raise `scope_exceeded` if fixing it needs work the Plan does not allow.
- If a fast check cannot pass, for example because of a failure outside the Plan or a missing tool, do not present the candidate as ready. Report the check, its output, and the cause you found to the Planner, and raise `scope_exceeded` only when fixing it needs work the Plan does not allow.
## Flags to the Planner
@@ -36,7 +36,7 @@ Ask the planner for more information when blocked after reasonable investigation
- Summarize the user-visible change and its bounded impact.
- Name the candidate revision and the fast checks run against it, with observed pass or failure results.
- Report declared test resource readiness: for each resource the Plan's verification goals need, say whether you confirmed it is available with your assigned tools, could not check it, or found it missing. Never substitute a mock for a declared resource and call the goal met.
- Report declared test resource readiness: for each resource the Plan's verification goals need, say whether you confirmed it is available with your assigned tools, could not check it, or found it missing. Do not report a mock as the declared resource.
- List known gaps honestly: acceptance observations no fast check covers, verification goals and remaining manual Operator checks still open, skipped or flaky checks, and open flags.
- Give a reviewer executable steps and expected observations for any behavior that automated checks cannot establish.
- State remaining uncertainty and recovery steps. Attribute provider or Operator observations to their actual source.
@@ -9,11 +9,11 @@
"files": [
{
"path": "SKILL.md",
"sha256": "384de77401ef6ac751a876c94ed92c2c8fafa9d3757ffc85b7f30f8a09c23d02"
"sha256": "07f57e2bf8278630cb2b233c739b4cf703458c614cc6f7fe382d2fc34ea99bd4"
},
{
"path": "handoff.md",
"sha256": "f652d41c0b0a02845d0d5a3ca24e5fd4c2365d2c80fc988b1a515fc7e1b194b9"
"sha256": "d3dcd9b1e566d41fd8ad0c55212bc42a33ca1583931f834d0e74f04a70a5f7b3"
}
]
}
+20 -2
View File
@@ -15,7 +15,7 @@ PACKAGES = {
class ImplementerReleaseTests(unittest.TestCase):
def test_packages_release_with_planner_and_reviewer_and_keep_their_schemas(self):
def test_packages_move_to_v0_16_0_with_unchanged_schemas(self):
for name, (schema, extra, files) in PACKAGES.items():
with self.subTest(package=name):
check_package(ROOT / "packages" / name)
@@ -61,8 +61,26 @@ class InnerLoopTests(unittest.TestCase):
def test_does_not_seal_a_failing_candidate_as_ready(self):
# A fast check that cannot pass is reported, never presented as ready.
self.assertIn("A command attempted is not a check passed", self.text)
self.assertIn("do not present the candidate as ready", self.text)
# Sealing is the owner's gate: the prose guides the Implementer toward
# it rather than restating it, so a check that can never pass still
# ends in a report instead of a step that cannot finish.
for gate in ("Seal a candidate only when", "complete when the fast checks pass"):
with self.subTest(gate=gate):
self.assertNotIn(gate, self.text)
# A failing check is a scope flag only when the fix leaves the Plan.
self.assertIn("raise `scope_exceeded` only when", self.text)
def test_handoff_guide_owns_the_forkable_rules(self):
# Like planner-scope's escalation guide, the resource carries the
# rules, so forking handoff.md alone changes the inner loop and flags.
handoff = (ROOT / "packages/implementer-handoff/handoff.md").read_text()
skill = (ROOT / "packages/implementer-handoff/SKILL.md").read_text()
for rule in ("seconds, not minutes", "types, lint, static analysis", "genuine specification ambiguity",
"Do not page the Operator", "silently improvise"):
with self.subTest(rule=rule):
self.assertIn(rule, handoff)
self.assertNotIn(rule, skill)
def test_reports_test_resource_readiness_and_known_gaps(self):
for phrase in ("declared test resource", "readiness", "known gap", "verification goal",