Skip to content

research(oracle): pyRevit runner skeleton for the ES-remap-00 fixture family - #193

Merged
DrunkOnJava merged 1 commit into
mainfrom
research/oracle-pyrevit-runner
Aug 30, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
research/oracle-pyrevit-runner

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Aug 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Turns tools/oracle/ from a README-only contract into a runnable pyRevit extension that generates the ES-remap-00 seed and the N1–N4 / R1–R2 / C1–C2 / C3a–C4a transitions, saving every state and writing observations + API truth JSON.

Motivation

Phase 2 of the ES ElementId remapping program (unified report §15, §30) is blocked on a Revit-hosted oracle. Having the runner ready means the sprint starts the day a Revit install is available instead of with a week of add-in plumbing.

Changes

  • tools/oracle/runner/pyrevit/RvtOracle.extension/lib/rvt_oracle.py — seed builder, schemas, truth capture, transitions, observation writer
  • …/Run ES-remap-00.pushbutton/script.py — pyRevit entry point
  • tools/oracle/runner/pyrevit/README.md, tools/oracle/README.md — install/run/outputs, explicit UNTESTED status
  • .gitignore — tools/oracle/out/

Testing

  • Both files compile under CPython (py_compile); no Rust changes
  • Not executed inside Revit — no Revit on this machine. First in-Revit run is expected to need small API-signature fixes; the file names each API member it relies on to make that quick.

Audit-honesty checklist

  • No ES on-disk byte layout is asserted; oracle_agrees is always null; evidence_tier is E1 per the report's table; capability es.elementid_remap remains unchanged.

Note

Low Risk
Adds research-only Python/pyRevit tooling and documentation; no Rust or production decode paths change, and generated fixtures stay local via gitignore.

Overview
Replaces the README-only oracle scaffold with a pyRevit extension that can generate the ES-remap-00 owned synthetic seed and run transitions N1–N4, R1/R2, and C1/C2/C3a/C4a from fresh seed copies (one mutation per transition).

The new rvt_oracle.py builds S_All / role schemas, captures API truth JSON, applies no-op/scalar/copy transitions via the Revit API, and writes observations.json, bundle.json, SHA-256–hashed .rvt files, and related outputs under tools/oracle/out/ (now git-ignored). A push-button entry script supports RVT_ORACLE_OUT and RVT_ORACLE_ONLY. Docs state the runner is UNTESTED without Revit and leaves oracle_agrees null per the research contract.

Reviewed by Cursor Bugbot for commit 6d0c925. Configure here.

… family

tools/oracle/ was a README-only contract. This adds a pyRevit extension that
builds the S_All seed (wall W + DataStorage DS carrying the entity; DirectShape
T and X as level-independent targets; role markers in a separate S_Role
schema), then runs N1-N4, R1/R2, C1/C2, C3a/C4a — each from a fresh copy of
the seed, one mutation per transition — saving every state, hashing every
file, and writing observations in the es-observation.schema.json shape plus
per-state API truth JSON.

Written without a Revit install and marked UNTESTED throughout; every Revit
API member used is named inline so the first in-Revit run can fix signatures
quickly. No on-disk ES layout is asserted, oracle_agrees stays null, and
evidence_tier stays E1 (single-environment observation) per the report's
tier table. tools/oracle/out/ is git-ignored.
@DrunkOnJava
DrunkOnJava merged commit 89110bb into main Aug 30, 2026
@DrunkOnJava
DrunkOnJava deleted the research/oracle-pyrevit-runner branch August 30, 2026 08:50
@cursor

cursor Bot commented Aug 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_dae2f029-c1a5-4d1e-a6ed-00ea58b1dad9)

DrunkOnJava added a commit that referenced this pull request Aug 30, 2026
…today (#196)

## Summary
Makes the release-path viewer smoke run the compiled-WASM import audit
(it skipped for lack of `wasm-objdump`), and brings the hand-curated
`[Unreleased]` changelog up to date with today's merged changes.

## Changes
- .github/workflows/publish.yml — `apt-get install wabt` before the
viewer build, mirroring deploy-viewer.yml
- CHANGELOG.md — Added / Changed entries for #182, #183, #185, #189,
#190, #191/#192, #193, #195

## Testing
- [x] YAML + actionlint clean
- [ ] Fourth `workflow_dispatch` dry-run after merge must show the
`wasm-no-network-imports` spec as ✓ instead of skipped
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
… family (#193)

## Summary
Turns `tools/oracle/` from a README-only contract into a runnable
pyRevit extension that generates the ES-remap-00 seed and the N1–N4 /
R1–R2 / C1–C2 / C3a–C4a transitions, saving every state and writing
observations + API truth JSON.

## Motivation
Phase 2 of the ES ElementId remapping program (unified report §15, §30)
is blocked on a Revit-hosted oracle. Having the runner ready means the
sprint starts the day a Revit install is available instead of with a
week of add-in plumbing.

## Changes
- tools/oracle/runner/pyrevit/RvtOracle.extension/lib/rvt_oracle.py —
seed builder, schemas, truth capture, transitions, observation writer
- …/Run ES-remap-00.pushbutton/script.py — pyRevit entry point
- tools/oracle/runner/pyrevit/README.md, tools/oracle/README.md —
install/run/outputs, explicit UNTESTED status
- .gitignore — tools/oracle/out/

## Testing
- [x] Both files compile under CPython (`py_compile`); no Rust changes
- [ ] Not executed inside Revit — no Revit on this machine. First
in-Revit run is expected to need small API-signature fixes; the file
names each API member it relies on to make that quick.

## Audit-honesty checklist
- No ES on-disk byte layout is asserted; `oracle_agrees` is always
`null`; `evidence_tier` is E1 per the report's table; capability
`es.elementid_remap` remains unchanged.
DrunkOnJava added a commit that referenced this pull request Aug 31, 2026
…today (#196)

## Summary
Makes the release-path viewer smoke run the compiled-WASM import audit
(it skipped for lack of `wasm-objdump`), and brings the hand-curated
`[Unreleased]` changelog up to date with today's merged changes.

## Changes
- .github/workflows/publish.yml — `apt-get install wabt` before the
viewer build, mirroring deploy-viewer.yml
- CHANGELOG.md — Added / Changed entries for #182, #183, #185, #189,
#190, #191/#192, #193, #195

## Testing
- [x] YAML + actionlint clean
- [ ] Fourth `workflow_dispatch` dry-run after merge must show the
`wasm-no-network-imports` spec as ✓ instead of skipped
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