Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions SESSIONLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
- Added a stale-proof `/upstreaming restart` command for abandoned contributions that keeps the same tracking issue and append-only ledger while starting a fresh queued lifecycle generation after writer quiescence.
- Added `/upstreaming refresh` to re-investigate an existing development PR with current prompts, replace its verified dossier scope, and require a fresh worker pass carrying the full new dossier plus pending review and CI evidence.
- Separated explicit explanation-only PR comments from change feedback so they are audited without revision bumps, `fix_needed` transitions, repair evidence, or misleading repair ledger text; repeated-pause rejection feedback now confirms the pause remains effective instead of repeating the submitted syntax.
- Corrected paused-feedback ledger wording so actionable feedback remains visibly pending without claiming repair Work was requested while pause prevents allocation.
3 changes: 3 additions & 0 deletions upstreaming/INTEGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ an explicit no-change instruction is present, or when they clearly request an
explanation without a repair instruction. They are marked processed and retained
for audit, but do not bump the revision, set `fix_needed`, enter pending repair
evidence, invalidate CI or handoff state, or claim that repair was requested.
When actionable change feedback arrives while a contribution is paused, it
remains durable and pending, but the ledger explicitly says that no Work was
requested because the contribution is paused.

Exact-head CI is green only when every executed build or test job succeeds, in
addition to the target riscv64 job and wheel contract. Failures confined to
Expand Down
3 changes: 3 additions & 0 deletions upstreaming/status_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def render(event: dict, record: dict, run_url: str) -> str:
activity = event.get("to", {}).get("activity", record["activity"])
kind = event["kind"]
message = MESSAGES.get(kind, kind.replace("_", " ").replace(":", ": ").capitalize() + ".")
if kind == "development_review_feedback" and record.get("paused"):
message = ("Recorded authorized development-PR change feedback. Repair remains pending, "
"but no Work was requested because the contribution is paused.")
visible = f"**Upstreaming r{revision} · {phase}/{activity}** — {message} [Workflow run]({run_url})"
commands = _command_lines(record)
details = ""
Expand Down
18 changes: 18 additions & 0 deletions upstreaming/tests/test_status_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,24 @@ def test_render_has_short_summary_and_folded_prefilled_commands(self):
self.assertIn("/upstreaming force-develop revision=4", body)
self.assertIn("<!-- upstreaming-ledger:", body)

def test_paused_feedback_ledger_does_not_claim_work_was_requested(self):
record = contribution(phase="development", activity="fix_needed", revision=8, paused=True)
event = lifecycle._event(record, record, "development_review_feedback", "observation",
"review-1", NOW, True)
event["sequence"] = 14
body = status_ledger.render(event, record, "https://github.com/run")
self.assertIn("Repair remains pending", body)
self.assertIn("no Work was requested because the contribution is paused", body)
self.assertNotIn("and requested repair", body)

def test_unpaused_feedback_ledger_reports_repair_request(self):
record = contribution(phase="development", activity="fix_needed", revision=8, paused=False)
event = lifecycle._event(record, record, "development_review_feedback", "observation",
"review-1", NOW, True)
event["sequence"] = 14
body = status_ledger.render(event, record, "https://github.com/run")
self.assertIn("change feedback and requested repair", body)

def test_explanation_only_ledger_does_not_claim_repair(self):
record = contribution(phase="development", activity="fix_needed", revision=8, paused=True)
event = lifecycle._event(record, record, "development_review_inquiry", "observation",
Expand Down