test(generation): add structural reliability battery - #314
Merged
Conversation
This was referenced Sep 1, 2026
Collaborator
Author
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Sketchi Icons PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Web PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Eval Harness PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Excalidraw Workspace PreviewStatus:
Preview Worker cleanup has completed. |
Contributor
Sketchi Playground / Studio PreviewStatus:
Preview Worker cleanup has completed. |
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 03:35
cae9734 to
7f154bd
Compare
anandpant
force-pushed
the
gen/gen-repair-loop
branch
from
September 1, 2026 03:35
1b609f1 to
0f395b2
Compare
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 03:38
7f154bd to
81ebac4
Compare
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 19:05
d9077a4 to
d4dce41
Compare
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 19:27
d4dce41 to
2f7902f
Compare
anandpant
force-pushed
the
gen/gen-repair-loop
branch
from
September 1, 2026 19:27
cc8206f to
e71a8ae
Compare
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 19:31
2f7902f to
1d2c2ce
Compare
anandpant
force-pushed
the
gen/gen-eval-battery
branch
from
September 1, 2026 19:42
1d2c2ce to
ad1ab01
Compare
Merge activity
|
## Scope - Register eight reliability scenarios spanning production regressions, interacting loops, near-limit flowcharts, and deep 25-35 topic mindmaps. - Expose them through the eval-harness generation registry. - Add an Effect/jiti endpoint battery that sends fresh generation requests, repeats every scenario at least three times, supports targeted scenario runs, and derives its 302.25-second outer timeout from the complete generation-policy budget plus a 30-second margin. - Keep scenario prompts organic by removing generic self-loop policy text; system prompts and prioritized repair now own that invariant. The manuscript scenario only adds the business requirement that author revision is followed by a separate resubmission process. - Model required path waypoints as alternative-label groups and require every group on the same qualifying path. Expense rejection must cycle through both expense submission and resubmission; manuscript revision must cycle through both author revision and resubmission; manuscript ethics must cycle through both ethics investigation and editorial triage. - Bind every required branch label to an expected source-node label group. In particular, only finance approval/audit can satisfy the expense `approved` terminal assertion; a manager's approved branch cannot. - Stop a required-cycle search the first time it returns to its branch source without collecting every waypoint group, preventing adjacent cycles from being stitched into one false qualifying cycle. - **Extended renderer scope:** add local exterior routing lanes so same-rank branch arrows do not cross nodes in intervening ranks during Excalidraw export. ## Proof - `pnpm test:tools` - 93/93 passed at `fa0d38d`. - `pnpm nx run-many -t typecheck,test,build --skip-nx-cache` - passed at `b4d1487`. - `pnpm nx build-storybook diagram-ui --skip-nx-cache` - passed at `b4d1487`. - Added regressions proving that a cycle missing expense resubmission fails, adjacent short and resubmission cycles cannot be stitched into one qualifying path, an ethics cycle missing Editorial Triage fails, and a manager-sourced `approved` branch cannot satisfy the finance terminal requirement, alongside inverse-semantics, one-cycle/two-decision, timeout-budget, organic-scenario, registry, selection, structural-fidelity, and reproduced ecommerce export-route coverage. - Corrected the structural-fidelity fixture so every padding edge references an existing node while preserving its intended cycle/path/count assertions; refreshed required CI passed at `fa0d38d` in workflow run `33560282033`. - Runtime preview deployment passed at `b4d14878428c` in workflow run `33558720216`; the only subsequent change at `fa0d38d` is the test-fixture correction. - Ecommerce returns 18-step scenario: 8/8 passed (100%) against the real preview with the scenario-level self-loop instruction removed. - Expense resubmission scenario: 8/8 passed (100%) against the real preview. - Full fresh preview battery: 24/24 passed (100%, three runs across all eight scenarios) against `https://sketchi-studio-pr-314.dimethyl.workers.dev/api/v1/generate`. This is PR 6 of 6 in the generation-reliability stack.
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.

Scope
approvedterminal assertion; a manager's approved branch cannot.Proof
pnpm test:tools- 93/93 passed atfa0d38d.pnpm nx run-many -t typecheck,test,build --skip-nx-cache- passed atb4d1487.pnpm nx build-storybook diagram-ui --skip-nx-cache- passed atb4d1487.approvedbranch cannot satisfy the finance terminal requirement, alongside inverse-semantics, one-cycle/two-decision, timeout-budget, organic-scenario, registry, selection, structural-fidelity, and reproduced ecommerce export-route coverage.fa0d38din workflow run33560282033.b4d14878428cin workflow run33558720216; the only subsequent change atfa0d38dis the test-fixture correction.https://sketchi-studio-pr-314.dimethyl.workers.dev/api/v1/generate.This is PR 6 of 6 in the generation-reliability stack.