Skip to content

chore(demos): refresh category-A demo artifacts on current master - #3196

Merged
Sinity merged 1 commit into
masterfrom
chore/demos/cat-a-refresh
Jul 20, 2026
Merged

Sinity merged 1 commit into
masterfrom
chore/demos/cat-a-refresh

Conversation

@Sinity

@Sinity Sinity commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Ref polylogue-93cp demo program (runbook category A).

Summary

Refreshes the deterministic basic-usage walkthrough artifacts against current master — first refresh since #3178 (transcript crash fix), #3179 (import parity), #3182 (all-origins seeding) landed.

Problem

Committed walkthrough outputs predated three merged changes that alter demo-visible behavior: corpus grew 16→19 sessions / 62→71 messages across 8 origins, index schema v40→v42, embeddings v3→v4, and the MCP surface consolidation (#3056) renamed the tools the MCP walkthrough exercises.

Solution

Re-ran every walkthrough recorded command against a fresh scratch seed: 1-4 (find/read/search/resume) byte-identical — surface stability demonstrated; 5/8 (cost, status/debt) refreshed with expected corpus-growth deltas; 7 (MCP round-trip) refactored onto the query/read dispatchers preserving the search→summary pattern; README stamp + schema refs updated. Cold-reader gate re-answered from directory contents alone. Produced by a Haiku lane; branch harvested by coordinator.

Verification

Each walkthrough re-executed against a fresh polylogue demo seed in a scratch root; diffs classified per-artifact (table in lane report); devtools verify --quick 16/16 green.

Regenerate deterministic demo walkthroughs against fresh seed including
#3178 (transcript-crash fix), #3182 (all-origins seeding), #3179 (import
parity). Demo corpus now 19 sessions/71 messages vs. prior 16/62.

Walkthroughs unchanged (find, read, search, resume all identical):
- 01-find-query.txt
- 02-read.txt
- 03-search.txt
- 04-resume.txt

Expected improvements (larger corpus, schema version bumps):
- 05-cost-usage.json: session_count 4→6, schema captures full v42 state
- 07-mcp-roundtrip.json: updated to use refactored MCP tools (query+read
  instead of search+get_session_summary, preserving search→summary pattern)
- 08-status-health.txt: raw_sessions 18→21, sessions 16→19, messages 62→71,
  embeddings schema v3→v4, new assertion-candidate-queue section
- README.md: update timestamp and schema version

Co-Authored-By: Claude <[email protected]>
Claude-Session: https://claude.ai/code/session
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 35 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8be77c62-d5e1-4c8b-8aa3-8c8c5c778591

📥 Commits

Reviewing files that changed from the base of the PR and between 11d4525 and 71a055e.

📒 Files selected for processing (4)
  • .agent/demos/basic-usage/05-cost-usage.json
  • .agent/demos/basic-usage/07-mcp-roundtrip.json
  • .agent/demos/basic-usage/08-status-health.txt
  • .agent/demos/basic-usage/README.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/demos/cat-a-refresh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit 0552d40 into master Jul 20, 2026
3 checks passed
@Sinity
Sinity deleted the chore/demos/cat-a-refresh branch July 20, 2026 06:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review


P2 Badge Restore the opening JSON object delimiter

After the command header, this artifact previously contained a complete JSON object, but the refresh replaces the opening { with a blank line. As a result, stripping the header and parsing the documented JSON output now fails immediately, so the cost walkthrough is no longer usable as captured structured output.


"query_call": {
"tool": "query",

P2 Badge Align the MCP walkthrough with its documented commands

The refreshed artifact now records the consolidated query/read tools, but .agent/demos/basic-usage/README.md:159-179, COLD_READER_GATE.md, and devtools/basic_usage_demo_check.py:107-123 still describe and invoke search followed by get_session_summary. Those names are absent from the current declared MCP baseline, so the documented regeneration check cannot reproduce this artifact and the cold-reader description identifies a different workflow.


"provenance": "priced",
"row_count": 6,

P2 Badge Update the cost excerpt in the walkthrough README

The refreshed logical_pricing_lanes output now has row_count: 6 and total_tokens: 388872, but the load-bearing excerpt in .agent/demos/basic-usage/README.md:115-128 still shows 4 and 388500. This makes the explanatory walkthrough disagree with the artifact it links to, despite the README claiming the displayed outputs are the real captured results.


"archive_root": "/realm/tmp/polylogue-demo-refresh-1784526507",

P2 Badge Regenerate the demo shelf manifest

The artifact refresh changes the byte sizes of all four touched files, but .agent/demos/MANIFEST.readable.json still records the previous sizes (for example, 45406 bytes for this file instead of 53777). I checked the repository's shelf verifier with python -m devtools.demo_shelf --check --json; it exits 1 with changed.manifest: true, so the committed generated index is stale and should be regenerated as required by the demo-shelf workflow.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sinity added a commit that referenced this pull request Jul 20, 2026
Problem: CodeRabbit flagged (PR #3202) that POLYLOGUE_MCP_WRITE_ENABLED=flase
(or any nonempty non-boolean string, or a quoted TOML value) passed through
_coerce_env_value's bool branch unchanged as a raw string, and the
mcp_write_enabled/mcp_judge_enabled/mcp_maintenance_enabled properties did
bool(self._data.get(...)) -- bool("flase") is True, so a typo silently
opened a capability boundary instead of leaving it closed. Same shape for
every other _BOOL_CONFIG_KEYS entry (not special-cased to the new keys).

What changed:
- _coerce_env_value's boolean branch now raises ConfigError naming the env
  var, offending value, and config key when the string isn't one of the
  canonical 1/true/yes/on / 0/false/no/off tokens (case-insensitive),
  instead of silently passing the raw string through. This applies to every
  _BOOL_CONFIG_KEYS entry via the one shared coercion path, not a
  capability-only special case.
- New _require_bool_config_value() (shared by all three capability
  properties) additionally closes the TOML-layer version of the same gap: a
  quoted TOML value (`write_enabled = "flase"`) bypasses env coercion
  entirely, so the property getter itself now validates the resolved value
  is a genuine bool or a canonical token string, raising ConfigError
  otherwise. Token-parsing logic is shared via _parse_bool_token() between
  the env-coercion path and this property-level guard.

Verification:
- devtools test tests/unit/core/test_config_inventory.py tests/unit/core/test_config.py
  -> 155 passed, including the new TestMCPCapabilityBooleanFailsClosed
  (typo raises, false/0/no/off/case-insensitive disables, true/1/yes/on/
  case-insensitive enables, TOML true works, quoted TOML string raises).
- devtools test tests/unit/mcp/test_cli.py tests/unit/cli/test_config_command.py
  -> 15 passed.
- devtools verify --quick -> ruff format/check, mypy --strict, render all,
  topology, layering, docs-coverage, etc. all exit 0.
- devtools test tests/unit/core -> 2327 passed; 4 failed / 6 errored, all in
  test_sync_surface_runtime.py/test_verification.py/test_models.py/
  test_schema_generation.py over artifact-taxonomy/schema-generation
  naming (agent_transcript vs subagent_session_stream) -- no reference to
  config.py, load_polylogue_config, or boolean coercion in any of them;
  pre-existing drift from the concurrent master rebase (#3196-#3200 landed
  mid-session), unrelated to this fix.

Co-Authored-By: Claude <[email protected]>
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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