Repository navigation
Conversation
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Drive libcurl's multi interface from one non-blocking tick loop so the supervisor can stream an OpenAI-compatible response, cancel it, and classify the single attempt as succeeded, failed, or uncertain without retrying. Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…mmarizer, restart milestone CLI Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…e journal append fails Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…per reports real exit codes Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…oracle), build manifest, handoff guide Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…i phase 0/1 Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…ontrols to one space, no percent escapes); regenerate byte-hysteresis trace Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
- canonical text: CRLF/CR/LF/NEL/LS/PS and other controls become one space, rendered and measured in Shen by byte index (O(n log n)) - view bytes are rendered lines only; <chat> framing belongs to prompts - node intervals must end at or below the 2^31-1 message ceiling - test_oracle.lua diffs the engine against both golden traces, side-by-side oracle runs, ceiling cases, due ordering and canonical lines - docs/contracts/decisions.md records every reconciled ambiguity Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…y, stuck-jobs projection Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…ions provider, uncertain classification, dispatch-intent records and restart recovery; real-adapter integration test Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…races exercise uncertain and operator retry Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…spatch records, integration decisions; refresh handoff Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…in jobs, fresh operator rounds Each job runs a round of max_attempts tries and keeps the shortest summary within the leaf cap (earliest try on ties); over-cap results are never accepted. An uncertain leaf job renders its raw text (or best candidate) as a provisional line so coverage and merges proceed; an operator retry grants one fresh round. Schema and status gain the new records. Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…mary-uncertain with raw leaf content Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…sh operator rounds Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
…nal lines, summary-uncertain, no-[DONE] as uncertain Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
cursor Bot
pushed a commit
to pyrex41/unii
that referenced
this pull request
Oct 9, 2026
History of shen-lua's unii/ directory from branch cursor/unii-phase2-storage-5d00 at c9514936241154fc7be151792669fb140e80a87e (pyrex41/shen-lua#77, which contains the lead branch cursor/unii-phase0-phase1-8a71 / pyrex41/shen-lua#76, the oracle from pyrex41/shen-lua#74 and the libcurl adapter from pyrex41/shen-lua#75), rewritten with git filter-repo --subdirectory-filter unii so the directory is the repository root. Bare PR references in messages were qualified as pyrex41/shen-lua#NN. Co-authored-by: pyrex41 <pyrex41@users.noreply.github.com>
Owner
Author
|
Superseded: unii moved to its own repo, https://github.com/pyrex41/unii (history preserved). Closing. |
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 this adds
Everything is under
unii/. Files outsideunii/are unchanged from the pinned base commitfc97577(shen-lua 0.11.1, Shen 42); the build and a test both check this. Do not merge to main yet.This PR also merges two parallel branches:
cursor/unii-memory-oracle-13bb): an independent Lua oracle with golden fixtures, inunii/eval/.cursor/phase0-http-adapter-88ec): a libcurl HTTP adapter, inunii/host/network/.Shen rules (
unii/core/). A pure, typechecked rule bundle loaded under(tc +). It has no clock, files, network, randomness,evalor/. It covers:Lua host (
unii/host/). It provides:providers/chat_completions.lua, an OpenAI-compatible summarizer whose prompt is provisional and labelled as such;Reuben's decisions (this round)
All six are recorded in
unii/docs/contracts/decisions.md(R1–R6) and implemented with tests. Engine and oracle agree on all of them.retry-seek-shorter N,retry-too-long Norretry-after-failure.view-replaced). An uncertain merge job leaves its children in place, and other pairs merge around them. The job is still never re-sent automatically.|or%; tabs become one spaceunii.fresh-round. The best candidate from earlier rounds carries over.[DONE]is uncertainmodels.classify. The supervisor sends the newsummary-uncertainevent, anduncertainis no longer a failure class.<chat>wrapper bytes stay out of the view budgetThe oracle gained
summary_rounds.test_oracledrives the engine and the oracle through 2,000 random outcome sequences and compares the final state:The test was checked by temporarily flipping the oracle's tie rule; the comparison fails on case 12. The golden fixtures did not change (
--checkreports no differences).Interpretations to confirm (listed in
decisions.md):chunk_max.Engine and oracle cross-check (earlier round)
Real adapter behind host/network
uncertainoutcome, a cancel after send, a 2xx stream without[DONE], and a command recovered after a crash with a dispatch record but no outcome all becomesummary-uncertain. None of them is re-sent automatically.unii retry --job Jperforms an operator retry.--network real --url --modelselects the adapter; the mock stays the default for tests and the CLI.host/storage.luainterface is unchanged.The real adapter has been run only against its local test server. No real model provider has been called.
Verification
luajit unii/test/run.lualuajit unii/test/network/run.lualuajit unii/eval/oracle/spec.luagenerate_fixtures.lua --checkGaps
These are listed in
HANDOFF.md: