Skip to content

perf: add semantic-axis evidence runner - #349

Merged
Sinity merged 1 commit into
masterfrom
feature/perf/semantic-axis-evidence
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/perf/semantic-axis-evidence

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds devtools semantic-axis-evidence, a repeatable proof-envelope performance evidence runner over existing synthetic benchmark campaigns.

Closes #195
Ref #329
Ref #330

Problem

Polylogue already had benchmark campaigns and synthetic scale tiers, but their output was campaign reporting rather than proof evidence. Issue #195 asks for comparative performance evidence over semantic complexity axes, with trust metadata and growth-shape semantics, so regressions can be described as changed growth behavior instead of only exceeding a machine-specific wall-time or RSS threshold.

Solution

  • Added devtools/semantic_axis_evidence.py:
    • runs one synthetic benchmark campaign across selected scale tiers
    • maps semantic axes such as messages and conversations to existing DB stats
    • computes adjacent axis/metric ratios, elasticity, and a growth-shape classification
    • emits EvidenceEnvelope JSON with EvidenceEnvelope.trust populated from git, schema, input, and environment metadata
    • supports optional --baseline comparison for changed-growth-behavior counterexamples
  • Registered devtools semantic-axis-evidence in the command catalog and refreshed generated devtools docs.
  • Added unit tests for growth-shape evidence, trust metadata, baseline counterexamples, invalid axis/metric inputs, JSON serializability, and CLI reproducer shape.

Verification

  • pytest tests/unit/devtools/test_semantic_axis_evidence.py -q — 5 passed
  • pytest tests/unit/devtools/test_command_catalog.py -q — 4 passed
  • devtools semantic-axis-evidence --campaign fts-rebuild --axis messages --scales small medium --output .local/performance-evidence/issue-195 --no-save — emitted status=ok, growth_shape=approximately-linear
  • mypy devtools/semantic_axis_evidence.py tests/unit/devtools/test_semantic_axis_evidence.py — clean
  • devtools render-all --check — clean
  • devtools verify — all checks passed
  • pre-push devtools verify --quick — all checks passed

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 35 minutes and 57 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 35 minutes and 57 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 12b99bd9-7025-4f6c-8ec5-3db0f2811f63

📥 Commits

Reviewing files that changed from the base of the PR and between bcb5cc3 and caa5605.

📒 Files selected for processing (4)
  • devtools/command_catalog.py
  • devtools/semantic_axis_evidence.py
  • docs/devtools.md
  • tests/unit/devtools/test_semantic_axis_evidence.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/perf/semantic-axis-evidence

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 and usage tips.

@Sinity
Sinity merged commit a0efd2c into master Apr 22, 2026
13 checks passed
@Sinity
Sinity deleted the feature/perf/semantic-axis-evidence branch April 22, 2026 05:46

@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

Here are some automated review suggestions for this pull request.

Reviewed commit: caa56052ab

ℹ️ 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".

Comment thread devtools/semantic_axis_evidence.py Resolved
Comment thread devtools/semantic_axis_evidence.py Resolved
Sinity added a commit that referenced this pull request Apr 22, 2026
## Summary

Adds `devtools semantic-axis-evidence`, a repeatable proof-envelope performance evidence runner over existing synthetic benchmark campaigns.

Closes #195
Ref #329
Ref #330

## Problem

Polylogue already had benchmark campaigns and synthetic scale tiers, but their output was campaign reporting rather than proof evidence. Issue #195 asks for comparative performance evidence over semantic complexity axes, with trust metadata and growth-shape semantics, so regressions can be described as changed growth behavior instead of only exceeding a machine-specific wall-time or RSS threshold.

## Solution

- Added `devtools/semantic_axis_evidence.py`:
  - runs one synthetic benchmark campaign across selected scale tiers
  - maps semantic axes such as `messages` and `conversations` to existing DB stats
  - computes adjacent axis/metric ratios, elasticity, and a growth-shape classification
  - emits `EvidenceEnvelope` JSON with `EvidenceEnvelope.trust` populated from git, schema, input, and environment metadata
  - supports optional `--baseline` comparison for changed-growth-behavior counterexamples
- Registered `devtools semantic-axis-evidence` in the command catalog and refreshed generated devtools docs.
- Added unit tests for growth-shape evidence, trust metadata, baseline counterexamples, invalid axis/metric inputs, JSON serializability, and CLI reproducer shape.

## Verification

- `pytest tests/unit/devtools/test_semantic_axis_evidence.py -q` — 5 passed
- `pytest tests/unit/devtools/test_command_catalog.py -q` — 4 passed
- `devtools semantic-axis-evidence --campaign fts-rebuild --axis messages --scales small medium --output .local/performance-evidence/issue-195 --no-save` — emitted `status=ok`, `growth_shape=approximately-linear`
- `mypy devtools/semantic_axis_evidence.py tests/unit/devtools/test_semantic_axis_evidence.py` — clean
- `devtools render-all --check` — clean
- `devtools verify` — all checks passed
- pre-push `devtools verify --quick` — all checks passed
@Sinity Sinity added area:qa QA tool:claude Claude type:perf Performance labels Apr 22, 2026
Sinity added a commit that referenced this pull request Apr 22, 2026
Polylogue had benchmark campaigns and synthetic scale tiers, but
their output was campaign reporting rather than proof evidence.
#195 asks for comparative performance evidence over semantic
complexity axes, with trust metadata and growth-shape semantics,
so regressions can be described as changed growth behavior instead
of only exceeding a machine-specific wall-time or RSS threshold.

Adds `devtools/semantic_axis_evidence.py`: runs one synthetic
benchmark campaign across selected scale tiers; maps semantic axes
like `messages` and `conversations` to existing DB stats; computes
adjacent axis/metric ratios, elasticity, and a growth-shape
classification; emits `EvidenceEnvelope` JSON with
`EvidenceEnvelope.trust` populated from git, schema, input, and
environment metadata; supports optional `--baseline` comparison for
changed-growth-behavior counterexamples. Registers `devtools
semantic-axis-evidence` in the command catalog; refreshes generated
devtools docs.

Verification: pytest over semantic-axis-evidence and
command-catalog suites; live `devtools semantic-axis-evidence`
probe on fts-rebuild campaign; mypy clean; devtools render-all
--check, verify and --quick green.

Closes #195
Ref #329
Ref #330
Sinity added a commit that referenced this pull request Apr 22, 2026
Polylogue had benchmark campaigns and synthetic scale tiers, but
their output was campaign reporting rather than proof evidence.
#195 asks for comparative performance evidence over semantic
complexity axes, with trust metadata and growth-shape semantics,
so regressions can be described as changed growth behavior instead
of only exceeding a machine-specific wall-time or RSS threshold.

Adds `devtools/semantic_axis_evidence.py`: runs one synthetic
benchmark campaign across selected scale tiers; maps semantic axes
like `messages` and `conversations` to existing DB stats; computes
adjacent axis/metric ratios, elasticity, and a growth-shape
classification; emits `EvidenceEnvelope` JSON with
`EvidenceEnvelope.trust` populated from git, schema, input, and
environment metadata; supports optional `--baseline` comparison for
changed-growth-behavior counterexamples. Registers `devtools
semantic-axis-evidence` in the command catalog; refreshes generated
devtools docs.

Verification: pytest over semantic-axis-evidence and
command-catalog suites; live `devtools semantic-axis-evidence`
probe on fts-rebuild campaign; mypy clean; devtools render-all
--check, verify and --quick green.

Closes #195
Ref #329
Ref #330
Sinity added a commit that referenced this pull request Apr 22, 2026
Polylogue had benchmark campaigns and synthetic scale tiers, but
their output was campaign reporting rather than proof evidence.
#195 asks for comparative performance evidence over semantic
complexity axes, with trust metadata and growth-shape semantics,
so regressions can be described as changed growth behavior instead
of only exceeding a machine-specific wall-time or RSS threshold.

Adds `devtools/semantic_axis_evidence.py`: runs one synthetic
benchmark campaign across selected scale tiers; maps semantic axes
like `messages` and `conversations` to existing DB stats; computes
adjacent axis/metric ratios, elasticity, and a growth-shape
classification; emits `EvidenceEnvelope` JSON with
`EvidenceEnvelope.trust` populated from git, schema, input, and
environment metadata; supports optional `--baseline` comparison for
changed-growth-behavior counterexamples. Registers `devtools
semantic-axis-evidence` in the command catalog; refreshes generated
devtools docs.

Verification: pytest over semantic-axis-evidence and
command-catalog suites; live `devtools semantic-axis-evidence`
probe on fts-rebuild campaign; mypy clean; devtools render-all
--check, verify and --quick green.

Closes #195
Ref #329
Ref #330
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #550.

@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 00:43

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@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.

@Sinity

Sinity commented Oct 1, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: add semantic-axis comparative performance evidence

2 participants