{
  "schema": "circlethrice.r7.return.v1",
  "slice": "R7-01",
  "title": "Time-span selector — proposed candidate revision",
  "status": "proposed-candidate",
  "prepared": "2026-09-30",
  "authority": {
    "current": "R6",
    "claim": "none — this artifact is a proposal; R6 remains current authority",
    "approved": false,
    "committed": false,
    "deployed": false,
    "published": false,
    "braid_written": false
  },
  "identity": {
    "working_handle": "R7-01",
    "handle_note": "registry slice handle, not a Braid identity",
    "changed_component": "CT-TSB01",
    "change_kind": "versioned-forward-under-same-identity",
    "existing_ids_returned": [
      "CT-PRT02", "CT-UNI01", "CT-UNI02",
      "REQ-R6-07", "REQ-R6-08", "REQ-R6-31", "REQ-R6-33",
      "REQ-CT-SPAN-PICKER-IS-EXPLICITLY-LABELLED",
      "REQ-CT-SPAN-PICKER-CARRIES-PRESETS",
      "REQ-recFiMXaSi9RxI9F5"
    ],
    "related_source_brief": "DES-CT-R6-B8",
    "provenance_labels": ["D-104", "D-105", "D-118", "D-042"],
    "ids_minted": [],
    "stamp": "no null or ambiguous design stamp; data-r7-* provenance only"
  },
  "baseline": {
    "page": "R6-21 Span Calendars.html",
    "file_set": "local R6 set shipped byte-identical in this package",
    "audit_reference": "hollandfair/designs@33a6610 (per packet; not re-verified this session)",
    "defect_recorded": {
      "what": "R6-21 mixed/null design stamp — <main> data-braid-design=\"null\" (R5 provenance) vs <body> DES-CT-R6-B8",
      "action": "recorded in HANDOFF + candidate head comment; R6 file left untouched; R7 copy stamped clean"
    }
  },
  "files": {
    "new": [
      { "file": "r7-01-tsb.js", "role": "R7 behaviour layer" },
      { "file": "r7-01-tsb.css", "role": "R7 presentation overrides (scoped)" },
      { "file": "R7-01 Portal Candidate.html", "role": "candidate entry (copy of R6-21 + 2 links + stamp)" },
      { "file": "R7-01 Span Selector.html", "role": "design package document" },
      { "file": "R7-01 HANDOFF.md", "role": "handoff manifest" },
      { "file": "r7-01-return.json", "role": "this return contract" }
    ],
    "changed": [
      { "component": "CT-TSB01", "note": "only via the new layer + candidate copy" }
    ],
    "preserved_readonly": [
      "r5-portal.js", "ct-canon.js", "ct-canon.css",
      "r4nav/picker13.js", "r5-picker13.css",
      "r6-02-model.js", "r6-21-tsb-open.js",
      "all other R4/R5/R6 files in the set"
    ],
    "dependencies_unchanged": ["CT-UNI01", "CT-UNI02", "CT-PRT02"]
  },
  "wording": {
    "trigger_default": "Choose time span",
    "trigger_after_deliberate": "Change time span",
    "picker_heading": "Choose time span",
    "exit": "Close",
    "presets": ["Today", "This week", "This month", "This year", "Custom"],
    "custom_confirm": "Show this range",
    "custom_cancel": "Cancel",
    "selected_state": "Selected (accessible: \"Selected, This month\")",
    "confirmation": "page title + exact date boundaries (span head)",
    "announcement": "Showing {label}, {start} through {end}.",
    "forbidden_absent": ["standalone Edit", "pencil-only affordance", "persistent Applied badge", "general Save"]
  },
  "state_matrix": [
    { "state": "fresh-untouched", "visible": "Choose time span; Today · <date>; head resolves today dynamically", "url": "none (never stale)" },
    { "state": "collapsed-deliberate", "visible": "Change time span; summary label · boundaries", "url": "#r7span=&from=&to=" },
    { "state": "expanded", "visible": "heading Choose time span; Close visible; current option Selected", "url": "unchanged" },
    { "state": "preset-chosen", "visible": "page + bar + head update; picker closes", "url": "updates immediately" },
    { "state": "custom-editing", "visible": "boundaries + Show this range / Cancel; provisional preview", "url": "unchanged until confirm" },
    { "state": "custom-applied", "visible": "page + head update; closes", "url": "exact boundaries encoded" },
    { "state": "closed-without-change", "visible": "prior selection remains", "url": "unchanged" },
    { "state": "invalid-custom-pair", "visible": "picker stays open; field-level correction", "url": "unchanged" }
  ],
  "responsive": {
    "desktop": "canon 1200; bar geometry + whole-bar target preserved; picker centred under the bar, never covering the always-today strip; span head at top of reading column",
    "mobile": "specified composition: collapsed control (wording + summary + chevrons); bottom tray with heading, Close, presets before Custom, >=48px targets, no horizontal scroll; implementation on the R6-01 base (D-046)"
  },
  "accessibility": {
    "bar": "role=button; accessible name matches visible wording; aria-expanded tracks the picker",
    "keyboard": "Enter/Space open; Tab contained; Escape closes without change; focus enters at heading, returns to bar",
    "announcements": "single polite live region; transient only",
    "targets": "new controls >=48px tall (Close, presets, Show this range, Cancel); bar unchanged at 69px",
    "grammar": "rectangular fills + edge accents; no dots/circles/arcs; auspice tokens untouched; today = canon l-blue rectangular outline",
    "flagged_delta": "engine pill active tone moved from historical teal to action blue (Q-11)"
  },
  "acceptance": [
    { "check": "Choose time span on untouched default", "result": "pass" },
    { "check": "Change time span after deliberate selection", "result": "pass" },
    { "check": "span name + exact boundaries in page-level context", "result": "pass" },
    { "check": "no Applied badge / Edit / pencil-only / needless Save", "result": "pass" },
    { "check": "presets apply in <=2 interactions", "result": "pass" },
    { "check": "Close visible; Escape closes without change", "result": "pass" },
    { "check": "closing without change preserves prior selection", "result": "pass" },
    { "check": "deliberate selection survives refresh + URL share", "result": "pass" },
    { "check": "fresh visit resolves to the actual current day", "result": "pass-with-note", "note": "candidate uses its fixture day; production resolves today (R7_TODAY)" },
    { "check": "mobile bottom tray with 48px targets", "result": "specified", "note": "implementation on R6-01 base" },
    { "check": "auspiciousness dominant colour signal", "result": "pass" },
    { "check": "existing IDs + unrelated locked components preserved", "result": "pass", "note": "byte-identical dependency copies verified" }
  ],
  "verification": {
    "method": "live browser runs (headless Chrome via CDP) + computed-style probes + SHA-256 comparisons",
    "console_errors": 0,
    "runs": [
      "rest -> open -> preset apply -> reopen -> provisional -> Show this range",
      "Escape close + focus return",
      "Cancel (discard, stay open) + Close",
      "outside-press close; bar re-press toggle close",
      "Back/Forward restore; hash set + reload restore",
      "selection grammar + today marker computed-style checks",
      "byte-identical dependency verification (top level + fonts/ + r4nav/ + assets/)"
    ]
  },
  "open_questions": [
    { "id": "Q-1", "q": "Quarter label under the new taxonomy (currently presents as Custom range)" },
    { "id": "Q-2", "q": "Cancel scope — stays open (candidate) vs closes" },
    { "id": "Q-3", "q": "Custom-range previous/next rule (candidate steps by enclosing unit)" },
    { "id": "Q-4", "q": "Backwards boundary pair copy + treatment (new transient copy introduced)" },
    { "id": "Q-5", "q": "Precision month/quarter rolling semantics vs calendar-aligned" },
    { "id": "Q-6", "q": "Span-head placement confirmation (top of zone 1)" },
    { "id": "Q-7", "q": "Span head on the Orrery tab (omitted in this candidate)" },
    { "id": "Q-8", "q": "Fixture vs production date hook (R7_TODAY)" },
    { "id": "Q-9", "q": "Baseline commit paste/verification from Open Code" },
    { "id": "Q-10", "q": "Mobile implementation target (R6-01 base, D-046)" },
    { "id": "Q-11", "q": "Pill active tone delta (historical teal -> action blue)" }
  ],
  "assumptions": [
    "A-1 weeks are Monday-start (matches packet example Sep 28 - Oct 4)",
    "A-2 Today preset marked Selected while untouched",
    "A-3 announcement pattern 'Showing {label}, {start} through {end}.'",
    "A-4 hash-based URL scheme; field semantics identical to any query-param port"
  ],
  "constraints_honoured": [
    "no commit", "no deploy", "no publish", "no Braid write", "no new IDs",
    "no edits to r5-portal.js / ct-canon.js / r4nav/picker13.js / any R4-R6 HTML",
    "bar geometry + whole-bar target preserved; locked segments untouched"
  ],
  "next_review": {
    "card": "Jamie's quick review card: scope-only? identities preserved? solves the stated problem? desktop+mobile intent explicit? states/data/questions visible? bundle complete and frozen?",
    "stop_rule": "do not start the next packet (R7-02) until this slice is accepted or returned for bounded revision"
  }
}
