Repository navigation
Add a view-only sample session that shows Intent and drift - #629
Merged
Merged
Conversation
A new reader can open "See a sample session (view only)" from the top of Sessions and see the Session page on a session that drifted: its saved goal and expected outcomes, a High drift level, a stored reading that cites the entries it rests on, and the Steer back correction Compass composed. Seven numbered (i) marks say what each part is for, and the banner repeats them as text. The sample is a real Claude Code session, anonymized by a rerunnable script, with its page data captured from an isolated Compass server and bundled in the page. It is drawn by the real SessionView over a second shell with an in-memory server, so it never touches the board the page is polling. Writes are refused by its own fetch and held in the page before they reach a handler. Tailwind now reads frontend/src/sample for the marks. The anonymized transcript is committed under sample-session/. That is an owner-approved exception to the policy against committed transcripts, recorded in sample-session/README.md, tests/README.md and SECURITY.md; the mapping that holds the originals is never committed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PF35LmEnuGcmhAEqrQd8us Signed-off-by: Jared Scott <jared.scott@variable.team>
Contributor
CoverageThreshold: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What a reader gets
A "See a sample session (view only)" link above the Sessions list opens an example session that drifted. It shows the Session page as every session gets it: the saved goal and two expected outcomes, a High drift level, a stored reading that cites the entries it rests on (Show cited entries tints them), and the Steer back correction Compass composed. Seven numbered (i) marks say what each part is for. They open on hover, press and keyboard, and the banner repeats every note as text. Nothing in it is saved, sent or run.
The route is
#n=session:acme%2Fdashboard:claude:sample.How it works
SessionViewover a second shell with an in-memory server and storage, so it never touches the board the page is polling. Its own fetch refuses writes, and a press that would edit, save, allow or run is held in the page.frontend/src/sample; without that the marks drew unstyled.Policy exception: a transcript is committed
This commits an anonymized session transcript (
sample-session/example-session.jsonl), an exception to the policy intests/README.mdthat the owner approved for this one session. Please review it as such:scripts/sanitize_session.pyreplaces every name, path, project word, id and date from a mapping that is not committed (.gitignorerefuses a mapping file insample-session/). Thinking blocks are dropped. It verifies that no original appears in plain, lower-case, URL-encoded or JSON-escaped form.sample-session/shaping.json) so the live level reads High. The stored reading and the correction are real. All of this is listed in the README.Verification
validate_plugins.py,bump_version.py --current: clean. No version field moved.pnpm lint,typecheck,test:styles,test(1,759),build:storybook,test:stories(168, 4 new inSampleSession.stories.tsx),test:dev,build,build:check: pass.beforeinputhold, popover content exempt) and each turns a test red. An independent review found that popovers and disclosures were exempt wholesale, which let Clear empty the goal; that is fixed and tested.Not run: Windows, and the Playwright proofs (retired from the gate).
🤖 Generated with Claude Code
https://claude.ai/code/session_01PF35LmEnuGcmhAEqrQd8us