Skip to content

chore(archive): apply add-scene-awareness spec deltas#115

Merged
chenchaoyi merged 1 commit into
mainfrom
chore/archive-add-scene-awareness
May 22, 2026
Merged

chore(archive): apply add-scene-awareness spec deltas#115
chenchaoyi merged 1 commit into
mainfrom
chore/archive-add-scene-awareness

Conversation

@chenchaoyi

Copy link
Copy Markdown
Owner

Summary

Archives add-scene-awareness (#114). Two things land:

  • Spec deltas applied into the canonical openspec/specs/ tree — new openspec/specs/scenes/spec.md (full capability spec with Purpose + 3 requirements + 8 scenarios), plus MODIFIED requirements in cli (--scene SCENE), event-log (session_meta), analyze (session_meta consumer + LLM scene context), bluetooth-scanning (presence_gate_s sourced from scene), and tui-shell (subtitle scene chip).
  • Change directory moves to openspec/changes/archive/2026-05-22-add-scene-awareness/.

Test plan

  • openspec validate --specs --strict — 22/22 passed (was 21; scenes is the 22nd capability)
  • All artifacts done, all tasks complete

Generated with Claude Code

Applies the spec deltas from add-scene-awareness (#114) into the
canonical openspec/specs/ tree:

- NEW openspec/specs/scenes/spec.md — full capability spec
  (Purpose + 3 requirements + 8 scenarios)
- MODIFIED specs/cli/spec.md — adds --scene SCENE requirement
- MODIFIED specs/event-log/spec.md — adds session_meta requirement
- MODIFIED specs/analyze/spec.md — adds session_meta consumer +
  --for-llm scene context requirements
- MODIFIED specs/bluetooth-scanning/spec.md — presence_gate_s
  default sourced from scene, --ble-presence-gate flag overrides
- MODIFIED specs/tui-shell/spec.md — adds subtitle scene chip
  requirement (EN + ZH formats)

Moves the change dir to
openspec/changes/archive/2026-05-22-add-scene-awareness/.

All artifacts done, all tasks complete, validate --specs --strict
green (22/22 — scenes is the 22nd capability).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@chenchaoyi chenchaoyi merged commit c585af7 into main May 22, 2026
5 checks passed
@chenchaoyi chenchaoyi deleted the chore/archive-add-scene-awareness branch May 22, 2026 09:36
@chenchaoyi chenchaoyi mentioned this pull request May 22, 2026
8 tasks
chenchaoyi added a commit that referenced this pull request May 22, 2026
Scene awareness. diting now carries an explicit notion of where
the user is right now, threaded through pollers + the JSONL
session header + the LLM prompt bundle.

Four named scenes (home / office / public / audit), each with:
  - per-scene BLE presence_gate_s default (home=5s, office=15s,
    public=30s, audit=0s)
  - per-scene LLM prior injected into --for-llm prompt template
  - chip in the TUI title bar showing the active scene

Resolution precedence (5 tiers, highest first):
  1. --scene SCENE CLI flag
  2. DITING_SCENE env var
  3. scenes.yaml SSID / gateway_mac match (per-network pinning,
     mirrors aps.yaml pattern, git-ignored, human-curated only)
  4. classify_environment heuristic on the active connection
     (WPA-Enterprise auth -> office; >= 30 BSSIDs visible ->
     office; otherwise home; public stays opt-in because
     captive-portal detection without active probing is
     unreliable)
  5. home default

scene_source field on session_meta records the tier that won:
{cli, env, yaml, auto, default}. session_meta is a new JSONL
event type written as line 1 of every diting session, carrying
scene + scene_source + diting_version + ssid + gateway_ip +
hostname (BSSID intentionally left out for PII reasons).

PRs bundled: #114 (P1 + P4 scene awareness), #115 (archive),
#116 (P2 auto-detect + scenes.yaml), #117 (archive).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant