{html.escape(digest)}diff --git a/agents/conductors/batch/_batch.py b/agents/conductors/batch/_batch.py index 640fde0..2e5b05d 100644 --- a/agents/conductors/batch/_batch.py +++ b/agents/conductors/batch/_batch.py @@ -516,8 +516,7 @@ def planner_pool(records: list[dict]) -> list[dict]: def plan(records: list[dict], *, budget: int = DEFAULT_REVIEW_BUDGET, session_lane: str = "web-github", awaiting_review: int = 0, cap: int = DEFAULT_BACKPRESSURE_CAP, queue: list[str] | None = None, - awaiting_source: str = "given", carried: list[str] | None = None, - carried_from: str = "", brief: dict | None = None, + awaiting_source: str = "given", brief: dict | None = None, attended: bool = False, released: set[str] | None = None, epic_ledgers: dict[str, str] | None = None, withheld: list[tuple[dict, str]] | None = None) -> dict: @@ -703,8 +702,6 @@ def plan(records: list[dict], *, budget: int = DEFAULT_REVIEW_BUDGET, "backpressure": {"awaiting_review": awaiting_review, "cap": cap, "state": pressure, "source": awaiting_source}, "queue": queue, - "carried": carried or [], - "carried_from": carried_from, "review_minutes_planned": spent, "members": members, "rejected": rejected, @@ -782,13 +779,6 @@ def emit(d: dict) -> None: n = len(d["lane_absent"]) print(f"Lane absent: {n} draft(s) excluded — no valid `Lane:`, and an " "unattended pick fails closed (declare one; bin/lane_backfill.py)") - if d.get("carried"): - # Read first, because a carried member is work the human is already - # holding: it costs review-minutes in THIS slot that no new member - # accounted for. - print(f"Carried in: {', '.join(d['carried'])} " - f"(from {d.get('carried_from') or 'the previous slot'}) — still " - f"in flight, and yours to review before anything new") lines = queued_epic_lines(d) if lines: # One line per queued epic ledger: what it gives this batch, or why @@ -862,20 +852,6 @@ class BatchUsageError(Exception): """Bad input from the human — reported on stderr, exit 2, nothing written.""" -def batch_records(mind: Path) -> list[Path]: - return sorted(p for p in (mind / "batches").glob("*.md") - if p.name != "AGENTS.md") - - -def newest_slot(mind: Path) -> str: - """The last record by NAME, which is lexical: `-night` sorts before `-pm` - on the same date, so a night slot collected after a pm one is not the - newest by this reckoning. `--slot` is the escape, and the reason it exists. - """ - records = batch_records(mind) - return records[-1].stem if records else "" - - def find_prompt(mind: Path, path: str) -> Path | None: """A member's prompt, wherever the lifecycle has moved it to. @@ -976,47 +952,6 @@ def derive_awaiting_review(mind: Path) -> int: return n -def read_outcomes(text: str) -> dict: - """The record's `- outcomes:` block as `{slug: outcome}`. - - `read_record` deliberately does not see the body of a non-`members:` block - (it keeps only key VALUES), so this reads the lines itself — the same way - `- notes:` is left alone.""" - out: dict[str, str] = {} - inside = False - for raw in text.split("\n"): - if raw.startswith("- outcomes:"): - inside = True - continue - if not inside: - continue - if raw.startswith(" - "): - slug, _, value = raw[4:].partition(":") - if value.strip(): - out[slug.strip()] = value.strip().split()[0] - continue - if raw.strip(): - inside = False - return out - - -def previous_carried(mind: Path) -> tuple: - """`(slot, [slug…])` — what the last collected slot handed forward. - - The next plan reads these FIRST: a carried member is already costing the - human review-minutes in the slot being planned, and a batch composed as - though it were not is over-sold by exactly that much.""" - slot = newest_slot(mind) - if not slot: - return "", [] - try: - text = (mind / "batches" / f"{slot}.md").read_text( - encoding="utf-8", errors="replace") - except OSError: - return "", [] - return slot, [s for s, o in read_outcomes(text).items() if o == "carried"] - - # -------------------------------------------------------------------- cli --- #: Flags other verbs own. Passing one to `plan` or `slice` is a usage error #: rather than a silent no-op. @@ -1903,7 +1838,6 @@ def _main_plan(mind: Path, a, lane: str) -> int: awaiting, source = derive_awaiting_review(mind), "derived from active.md" else: awaiting, source = a.awaiting_review, "--awaiting-review" - carried_from, carried = previous_carried(mind) brief = None if a.brief: res = _brief.check(Path(a.brief), mind) @@ -1914,8 +1848,7 @@ def _main_plan(mind: Path, a, lane: str) -> int: brief = _brief.parse(Path(a.brief).read_text(encoding="utf-8"))["brief"] d = plan(survey(mind), budget=a.budget, session_lane=lane, awaiting_review=awaiting, cap=a.cap, queue=read_queue(mind), - awaiting_source=source, carried=carried, carried_from=carried_from, - brief=brief, attended=a.attended, epic_ledgers=read_epic_ledgers(mind)) + awaiting_source=source, brief=brief, attended=a.attended, epic_ledgers=read_epic_ledgers(mind)) if a.as_json: print(json.dumps(d, indent=2)) return RC_OK diff --git a/agents/conductors/batch/_orchestrator.py b/agents/conductors/batch/_orchestrator.py index 95289a4..9fe77e2 100644 --- a/agents/conductors/batch/_orchestrator.py +++ b/agents/conductors/batch/_orchestrator.py @@ -3949,13 +3949,20 @@ def _close_status(brief_path: Path, slot: Path, issue: str, now: _dt.datetime, now, github) +#: The opt-in digest page is one `
`: this is all the style it uses.
+PACKET_STYLE = (":root{color-scheme:light dark;--ground:#eef1f4;--ink:#17202b}"
+ "@media (prefers-color-scheme:dark){:root{--ground:#121820;--ink:#e6ebf0}}"
+ "body{background:var(--ground);color:var(--ink);margin:0}"
+ "main{max-width:72rem;margin:0 auto;padding:1.5rem 1rem}"
+ "pre{white-space:pre-wrap;overflow-wrap:anywhere;"
+ "font:14px/1.5 \"SFMono-Regular\",Menlo,Consolas,monospace}")
+
+
def _write_packet(slot: Path, digest: str) -> Path:
"""The opt-in HTML packet (`packet: yes`): the digest on one page."""
import html
- css = Path(__file__).with_name("packet.css")
- style = css.read_text(encoding="utf-8") if css.is_file() else ""
page = ("Shift digest "
- f"{html.escape(slot.name)} "
+ f"{html.escape(slot.name)}"
f"{html.escape(digest)} \n")
out = slot / "digest.html"
out.write_text(page, encoding="utf-8")
diff --git a/agents/conductors/batch/_status.py b/agents/conductors/batch/_status.py
index 27308b0..50904ae 100644
--- a/agents/conductors/batch/_status.py
+++ b/agents/conductors/batch/_status.py
@@ -2,9 +2,9 @@
"""agents/conductors/batch/_status.py — one reading of "is a batch in flight?".
The Mind's dashboard shows this as the Shift part of its Autopilot block: the
-slot that is in flight, every member on one line, and — once there is
-something to review — the button to its packet. The *reading* lives here and
-the dashboard only supplies its facts.
+slot that is in flight, its watcher's `- live:` line and shift issue, and any
+member rows the record lists. The *reading* lives here and the dashboard only
+supplies its facts.
Two constraints shape this module, and they are why it is a module at all:
@@ -102,13 +102,13 @@ def _head(text: str, limit: int = 72) -> str:
return head if len(head) <= limit else head[:limit - 1].rstrip() + "…"
-def dev_status(slot: str, keys: dict, members: list, review_exists: bool,
- pages: str) -> dict | None:
+def dev_status(slot: str, keys: dict, members: list,
+ review_exists: bool) -> dict | None:
"""The Mind's (development) reading.
- A dev batch is dispatched at once and reviewed at once: it is open until
- it has been reviewed, and the review button appears when `collect` has
- stamped `collected:` — that is when a packet exists to press it on.
+ A shift is open until it has been reviewed: `reviewed-at:` stamped in the
+ record, or a review file on disk. A record that still carries the retired
+ `collected:` key reads like any other.
"""
if _one(keys, "reviewed-at") or review_exists:
return None
@@ -125,12 +125,10 @@ def dev_status(slot: str, keys: dict, members: list, review_exists: bool,
state, detail = AWAITING, _head(outcome)
rows.append({"slug": m.get("slug", ""), "state": state,
"detail": detail})
- return _status(slot, "dev", keys, rows,
- reviewable=bool(_one(keys, "collected")), pages=pages)
+ return _status(slot, "dev", keys, rows)
-def _status(slot: str, kind: str, keys: dict, rows: list, reviewable: bool,
- pages: str) -> dict:
+def _status(slot: str, kind: str, keys: dict, rows: list) -> dict:
return {
"slot": slot,
"kind": kind,
@@ -138,9 +136,6 @@ def _status(slot: str, kind: str, keys: dict, rows: list, reviewable: bool,
"members": rows,
"in_progress": sum(1 for r in rows if r["state"] == IN_PROGRESS),
"awaiting": sum(1 for r in rows if r["state"] == AWAITING),
- "reviewable": reviewable,
- "url": review_url(pages, slot) if reviewable else "",
- "packet": f"batches/packets/{slot}.html",
# A running shift's status, as its watcher last wrote it into the
# record (`- live:`) — a record line, not a clock.
"live": _one(keys, "live"),
@@ -180,11 +175,6 @@ def pick_slot(rows: list) -> dict | None:
return max(live, key=lambda r: (r["dispatched"], r["slot"]))
-def review_url(pages: str, slot: str) -> str:
- """The packet's Pages URL, `''` when the site URL is underivable."""
- return f"{pages}packets/{slot}.html" if pages else ""
-
-
# ------------------------------------------------------------ the renders ---
#: The Shift sub-part's anchor on the dashboard.
ANCHOR = "shift"
@@ -212,13 +202,13 @@ def to_review(st: dict | None) -> int:
"""Members a human still has to review once the shift has ended."""
if not st:
return 0
- return st["awaiting"] or (len(st["members"]) if st["reviewable"] else 0)
+ return st["awaiting"]
def active(st: dict | None) -> bool:
"""Running, or ended with something to review: the Shift part shows the
detail. Otherwise it is one quiet line."""
- return bool(st) and (is_live(st) or bool(to_review(st)) or st["reviewable"])
+ return bool(st) and (is_live(st) or bool(to_review(st)))
def badge(st: dict | None) -> str:
@@ -227,7 +217,7 @@ def badge(st: dict | None) -> str:
if is_live(st):
return f"{_mode(st) or 'LIVE'} · {st['in_progress']} in progress"
n = to_review(st)
- if n or (st and st["reviewable"]):
+ if n:
return f"{n} to review"
return ""
@@ -287,16 +277,7 @@ def render_html(st: dict | None, last: dict | None = None) -> str:
line += f' — {esc(r["detail"])}'
items.append(f"Review packet: '
- f'{esc(st["packet"])}
(nothing to review yet)
') + H.append('(nothing to review yet)
') return "\n".join(H) @@ -321,10 +302,5 @@ def render_md(st: dict | None, last: dict | None = None) -> str: L.append(line) if st["members"]: L.append("") - if st["url"]: - L.append(f"[Review this batch →]({st['url']})") - elif st["reviewable"]: - L.append(f"Review packet: `{st['packet']}`") - else: - L.append("_(nothing to review yet)_") + L.append("_(nothing to review yet)_") return "\n".join(L) diff --git a/agents/conductors/batch/packet.css b/agents/conductors/batch/packet.css deleted file mode 100644 index ded11b6..0000000 --- a/agents/conductors/batch/packet.css +++ /dev/null @@ -1,506 +0,0 @@ -/* agents/conductors/batch/packet.css — the review packet's whole stylesheet. - * - * A trimmed port of `PyAutoMind/batches/packets/2026-08-31-am.html`, the page - * `batches/packets/TEMPLATE.md` names as its reference implementation: only the - * rules that template names survive here (the figure, caption and science-table - * rules stayed behind with the science packets that needed them). - * - * It is a FILE rather than a string in `_batch.py` because it is full of `{`, - * `}` and `%`, every one of which a `.format`/`%` template would eat. The - * renderer inlines it verbatim; only `%%TOKEN%%` placeholders are substituted, - * and this sheet has none. - * - * `[hidden] { display: none !important; }` is the first rule on purpose: an - * archived packet is served raw from Pages with no host wrapper, and the first - * packet's submit modal could not be closed because it borrowed that reset from - * the artifact viewer (TEMPLATE.md, "Standalone document", learned 2026-08-31). - */ -[hidden] { display: none !important; } -:root { - --ground: #eef1f4; - --surface: #ffffff; - --ink: #17202b; - --ink-2: #4c5866; - --line: #d5dbe2; - --accent: #0f6e73; - --accent-ink: #ffffff; - --failed: #b3261e; - --failed-soft: #f9e3e1; - --suspect: #a65f00; - --suspect-soft: #f8ecd6; - --healthy: #2c7a4b; - --healthy-soft: #dff0e5; - --running: #2f5fc4; - --running-soft: #e0e8fa; - --merged: #5b4bb5; - --merged-soft: #e9e4f7; - --sans: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; - --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif; - --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace; -} -@media (prefers-color-scheme: dark) { - :root:not([data-theme="light"]) { - --ground: #121820; - --surface: #1a222d; - --ink: #e6ebf0; - --ink-2: #9aa7b5; - --line: #2c3846; - --accent: #4fb3b8; - --accent-ink: #0d1418; - --failed: #ff8a80; - --failed-soft: #3a1f1d; - --suspect: #f0b45a; - --suspect-soft: #3a2c14; - --healthy: #7bd39a; - --healthy-soft: #173123; - --running: #8fb0ff; - --running-soft: #1c2848; - --merged: #b9a7ff; - --merged-soft: #26203f; - } -} -:root[data-theme="dark"] { - --ground: #121820; - --surface: #1a222d; - --ink: #e6ebf0; - --ink-2: #9aa7b5; - --line: #2c3846; - --accent: #4fb3b8; - --accent-ink: #0d1418; - --failed: #ff8a80; - --failed-soft: #3a1f1d; - --suspect: #f0b45a; - --suspect-soft: #3a2c14; - --healthy: #7bd39a; - --healthy-soft: #173123; - --running: #8fb0ff; - --running-soft: #1c2848; - --merged: #b9a7ff; - --merged-soft: #26203f; -} - -body { - background: var(--ground); - color: var(--ink); - font-family: var(--sans); - font-size: 16px; - line-height: 1.55; - margin: 0; - overflow-x: hidden; -} -* { box-sizing: border-box; } -a { color: var(--accent); } -:focus-visible { - outline: 2px solid var(--accent); - outline-offset: 2px; - border-radius: 2px; -} - -.page { - max-width: 1120px; - margin: 0 auto; - padding: 40px 20px 72px; - display: flex; - flex-direction: column; - gap: 34px; -} - -.eyebrow, .label, .navhead { - font-size: 11px; - letter-spacing: .08em; - text-transform: uppercase; - font-weight: 600; - color: var(--ink-2); - margin: 0; -} - -/* ---------- header ---------- */ -.pagehead { display: flex; flex-direction: column; gap: 10px; } -.pagehead h1 { - font-family: var(--serif); - font-weight: 600; - font-size: 40px; - line-height: 1.1; - margin: 0; - letter-spacing: -.01em; -} -.lede { margin: 0; max-width: 68ch; color: var(--ink-2); } -.stampline { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; } -.stampline code { font-size: 12px; } - -/* ---------- summary tiles ---------- */ -.tiles { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); - gap: 10px; -} -.tile { - background: var(--surface); - border: 1px solid var(--line); - border-radius: 4px; - padding: 12px 14px; - display: flex; - flex-direction: column; - gap: 3px; -} -.tile .num { - font-family: var(--mono); - font-variant-numeric: tabular-nums; - font-size: 26px; - font-weight: 500; - line-height: 1.1; - color: var(--ink); -} -.tile .cap { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; } -.tile.t-failed { border-left: 3px solid var(--failed); } -.tile.t-failed .num { color: var(--failed); } -.tile.t-suspect { border-left: 3px solid var(--suspect); } -.tile.t-suspect .num { color: var(--suspect); } -.tile.t-healthy { border-left: 3px solid var(--healthy); } -.tile.t-healthy .num { color: var(--healthy); } -.tile.t-running { border-left: 3px solid var(--running); } -.tile.t-running .num { color: var(--running); } -.tile.t-merged { border-left: 3px solid var(--merged); } -.tile.t-merged .num { color: var(--merged); } -.tile.t-minutes { - grid-column: span 2; - border-left: 3px solid var(--accent); -} -.tile.t-minutes .num { color: var(--accent); } -.tile .foot { font-size: 12px; color: var(--ink-2); } -.tile .sum { font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; } - -/* ---------- inputs bar ---------- */ -.inputsbar { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; - background: var(--surface); border: 1px solid var(--line); border-radius: 10px; - padding: 14px 18px; } -.inputsbar .field { display: flex; flex-direction: column; gap: 5px; } -.inputsbar .field label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); } -.inputsbar input { font: 500 14px/1.4 "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; - font-variant-numeric: tabular-nums; background: var(--ground); color: var(--ink); - border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; min-width: 170px; } -.inputsbar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } -.inputsbar .inputshint { font-size: 12.5px; color: var(--ink-2); margin: 0 0 6px; max-width: 34ch; } - -/* ---------- callout ---------- */ -.callout { - background: var(--failed-soft); - border: 1px solid var(--line); - border-left: 4px solid var(--failed); - border-radius: 4px; - padding: 16px 18px; - display: flex; - flex-direction: column; - gap: 6px; -} -.callout p { margin: 0; max-width: 78ch; } -.callout.ok { background: var(--healthy-soft); border-left-color: var(--healthy); } - -/* ---------- rulings panel ---------- */ -.panel { - background: var(--surface); - border: 1px solid var(--line); - border-radius: 4px; - padding: 20px 22px; - display: flex; - flex-direction: column; - gap: 12px; -} -.panel > h2 { - font-family: var(--serif); - font-weight: 600; - font-size: 22px; - margin: 0; -} -ol.rulings { - margin: 0; - padding-left: 26px; - display: flex; - flex-direction: column; - gap: 9px; -} -ol.rulings li { max-width: 78ch; } -ol.rulings li::marker { font-family: var(--mono); color: var(--accent); font-weight: 500; } -ol.rulings .who { font-weight: 600; } -ul.integ { - margin: 0; - padding-left: 20px; - display: flex; - flex-direction: column; - gap: 9px; -} -ul.integ li { max-width: 78ch; } -ul.integ .who { font-weight: 600; } - -/* ---------- shell / sidenav ---------- */ -.shell { display: flex; flex-direction: column; gap: 34px; } -.sidenav { display: none; } -.content { display: flex; flex-direction: column; gap: 34px; min-width: 0; } - -@media (min-width: 1000px) { - .shell { - display: grid; - grid-template-columns: 220px minmax(0, 1fr); - gap: 36px; - align-items: start; - } - .sidenav { - display: block; - position: sticky; - top: 20px; - align-self: start; - } -} -.navhead { margin-bottom: 10px; } -.sidenav ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 2px; } -.sidenav a { - display: flex; - flex-direction: column; - gap: 2px; - padding: 7px 9px; - border-left: 3px solid transparent; - border-radius: 0 3px 3px 0; - text-decoration: none; - color: var(--ink-2); - font-size: 13px; - line-height: 1.3; -} -.sidenav a:hover { color: var(--ink); background: var(--surface); } -.sidenav a.active { - color: var(--ink); - background: var(--surface); - border-left-color: var(--accent); - font-weight: 500; -} -.mini { - font-family: var(--mono); - font-size: 10px; - letter-spacing: .06em; - text-transform: uppercase; -} -.mini.m-failed { color: var(--failed); } -.mini.m-suspect { color: var(--suspect); } -.mini.m-healthy { color: var(--healthy); } -.mini.m-running { color: var(--running); } -.mini.m-merged { color: var(--merged); } - -/* ---------- members ---------- */ -.member { - background: var(--surface); - border: 1px solid var(--line); - border-left: 5px solid var(--sev, var(--line)); - border-radius: 4px; - padding: 22px 24px 24px; - display: flex; - flex-direction: column; - gap: 18px; - scroll-margin-top: 20px; -} -.member.sev-failed { --sev: var(--failed); } -.member.sev-suspect { --sev: var(--suspect); } -.member.sev-healthy { --sev: var(--healthy); } -.member.sev-running { --sev: var(--running); } -.member.sev-merged { --sev: var(--merged); } -.member.pending { border-style: dashed; opacity: .88; } -.m-head { - display: flex; - flex-wrap: wrap; - gap: 12px 20px; - justify-content: space-between; - align-items: flex-start; - border-bottom: 1px solid var(--line); - padding-bottom: 14px; -} -.m-head-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; } -.m-head h2 { - font-family: var(--serif); - font-weight: 600; - font-size: 23px; - line-height: 1.25; - margin: 0; -} -.m-head .jobs { - font-family: var(--mono); - font-size: 13px; - color: var(--ink-2); - overflow-wrap: anywhere; - margin: 0; -} -.m-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; } - -.chip { - display: inline-flex; - align-items: center; - gap: 6px; - font-family: var(--mono); - font-size: 11px; - letter-spacing: .08em; - text-transform: uppercase; - font-weight: 500; - padding: 4px 9px; - border-radius: 3px; - white-space: nowrap; -} -.chip-failed { background: var(--failed-soft); color: var(--failed); border: 1px solid var(--failed); } -.chip-suspect { background: var(--suspect-soft); color: var(--suspect); border: 1px solid var(--suspect); } -.chip-healthy { background: var(--healthy-soft); color: var(--healthy); border: 1px solid var(--healthy); } -.chip-running { background: var(--running-soft); color: var(--running); border: 1px solid var(--running); } -.chip-merged { background: var(--merged-soft); color: var(--merged); border: 1px solid var(--merged); } -.chip-pending { background: var(--suspect-soft); color: var(--suspect); border: 1px dashed var(--suspect); } -.chip-min { - align-self: flex-start; - background: var(--ground); - color: var(--ink-2); - border: 1px solid var(--line); - font-variant-numeric: tabular-nums; -} - -.ruled { - display: inline-flex; - align-items: center; - gap: 6px; - font-size: 11px; - letter-spacing: .08em; - text-transform: uppercase; - font-weight: 600; - color: var(--ink-2); - cursor: pointer; - user-select: none; -} -.ruled input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; } -.member.is-ruled .ruled { color: var(--accent); } - -.blocks { display: flex; flex-direction: column; gap: 18px; } -.block { display: flex; flex-direction: column; gap: 7px; } -.block > p, .block li, .block dd { max-width: 68ch; } -.block p { margin: 0; } -.block ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; } -.block ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; } -.block ol li::marker { font-family: var(--mono); color: var(--accent); } - -.ruling { - background: var(--ground); - border-left: 4px solid var(--accent); - border-radius: 0 4px 4px 0; - padding: 14px 18px; - gap: 6px; -} -.ruling .label { color: var(--accent); } -.ruling .decision { - font-size: 17px; - line-height: 1.5; - font-weight: 500; - max-width: 74ch; -} - -.tag { - font-family: var(--mono); - font-size: 12px; - color: var(--accent); - background: var(--ground); - border: 1px solid var(--line); - border-radius: 3px; - padding: 1px 5px; - margin-right: 6px; - white-space: nowrap; -} -code, .path { - font-family: var(--mono); - font-size: 13px; - overflow-wrap: anywhere; -} -.block code { background: var(--ground); border-radius: 3px; padding: 0 3px; } - -dl.look { margin: 0; display: flex; flex-direction: column; gap: 9px; } -dl.look dt { - font-size: 11px; - letter-spacing: .08em; - text-transform: uppercase; - font-weight: 600; - color: var(--ink-2); -} -dl.look dd { - margin: 2px 0 0; - font-family: var(--mono); - font-size: 13px; - line-height: 1.5; - overflow-wrap: anywhere; - color: var(--ink); -} - -/* ---------- the PR readout table ---------- */ -.scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 4px; } -table { border-collapse: collapse; width: 100%; font-size: 14px; } -th, td { - padding: 7px 12px; - border-bottom: 1px solid var(--line); - text-align: left; - vertical-align: top; - white-space: nowrap; -} -thead th { - font-size: 11px; - letter-spacing: .06em; - text-transform: uppercase; - color: var(--ink-2); - background: var(--ground); - font-weight: 600; -} -tbody tr:last-child td { border-bottom: 0; } -td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; } -td.mono { font-family: var(--mono); font-size: 13px; } - -/* ---------- review controls ---------- */ -.block.yourreview { border: 1px solid var(--accent); border-radius: 8px; padding: 12px 14px; } -.rchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; } -.rchip { position: relative; display: inline-block; } -.rchip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; } -.rchip span { display: inline-block; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; - font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--ground); } -.rchip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } -.rchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; } -.notetext { width: 100%; box-sizing: border-box; min-height: 44px; overflow: hidden; resize: vertical; - font: 400 14px/1.5 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink); background: var(--ground); - border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; } -.notetext:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; } - -/* ---------- submit bar and modal ---------- */ -.submitspacer { height: 66px; } -.submitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; - justify-content: space-between; gap: 14px; background: var(--surface); border-top: 1px solid var(--line); - padding: 10px 22px; box-shadow: 0 -4px 14px rgba(0, 0, 0, .08); } -.progresscount { margin: 0; font: 500 13.5px/1.4 "IBM Plex Mono", ui-monospace, monospace; - font-variant-numeric: tabular-nums; color: var(--ink-2); } -.btn { font: 600 14px/1.3 "IBM Plex Sans", system-ui, sans-serif; padding: 8px 16px; border-radius: 6px; - border: 1px solid var(--line); background: var(--ground); color: var(--ink); cursor: pointer; - text-decoration: none; display: inline-block; } -.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } -.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } -.btn.is-disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; } -.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 18, .55); - display: flex; align-items: center; justify-content: center; padding: 20px; } -.modal-panel { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; - max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; padding: 20px 22px; } -.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; } -.modal-head h2 { margin: 0; font-size: 20px; } -.modal-hint { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; } -.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; } -.smallprint { font-size: 12.5px; color: var(--ink-2); margin: 2px 0; } -.mdpreview { background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; - font: 400 12.5px/1.55 "IBM Plex Mono", ui-monospace, monospace; white-space: pre-wrap; - overflow-wrap: anywhere; max-height: 40vh; overflow-y: auto; margin: 10px 0; } -.modal-final { font-size: 14px; font-weight: 600; margin: 10px 0 0; } - -footer.pagefoot { - border-top: 1px solid var(--line); - padding-top: 16px; - font-family: var(--mono); - font-size: 12px; - color: var(--ink-2); - line-height: 1.7; - overflow-wrap: anywhere; -} - -@media (prefers-reduced-motion: reduce) { - * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } -} diff --git a/agents/conductors/intake/_intake.py b/agents/conductors/intake/_intake.py index 041bbe7..9c0a665 100755 --- a/agents/conductors/intake/_intake.py +++ b/agents/conductors/intake/_intake.py @@ -1900,13 +1900,11 @@ def _batch_status(mind: Path) -> dict | None: Records live at `(last shift 2026-11-14-pm3 — closed, ' diff --git a/tests/test_intake_dashboard.py b/tests/test_intake_dashboard.py index f2715e7..37c76f0 100644 --- a/tests/test_intake_dashboard.py +++ b/tests/test_intake_dashboard.py @@ -1186,14 +1186,16 @@ def test_in_flight_batch_reads_as_in_progress_with_no_button(tmp_path): assert 'Review this batch →' in html - # After the shift, the Autopilot badge and nav card read what is to review. + assert "Review this batch" not in page and "Review this batch" not in html + assert "packets/2026-09-03-pm.html" not in page + html + assert '(\d+) to review', html) assert n and int(n.group(1)) >= 1 assert (f'board-nav-count">{n.group(1)}' @@ -1222,14 +1224,12 @@ def test_empty_mind_omits_batch_placeholder(tmp_path): assert "No batch in flight." not in _html(mind) -def test_batch_box_md_and_html_agree_on_slugs_and_the_review_url(tmp_path): +def test_batch_box_md_and_html_agree_on_slugs(tmp_path): mind = _mind(tmp_path, batches={"2026-09-03-pm.md": DEV_RECORD_COLLECTED}, registries={"repos.yaml": REPOS_YAML}) page, html = _page(mind), _html(mind) - url = "https://exampleorg.github.io/PyAutoMind/packets/2026-09-03-pm.html" for slug in ("autofit-resampling-info", "autonerves-colab-silence"): assert slug in page and slug in html - assert url in page and url in html # --------------------------------------------------------------------------- # diff --git a/tests/test_orchestrator_steering.py b/tests/test_orchestrator_steering.py index 1b902b8..4edafb8 100644 --- a/tests/test_orchestrator_steering.py +++ b/tests/test_orchestrator_steering.py @@ -363,7 +363,7 @@ def test_record_key_upserts_the_live_line_and_the_box_shows_it(): assert _mind_writer.validate_op({"op": "record-key", "path": "batches/x.md", "key": "live", "value": "two\nlines"}, lm) keys = _status.read_record(twice)["keys"] - st = _status.dev_status("x", keys, [], False, "") + st = _status.dev_status("x", keys, [], False) assert st["live"] == "LIVE · 1 finished" assert "Live: LIVE · 1 finished" in _status.render_md(st) url = "https://github.com/o/r/issues/1#issuecomment-2"