Skip to content

feat(core): dashboard ambient signals directive#89

Merged
hqhq1025 merged 2 commits intomainfrom
wt/loop-feat-dashboard-ambient
Apr 19, 2026
Merged

feat(core): dashboard ambient signals directive#89
hqhq1025 merged 2 commits intomainfrom
wt/loop-feat-dashboard-ambient

Conversation

@hqhq1025
Copy link
Copy Markdown
Collaborator

Dashboard 缺 LIVE pill / 实时时钟 / KPI 色条。craft-directives §dashboard substitute 末尾追加 ambient signals 子节。

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings

  • [Major] Prompt rule conflict: requires setInterval while global output rules prohibit JS animation loops — this creates contradictory instructions and can cause generated artifacts to violate system constraints. Evidence packages/core/src/prompts/index.ts:417 (same text also added at packages/core/src/prompts/craft-directives.v1.txt:97), conflicting with existing rule in the same prompt that says motion must be CSS-only and no JS loops.
    Suggested fix:
    • A live clock in the top-right of the page header: HH:MM:SS in tabular-nums font, updated each second via setInterval, with the current date below in smaller secondary text.
    • A clock-like status in the top-right of the page header: HH:MM:SS in tabular-nums styling, with the current date below in smaller secondary text; avoid JS timer loops unless explicitly requested.
    
    

Questions

  • Not found in repo/docs: docs/VISION.md and docs/PRINCIPLES.md are unavailable in this checkout. Should this CI job mount internal docs/ so policy checks can be fully validated?

Summary

  • Review mode: initial
  • 1 major issue found in this diff: newly added dashboard directive conflicts with existing no-JS-loop prompt rule and may produce non-compliant artifacts.

Testing

  • Not run (automation)

open-codesign Bot

Comment thread packages/core/src/prompts/index.ts Outdated

- A "LIVE" pill badge in the top-right corner of any chart card showing real-time data. Pill is small (font 10-11px), accent color border 1px, padding 2x6px, border-radius 999.
- A status indicator near the page title: a small green dot (8px diameter, accent color, animated pulse keyframe) followed by "SYSTEM ONLINE" or "LIVE" in 11px uppercase tracked text.
- A live clock in the top-right of the page header: HH:MM:SS in tabular-nums font, updated each second via setInterval, with the current date below in smaller secondary text.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Major] This line mandates setInterval, but the same prompt already forbids JS animation loops (CSS-only motion). Please rewrite this cue to avoid requiring a JS timer loop, or explicitly carve out a narrow exception for clocks to keep instructions consistent.

The "no JS animation loops" output rule conflicted with the dashboard
ambient signals directive that requires a live clock via setInterval.
Make the live clock an explicit, single permitted exception (one
setInterval(updateClock, 1000)) and forbid chaining other animations
onto it. Update output-rules to reference the exception so the model
sees a coherent set of rules.
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Findings

  • None.

Summary

  • Review mode: follow-up after new commits
  • No issues found in added/modified lines of this update.
  • Residual risk: prompt-behavior changes are only partially covered by one added assertion (composeSystemPrompt contains dashboard ambient-signal text). Not found in repo/docs: docs/VISION.md and docs/PRINCIPLES.md in this checkout, so policy cross-check was limited to CLAUDE.md and the changed files.

Testing

  • Not run (automation)

open-codesign Bot

@hqhq1025 hqhq1025 merged commit 39fc2e4 into main Apr 19, 2026
5 of 6 checks passed
@hqhq1025 hqhq1025 deleted the wt/loop-feat-dashboard-ambient branch April 19, 2026 06:36
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