Documentation Index
Fetch the complete documentation index at: https://docs.aethis.ai/llms.txt
Use this file to discover all available pages before exploring further.
Decision gives an unexpected result
Symptoms:aethis_decide returns not_eligible when you expect eligible, or vice versa.
Steps:
- Call
aethis_explain(oraethis explain -b <ruleset_id>in the CLI) to see human-readable descriptions of the compiled rules. Check that the rules match your source text. - Call
aethis_decidewithinclude_trace: true. The trace shows exactly which criterion failed and why. - If the rules are wrong, add a guidance hint pointing to the specific clause that was missed, then
aethis_refine.
Undetermined outcome
What it means: The engine received the input fields but could not reach a definitive decision — the case falls outside the compiled rules or a required field was not provided. When to expect it:- A required field was missing from
field_values - The source legislation has a discretionary clause (“may be granted”, “at the authority’s discretion”) — Aethis compiles these as
undeterminedrather than guessing - The case involves a combination of values not covered by any rule
undeterminedmeans flag for human review, not auto-reject- Check
fields_evaluatedvsfields_provided— if they differ, a field was unrecognised or missing - Use
aethis_next_questionto find out what additional information the engine needs
Updating rules after publishing
Published rulesets are locked — this is intentional. To update:aethis_generate_and_teston the same project (adds a new ruleset version)- Refine with
aethis_refineuntil all tests pass aethis_publish— auto-deprecates the previous active ruleset
latest_active automatically use the new version.
Generation timeout (504)
Rule generation takes 5–15 minutes for complex sections. If your client times out:- Do not re-trigger generation — the server continues after your client disconnects. Re-triggering creates a duplicate run.
- Wait 10–15 minutes, then call
aethis_list_rulesets({ project_id })to check if a new ruleset appeared. - If a ruleset is present, call
aethis_publish. - If not, wait and check again.
DATE field type error
DATE fields use integer ordinals (days since year 1), not ISO strings."2025-04-13" as a string will return a 422 Validation error.
”API key is required” on decision tools
Decision tools (aethis_decide, aethis_schema, aethis_next_question, aethis_explain) require no API key. If you see this error on a decision tool:
- Check that you’re calling a decision tool, not an authoring tool
- Make sure
AETHIS_API_KEYis not set to an invalid value (empty string counts)
“Ruleset not found” (404)
- Verify the ruleset ID format:
section_id:YYYYMMDD-xxxxxxxx - Call
aethis_list_projects→aethis_list_rulesetsto find valid IDs - Check the ruleset hasn’t been archived
”Cannot publish: tests failing”
All tests must pass before publishing. Options:- Fix rules with
aethis_refineand feedback pointing to the missed clause - Use
aethis_explain_failureto get a targeted diagnosis for a specific failing case - Pass
force: trueto publish anyway (not recommended for production)
Rate limit exceeded (429)
X-RateLimit-Reset timestamp, then retry. Contact eng@aethis.ai to increase your tier.