Repository navigation
feat(provider): TOLE_* canonical env prefix (CORAGENT_* legacy, OPENAI_* fallback) - #37
Merged
Merged
Conversation
…I_* fallback) The project is named tole; the env contract should say so. Resolution order: TOLE_* > CORAGENT_* (pre-rename legacy) > OPENAI_*, complete-triple semantics unchanged (no blending, whitespace = absent). - ENV_BASE_URL/MODEL/API_KEY now point at TOLE_* (constant consumers updated: e2e test message fixed in the same pass) - unit tests extended: TOLE priority over legacy, half-set TOLE falls back to CORAGENT whole-triple - CLI error message and .cora.yaml doc rule updated Validated live: TOLE_*-only env and CORAGENT_*-only env each completed a real provider turn. 112/112 tests, clippy clean.
| /// parks inside the effect window, then die by parental SIGKILL. | ||
| fn child_main() { | ||
| let file = PathBuf::from(std::env::var(FILE_ENV).expect("CORAGENT_E5_FILE missing")); | ||
| let file = PathBuf::from(std::env::var(FILE_ENV).expect("CORA_E5_FILE missing")); |
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (1)
Review powered by cora-code · BYOK · MIT |
Contributor
Author
|
Re: the e2e_resume finding — false positive with evidence:
This diff only fixed the stale panic message string ("CORAGENT_E5_FILE missing" → "CORA_E5_FILE missing") — the env var name itself was never renamed in this PR. Verified by running the suite directly: The SIGKILL resume test passes on the exact code under review. |
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
The env contract is renamed to match the project:
TOLE_BASE_URL/TOLE_MODEL/TOLE_API_KEYare now the canonical prefix, with resolution order TOLE_ > CORAGENT_ (pre-rename legacy) > OPENAI_* (de-facto standard)**. Complete-triple semantics unchanged: prefixes are never mixed, whitespace-only counts as absent.ENV_BASE_URL/ENV_MODEL/ENV_API_KEYconstants now point atTOLE_*; the e2e test's stale "CORAGENT_E5_FILE" message fixed to match its actualCORA_E5_FILEenv; CLI error message and the.cora.yamlapi_key doc rule updated to name all three prefixes.Why
The repo is
tole, the crates aretole-core/tole-cli—CORAGENT_*is a leftover from the pre-rename identity (cora-agent). Env names are operator-facing UX; they should carry the product name.Testing