Haldwani Times
Haldwani Times
Technology

recusal 0.17.2

recusal 0.17.2
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version recusal 0.17.2 Lightweight, extensible governance for AI agent tool calls, Claude-native and framework-neutral: an independent, deterministic verifier that can refuse to certify a tool call before it runs. Builders cannot grade their own work.

pip install recusal==0.17.2 Copy PIP instructions

Recusal checks each tool call an AI agent proposes against your policy, and refuses the unsafe or unapproved ones before the tool runs. No model makes that decision; your policy functions do.

It drops into Claude Code as a hook, MCP tool calls included, and gates a Claude Messages API loop or any Python agent loop. For agent frameworks there are eight adapter packages, each tested against its framework: LangGraph, LangChain, the OpenAI API and Agents SDK, Google ADK, CrewAI and Pydantic AI. The kernel has zero runtime dependencies and runs on Python 3.9+.

Website: recusal.io, with an interactive demo of the gate.

On PyPI: recusal, with the eight adapter packages, each published under its own name.

Status: Beta (0.x) and in active development, not a finished or certified security product. The adapters are at different stages of security review, and help is welcome: project status.

What it does not enforce: Recusal judges the tool calls that reach a gate you have installed. It does not stop an agent that can reach a resource another way: a credential with wider rights, a shell or network path outside the governed session, a file it can write that configures the gate, or the Python environment the hook runs in. Use it as one layer of several: least-privilege credentials for the agent, a sandbox or container, limits on its network egress, Claude Code managed settings for the hook configuration, and an audit anchor the writer cannot reach (the limits in full).

Contents: See it refuse · Works with · Adapters · Status · Install · Policies · MCP · Audit · How it works · CI · Built to be checked · Documentation

The kernel judges a wrapper a decorator holds whatever it names as __wrapped__. A decorator that called a held functools.wraps wrapper with a parameter of its own, named for another object's method, ran that parameter with nothing judged: the walk of 0.17.1 judged a held wrapper only where it led to a function the walk reads, and read the tool. Such a wrapper is refused now: the entry.

This release is stricter. Some tools 0.17.1 read are refused now, a few of them although they run correctly (a decorator that calls an unrelated decorated helper), and a tool 0.17.1 refused keeps its reason; what is still read is stated: what is refused, and what is still read.

Each adapter is on PyPI under its own name and version. Under recusal/, 0.17.2 differs from 0.17.1 in recusal.invocation and the version string; the adapters are not part of its wheel. The full list is in the changelog.

Verbatim transcripts, rendered: a live Claude Code session where the repo's own hook refuses rm -rf under --dangerously-skip-permissions, then pip install recusal && recusal demo --scenario wrong-subject, no API key and no clone. The second panel is rendered from that command's captured output by tools/render_demo_gif.py, so "verbatim" is reproducible rather than asserted.

See it refuse (20 seconds, no API key, no clone)

pip install recusal recusal demo Four scenarios, offline and deterministic: a write to the wrong customer refused before the tool runs, the shipped deny-list refusing rm -rf and its own uninstall while an ordinary command defers, a pinned MCP catalog refusing a post-approval rug pull, and a valid call refused because its delegated authority expired. recusal demo --list names them; --scenario runs one. (Its exit code is not a verdict: recusal verdict is the command whose exit code adjudicates.)

The long form, annotated and worth reading, is in the repository:

git clone https://github.com/philpaz/recusal && cd recusal python examples/claude_refusal.py # a Claude agent stages a write to the WRONG # customer; the gate refuses before the tool runs python examples/gallery.py # the same gate across the OWASP agentic failure modes python examples/mcp_security_demo.py # an approved MCP launch command changes; verification # refuses BEFORE the substituted command executes Deterministic and offline: the same normalized evidence and explicit policy inputs, under the same recusal implementation version, produce the same verdict, including the no.

The core is plain Python with no dependencies, so it gates any agent loop that lets you check a tool call before it runs. Each row says how far that is proved today: Tested means a runnable example with its own tests in this repository's CI. Coming links the pull request or claimed issue where the work is happening, or the pull request that brought in a draft adapter that is not released yet. Wanted links an open issue nobody has taken yet: comment there to pick it up.

xAI documents its Grok API as using the same request formats as OpenAI's, so #81 is also where Grok support will start. Want a runtime that isn't listed? Open an issue.

What no local gate can see. Some tools run on the model provider's servers, such as hosted web search, a hosted code interpreter or hosted MCP. Those calls never pass through your code, so neither Recusal nor any other local gate can refuse them. The one exception is a hosted call the provider asks your code to approve first: the OpenAI Agents SDK's hosted MCP approval callback is such a point, and examples/openai_agents_mcp_gate.py gates it, for the calls that are sent for approval and no others.

The kernel and its adapters

The thing that generates the work must never certify it.

Recusal is built the way it asks you to build: the part that decides is kept apart from the part that does. recusal is the kernel. It holds the verdict, the audit log and the MCP pinning, and it depends on nothing. Each agent framework gets its own small package that carries a tool call from that framework's hook to the kernel and carries the answer back. An adapter has no verdict of its own: it refuses a call it cannot present to the kernel faithfully, and for every other call the kernel's decision is the decision. The kernel never imports an adapter.

An arrow means "depends on". No arrow leaves the kernel, so a framework's breaking change is answered by a release of that framework's adapter, not by a release of the kernel.

Each package's README shows how to attach the gate, its audited form, and what its hook cannot see. Every package ships inline types, and is tested on each pull request against a pinned version of its framework and weekly against the newest release. How the packages are built, signed and released is in adapters/README.md.

Each is on PyPI under its own name. The badge in the table links its page there and shows the version PyPI serves now. Install the one for your framework:

pip install recusal-pydantic-ai Project status

Recusal is a Beta (0.x) open-source project in active development, built in the open to help teams develop and evolve security controls for AI agents. It is not a finished or certified security product, and it is provided under Apache-2.0 without warranty. STABILITY.md says what is stable and what may still change.

The adapters are at different stages of security review. Of the 8 adapters, 5 have completed the in-depth review and 3 are in it now:

What the two reviews are:

The first review was one pass over all eight adapters against the newest versions of their frameworks, on 2026-11-19. What it found and fixed is in the changelog.

The in-depth review is repeated adversarial review of one adapter against a stated threat model: the model is untrusted, and the application's own code is trusted but ordinary. Each finding is reproduced, fixed and pinned by a test, and the rounds continue until one finds no way for a model to get a call past the gate.

Both are the project's own reviews, not a third-party audit, and a review finds what it looks for: a reviewed adapter can still have gaps. Each adapter's README says what its gate refuses and what it does not see.

What a review consisted of describes the in-depth review method by method (the threat model, the generated corpus, the keyword matrix, mutation testing) and gives the command that reproduces each number it states. A package has a section there once the scripts that produce its numbers are in this repository. Today that is recusal-openai.

Help make it better. Read the code, test an adapter against your own stack and tell us what you find. Reviews, bug reports and pull requests are all welcome: how to contribute, open issues. Please report a security gap privately, not in a public issue.

An autonomous agent proposes a tool call, and then, in most stacks, something from the same model family effectively decides whether that action is acceptable. When the agent runs in auto or bypass mode, even that check thins out: what stands between a proposed rm -rf, a wrong-customer write, or an unapproved MCP tool and its execution is the model's own judgment about its own action.

A judge recuses themselves from a case they cannot impartially decide; the same principle governs autonomous agents: the thing that generates the work must never be the thing that certifies it.

Lightweight (zero dependencies) · extensible (a check is just a function that returns a finding) · Claude-native (a Claude Code hook, a Claude Messages API loop or Managed Agents as a tool gate) · framework-neutral (the core works in any agent loop; in LangGraph it is ToolNode(tools, wrap_tool_call=recusal_gate(policy))).

Recusal places deterministic policy between the proposed action and its execution. No model makes the decision: explicit findings fold into a PASS / RETRY / FAIL verdict, and a non-clean verdict refuses before the tool runs. Concretely:

A refusal that holds in bypass mode. A Claude Code deny issued from the PreToolUse seam is honored even under bypassPermissions, and the deny-list refuses the obvious attempts on the gate's own control paths, including uninstalling or shadowing the recusal package itself. The caveat, in one line and in full one click away: the verdict is produced outside the model's decision path, but deployment isolation (who owns settings.json, the file permissions, the runtime the gate runs on) stays the adopter's responsibility (SECURITY.md).

MCP capability integrity. Pin the MCP server instructions and tool declarations a human approved; verify refuses represented drift (the rug pull, the new tool, the mutated schema), and the call-time gate refuses any MCP tool that was never pinned. Stdio servers are observed over MCP 2026-07-28 or the initialize revisions, through the same handshake Claude Code uses, so a pin is the catalog Claude actually loads.

A record built for the auditor. Every adjudication (defer, allow, deny) can land on an append-only, hash-chained log with the proposed input bound by SHA-256 fingerprint: deterministic, replayable, stdlib-only, shaped for OWASP Agentic logging and EU AI Act Article 12 record-keeping.

Authorization for this exact action (0.9.0). Recusal is a deterministic authorization adjudicator for agent actions: it verifies each proposed action against explicit, provenance-bearing authority evidence and can refuse before execution. A deny-list asks whether a command looks dangerous; recusal.authorization asks where the authority for this call came from, what it permits, and whether the call is still inside it: the bound principal, the active subject, the granted tool and operation, the argument constraints, expiry, call budget, replay, and the policy and MCP manifest the grant was approved under. Each dimension is one named finding; a required dimension with no evidence refuses, and the decision can be bound into a digest-bound DecisionReceipt. Stated exactly: it does not establish identity (a runtime label such as Claude Code's agent_id passes only through a trust rule you supply), it does not issue delegation, it reads no clock and keeps no counter (those are supplied evidence, so it verifies budgets, it does not atomically enforce them), and the receipt is a digest, not a signature. Not included, so it is not inferred: OAuth, delegation chain validation, the hook's updatedInput rewriting and ask decision, and any non-Claude adapter. recusal demo --scenario expired-authorization shows it.

The same normalized evidence and policy inputs, under the same recusal version, produce the same verdict, including the "no".

Builders generate. Recusal certifies. Refusal is a feature.

pip install recusal Claude Code, drop-in PreToolUse hook

Refuse destructive tool calls before Claude Code runs them, even in auto / bypass mode.

python -m recusal init # or: recusal init scaffolds .claude/hooks/recusal_gate.py (the deny-list starter, edit it, it's yours) and registers the fail-closed launcher in .claude/settings.json, merging with (never clobbering) an existing file; re-running is a no-op, and an existing gate file is never overwritten. --posture allowlist scaffolds the default-deny variant instead. Claude Code asks you to confirm the new hook on the next session: a permission-changing hook is a deliberate step.

Or as a plugin (one gate across every project, no per-project setup):

claude plugin marketplace add philpaz/recusal claude plugin install recusal-gate@recusal # self-contained: the plugin vendors the exact recusal runtime it executes # (POSIX launcher: macOS/Linux/Windows-with-Git-Bash) The plugin ships the same deny-list shim and adjudicates with its own vendored copy of the package - no pip install step. A missing, substituted (an ambient package instead of the vendored copy), or version-mismatched runtime refuses every tool call rather than silently disabling itself. For a policy tailored to one project, prefer python -m recusal init and edit the scaffolded gate. Under the managed setting allowManagedHooksOnly, Claude Code blocks plugin hooks unless managed enabledPlugins force-enables that exact recusal-gate@recusal ID (settings reference): an installed but not force-enabled gate would not run.

For production, pin the runtime the gate runs on: a dedicated venv with pip install "recusal==", registered explicitly, protected from agent writes. pip install recusal is the quick start, not the governance deployment. (Inside a governed session, the deny-list refuses package-manager commands that uninstall, reinstall, or shadow the recusal package: managing the gate's own runtime is the operator's job, outside the session.) One named residual, stated in full in docs/HOWTO.md: hook timeout is fail-open on Claude Code before 2.1.295. There, a PreToolUse command hook canceled at its timeout (600 seconds unless the registration sets timeout) "doesn't block the tool call" and the call continues through the normal permission flow (hooks reference). On 2.1.295 and later a registration that sets "onFailure": "block", as init and the plugin do, blocks the call instead; an older registration or an older Claude Code keeps the fail-open outcome. Recusal's shipped policies adjudicate in milliseconds; keep custom policies fast and bounded, and keep a native deny rule for anything that must hold even if the gate stalls.

Verifying what you installed is a first-class step, not an afterthought: docs/VERIFY.md shows how to check the build provenance, the release-boundary Sigstore signatures, and PyPI's own attestation yourself, negative controls included.

Prefer to see exactly what it writes? The manual path is the same two pieces. Register a hook in .claude/settings.json:

{ "hooks": { "PreToolUse": [ { "matcher": ".*", "hooks": [ { "type": "command", "command": "[ -n \"$CLAUDE_PROJECT_DIR\" ] || { echo 'gate: CLAUDE_PROJECT_DIR is empty, so the gate script cannot be found; failing closed' >&2; exit 2; }; for p in python3 python py; do \"$p\" -c 'import sys; sys.version_info >= (3, 9) or sys.exit(1); import recusal' 2>/dev/null && { \"$p\" \"$CLAUDE_PROJECT_DIR/.claude/hooks/my_gate.py\"; rc=$?; [ \"$rc\" = 0 ] || { echo 'gate: hook did not run cleanly; failing closed' >&2; exit 2; }; exit 0; }; done; echo 'gate: no python>=3.9 that can import recusal; failing closed' >&2; exit 2", "onFailure": "block" } ]} ]}} "onFailure": "block" (Claude Code 2.1.295 and later) makes a hook that times out, cannot start, or exits with a code other than 0 or 2 block the call instead of letting it through; on an older Claude Code the field is not honored and the launcher's exit 2 is the only block. An install registered before 0.12.4 lacks the field: python -m recusal doctor names it, and python -m recusal init --repair-launcher adds it to a canonical launcher.

The command runs the first python3 → python → py that is >=3.9 and can import recusal (so an interpreter without the package is skipped, not chosen), and fails closed. The exit-code semantics, stated exactly: Recusal's normal refusal exits 0 with permissionDecision: "deny" JSON, which Claude honors as a block; a clean verdict exits 0 with no output and defers to Claude's normal permission flow; exit 2 is Claude's blocking failure signal, and any other nonzero exit is a non-blocking error that lets the tool call proceed. That last rule is why the launcher exists: a bare python3 on a Windows machine (no python3 on PATH), a python that is Python 2, or a hook that raises at import would each be a nonzero-but-not-2 failure, i.e. a silently disabled gate. The loop coerces exactly those gate-process failure modes - missing interpreter, unsupported interpreter, import failure, nonzero gate-process exit - into exit 2, so they refuse instead of waving the call through. It does not cover Claude-level hook cancellation or the hook timeout, which "onFailure": "block" covers only on Claude Code 2.1.295 and later (above).

Windows: shell-form hooks run under Git Bash when it is installed, and Claude Code falls back to PowerShell when it is not - where this POSIX loop is a parse error with a non-blocking exit code, i.e. the gate silently disables (live-verified). recusal init therefore registers a PowerShell-native launcher with an explicit "shell": "powershell" on Windows; the POSIX form above is for macOS/Linux and Windows-with-Git-Bash. For a settings.json shared across operating systems, recusal init --launcher both registers the pair, and recusal doctor validates the registered launcher against the host.

Write the policy: two postures, one principle

A policy is a function; the gate does the rest:

# my_gate.py from recusal import Finding from recusal.claude_code import run_pretooluse_hook def policy(tool_name, tool_input): if tool_name == "Bash" and "rm -rf" in tool_input.get("command", ""): return [Finding.fail("destructive_bash", severity="CRITICAL", message="refusing rm -rf")] return [] # no opinion → defer to Claude Code's normal permission flow run_pretooluse_hook(policy) A clean verdict defers (Recusal adds refusals; it never strips Claude Code's own prompts). A non-clean verdict denies, with the reasons. See examples/claude_code_gate.py.

Pick the posture by your channel, not by a ranking.

Allowlist mode (default-deny) is the enforcement posture: name the affirmatively-safe calls, refuse everything else. It fits a narrow, enumerable, high-stakes channel: nothing runs unless listed, and bare interpreters and shell metacharacters are refused, which closes the documented command-construction and bare-interpreter bypass classes by construction (pinned as tests). Within a correctly registered routed tool channel, an unapproved capability is refused by default rather than inferred safe; what sits outside that channel is named in SECURITY.md. One more honest line: the default-safe tools are nonmutating, not authorized for all data - cat can read a credential file - so add path- and subject-level read rules where confidentiality matters. The trade is friction and maintenance: you enumerate and grow the capability set, and it fails toward refusal until you do.

from recusal.claude_code import allowlist_policy, run_pretooluse_hook run_pretooluse_hook(allowlist_policy(writable_root="./workspace")) The deny-list is the low-friction door: name the known-bad calls, defer everything else. It drops into a broad, open-ended channel with almost no friction and needs no inventory of your tools, which is why this repo dogfoods it (a general-purpose dev repo runs an unbounded set of legitimate commands). Its boundary is inherent, not a defect: a literal matcher can be obfuscated past, and python script.py runs code no string check ever reads, so a deny-list never earns "cannot be subverted." It also refuses package-manager mutation of the enforcement package itself (pip uninstall recusal and install-time shadowing, across the pip / python -m pip / uv spellings and their option, value, and Windows launcher forms), comparing canonical distribution identities and refusing a merely name-containing source (./fake-recusal) toward safety. Exactly what is and is not covered, form by form: SECURITY.md and docs/HOWTO.md.

Neither is "better" in the abstract: a deny-list refusing the unknown would grind a broad channel to a halt, and an allowlist deferring the unknown would defeat the point of a high-stakes one. Choose by the channel. Both ship, and both are pinned as tests.

Don't start from a blank policy. docs/COOKBOOK.md has copy-paste recipes (destructive shell, unscoped SQL, secret-file writes, wrong-subject writes, egress allowlists, injection quarantine, action budgets) that drop straight into the hook above.

Recusal governs this repository exactly this way: a real hook refuses rm -rf, force-pushes, and secret-file writes to its own maintainers. Verbatim, reproducible, CI-locked proof: docs/PROVEN.md.

MCP tools, the same gate

MCP server tools reach Claude Code as ordinary tools (mcp____), so the .* matcher above already routes every MCP call through the same policy(tool_name, tool_input) seam: no MCP-specific adapter, no extra wiring. Destructive-operation refusal, repository/record scope, write-path confinement, egress and action budgets, and the tamper-evident audit record apply to MCP exactly as to Bash; in allowlist mode an MCP tool is refused unless affirmatively named.

The three MCP tool-call boundaries, stated plainly. A call-time policy adjudicates the proposed tool name and arguments; MCP has two more boundaries, and Recusal covers each with its own evidence:

Transport and authorization threats (confused deputy, token passthrough, session hijacking) are the MCP specification's own Security Best Practices layer, complementary to this gate, neither replaces the other.

The discovery boundary gets its own deterministic control. The model chooses tools by reading their declared descriptions, so a poisoned declaration steers the agent before any call exists for a call-time policy to see. Pin what a human approved, then refuse represented drift:

recusal mcp pin --claude-config .mcp.json --approve-server-launch # review once, pin recusal mcp verify --claude-config .mcp.json --manifest mcp-manifest.json # CI / session start: same source, instructions, and declarations, or refuse verify fails closed (a missing manifest or an unreachable pinned server is a refusal, never a clean-looking pass), and the pin enforces at call time: recusal.mcp.manifest_policy("mcp-manifest.json") refuses any mcp__server__tool call that was never pinned. No pin, no MCP. Opt-in strict modes: pin --resolve-executable also pins the {path, sha256} of the file each stdio command resolves to (a swapped executable behind an unchanged command template refuses), and pin --scope LABEL stores an operator-declared observation-scope label whose stability is verified across re-pins (a changed scope is a named WARNING; the label's truth is never verified). The honest boundary, in one line: verification is point-in-time over the configuration artifact you supply, not continuous attestation of Claude's effective MCP environment; the full statement, with every named residual (transport, OAuth, plugin runtime identity, list_changed, roots), is docs/MCP.md.

Runnable: examples/mcp_governance.py and examples/mcp_manifest_rugpull.py (both offline). Recipes: docs/COOKBOOK.md §12-§14.

Tamper-evident audit

Pair any verdict with an append-only, hash-chained log: every decision on the record, and an in-place edit or reordering of any entry with a surviving successor is detectable (catching tail-truncation, a tail-suffix rewrite, or a forged append by a write-access attacker needs an external anchor, see recusal.audit):

from recusal import AuditLog, verify audit = AuditLog(path="audit.jsonl") audit.append(verdict, action={"tool": "Bash", "command": "rm -rf /"}) ok, problems = verify(audit.entries) # False if an entry with a later entry was edited/reordered In the Claude Code hook it is one argument: run_pretooluse_hook(policy, audit=AuditLog("audit.jsonl", resume="tail")) puts every adjudication - defer, allow, and deny - on the chain, with the proposed tool_input bound by SHA-256 fingerprint, never embedded, and an unwritable log failing closed to a deny (the record is part of the control). Declared policy_id/policy_version values are caller-supplied labels unless you separately bind them to a protected source artifact; the record provides the identifiers needed to locate the policy and evidence for replay, it does not by itself make arbitrary policy execution replayable. resume="tail" recovers the chain head from the final record without loading or scanning the full log, and file-backed appends are serialized with an inter-process lock, so hooks for parallel tool calls extend one chain instead of forking it. Every append also checks the line framing under that lock: a final record that lost its newline is terminated first, and a file ending in an incomplete record refuses the append (AuditFramingError, a deny in the hook) rather than fuse the new entry onto it.

Any other runtime gets the same record from decide: decide(tool_name, tool_input, policy, audit=log, surface="my_runtime.tool_gate", tool_use_id=call_id) writes the same entry through the same recorder, with the same fail-closed rule. surface is required whenever audit= is passed and names the runtime that adjudicated, so every entry says where its decision was made; claude_code.pretooluse is reserved for the hook. Without audit=, decide is the same pure function it has always been.

The external anchor is first-class: AuditLog(..., sinks=[...]) mirrors every committed entry to any object with a write(entry) method (a WORM bucket, another host, a signer; recusal.AuditSink is the protocol), and a sink failure surfaces as a failed append, so the hook fails closed to a deny rather than adjudicating off the record. Each entry carries its seq and hash, so a sink holds the head anchor (seq + 1, hash) directly. Each sink is handed a copy of its own, the entry as the file stores it, and append returns another to its caller: a sink that changes or keeps its copy, or a caller that changes the returned entry, changes nothing any other sink receives and nothing the log holds. Opening a log can then refuse instead of trusting: AuditLog(path, verify_on_open=True) raises AuditIntegrityError rather than extend a file that fails strict verification, and AuditLog(path, expected_head=(count, hash)) also refuses truncation, a tail-suffix rewrite, or forged appends against that externally held head.

Run python examples/audit_sink.py for a custom sink example that mirrors entries, saves the head, and refuses a truncated log; its local mirror demonstrates the interface, not protected external storage.

Deterministic, stdlib-only, and designed to support OWASP Agentic logging and EU AI Act Article 12 record-keeping: in a regulated deployment, this can provide one auditable decision artifact within the broader system of records, controls, evidence retention, and deployment governance.

Why an independent gate

The reflex fix for agent safety is another model asking "does this action look OK?", but a judge from the same family shares the builder's blind spots and drifts with it: that is a conflict of interest, not a control. Recusal is an independent, deterministic authority instead: no model in the decision path, a verdict you can replay and audit, and a refusal that holds. "Independent" means the verdict is produced outside the model's decision path; deployment isolation (who owns the config, the file permissions, the runtime) remains the adopter's responsibility.

The published evidence (models faking passing tests, benchmarks gamed by intercepting the evaluator, and the stated limits of Anthropic's own same-family safety layer) is laid out in docs/WHY.md, every source verified in docs/REFERENCES.md.

One object model, one pipeline. Checks (or your own evidence) produce Findings; compute_verdict folds them into a Verdict; and the Verdict drives every surface: the gate refuses, the audit log records, the classifier routes.

The same verdict is read in four places: recusal.claude and recusal.claude_code allow or refuse the tool call, recusal.audit writes the hash-chained record, recusal.classify routes the failure (retry, refuse, ask a human), and recusal.gates applies it at each stage of a G0-G8 release decision.

Zero runtime dependencies, standard library only.

The verdict, directly:

from recusal import compute_verdict from recusal.checks import row_count, null_rate, referential_integrity verdict = compute_verdict( [ row_count(users, min_rows=1), # CRITICAL if empty null_rate(users, "email", max_rate=0.10), # ERROR if too sparse referential_integrity(orders, users, fk="user_id", pk="id"), # CRITICAL on orphans ] ) if verdict.refused: raise RuntimeError(verdict.reasons()) Worst finding Verdict Meaning CRITICAL failure FAIL Terminal. The work is wrong. Do not retry. ERROR failure RETRY Recoverable. Retry once, with the failures as context. WARNING / INFO only PASS Proceed. Warnings recorded, info kept as metrics. An empty findings list is the question most gates get wrong, so the kernel names both answers instead of picking one silently. evaluate_policy(findings) reads findings as objections: nothing raised means no objection, PASS. certify_evidence(findings) reads them as proof: nothing presented certifies nothing, so it refuses with a synthesized no_evidence failure. compute_verdict is unchanged and identical to evaluate_policy. Pick by what your findings mean (docs/EVIDENCE.md).

How Recusal fits into Claude Code

Recusal uses PreToolUse, Claude Code's native pre-execution policy seam, and it is intentionally ONE layer in a broader control stack, not a replacement for the others. Claude native permissions own broad allow/ask/deny rules (a native deny applies regardless of any hook decision). Claude sandboxing constrains what an allowed command can touch after it runs. Managed settings own organization-controlled policy, hook distribution, and MCP server restrictions (allowedMcpServers bounds the servers users add, and is authoritative only with allowManagedMcpServersOnly: true; since Claude Code 2.1.259 it no longer filters managed-mcp.json servers, other than those using ${VAR} expansion; deniedMcpServers still subtracts from all of them). Claude MCP configuration owns transport, OAuth, credentials, and endpoint connectivity. Recusal owns deterministic evidence adjudication: explicit findings become PASS/RETRY/FAIL with no model in the decision path, a clean verdict defers to Claude's remaining permission flow by default, and a non-clean verdict denies before execution. The strongest deployment is layered:

managed settings configure the allowed control surface tool proposal -> Recusal PreToolUse adjudication -> Claude native permission rules and prompt -> Claude sandbox / OS boundary -> approved tool or MCP execution (audit records the Recusal decision separately, externally anchored) The diagram shows execution order (PreToolUse runs before the permission prompt); enforcement precedence is deny-wins across the hook and native permission layers - a native deny applies regardless of any hook decision, and a blocking hook takes precedence over a native allow.

Claude Messages API, manual loop

In a manual agent loop, gate each tool call and hand Claude an is_error tool_result on a refusal; it self-corrects:

from recusal.claude import gate_tool_use allow, refusal = gate_tool_use(tool.id, gather_evidence(tool), tool_name=tool.name) if not allow: results.append(refusal) # is_error=True → Claude adapts else: results.append( { "type": "tool_result", "tool_use_id": tool.id, "content": execute_tool(tool.name, tool.input), } ) Runnable: examples/claude_agent_live.py (real API) and examples/claude_refusal.py (offline, no key). For Managed Agents always_ask, recusal.claude.tool_confirmation is the deterministic decider, building the user.tool_confirmation event Anthropic documents; under the auto policy it decides only the calls the server pauses on (see docs/HOWTO.md).

Any agent loop, no Claude required

The Claude adapters are conveniences; the zero-dep core is framework-neutral. examples/agent_loop.py gates a plain propose → gate → act loop whose only import is recusal. The same compute_verdict seam fits any runtime that lets you check a call before the tool runs; Works with lists what is tested today and what is coming.

Each framework below has a tested gate. The table gives the package, the exact versions it is tested with on every pull request, and a runnable offline example of the plain gate and of the gate with an audit log. What each gate hands the policy, what it refuses before the policy runs and what its hook cannot see is in docs/FRAMEWORKS.md, one section per framework.

LangGraph pause, resume and replay are covered in the LangGraph detail: the gate decides at execution time, under the policy in force when the call runs.

Every adapter above calls decide(..., safe_errors=True). When a policy, the fingerprint or the audit write raises, the model reads a stable code and the exception's class, for example Recusal failed closed (policy error): RECUSAL_POLICY_ERROR (RuntimeError), and the audit record stores the same; the exception's own text, which can carry a connection string or a credential, reaches neither. The option is off by default on decide, run_pretooluse_hook, gate_tool_use and tool_confirmation, where the reason keeps the exception text as it always has (the plaintext boundary documented in recusal.audit); pass safe_errors=True to select it. The Claude Code plugin and the gate script recusal init writes select it for you. The messages of findings a policy returns are never rewritten in either mode.

Every adapter above also has an audited companion, examples/_audit.py, that puts each decision on a hash-chained AuditLog through the same code path as the plain gate. A judged call is bound to the invocation the tool runs with, a call refused before judgment is still one entry, and an unwritable log refuses the call. The surface label and the call id each runtime gives the record are listed in docs/ARCHITECTURE.md.

What the gate guards, and what it doesn't. It judges each call the model proposes, the tool name and its arguments, before that tool runs. A policy covers only the tools it names: examples/sql_scope_policy.py inspects run_sql and query, so a SQL tool under another name passes through until the policy names it. And the gate sees the proposed call, not what a tool does internally once it runs, so a tool that builds a command or query at runtime needs checks of its own.

Robustness, across the OWASP Agentic failure modes

python examples/gallery.py runs the gate against the common autonomous-agent failure modes:

scenario OWASP verdict outcome wrong-subject write ASI03 Identity Abuse FAIL REFUSE destructive file delete ASI02 Tool Misuse FAIL REFUSE unscoped SQL mutation ASI05 Code Execution FAIL REFUSE data exfiltration ASI01 Goal Hijack FAIL REFUSE coverage floor quality gate RETRY BLOCK (retry) runaway action volume ASI08 Cascading RETRY BLOCK (retry) compliant write - PASS ALLOW The tiers are the policy: destructive things REFUSE terminally; recoverable ones BLOCK with a retry; a clean call passes. (Same policies power the demo and the test suite.)

CI is, by construction, not the session that did the work, which makes it the natural place for a recusal verdict. The same kernel runs as a command line with blocking exit codes (PASS 0, RETRY 1, FAIL 2; any operational error exits 2, failing closed):

recusal verdict findings.json --json # adjudicate any tool's findings; nonzero blocks the job recusal audit verify audit.jsonl --expect-head "42:" # a missing log is NOT an intact log recusal doctor # "the gate silently isn't installed" fails CI, not prod Every command and flag of the command line is in docs/CLI.md.

Or as a GitHub Action (action.yml, dogfooded by this repo's own CI, including the negative case: a tampered audit log must make the gate refuse):

- uses: actions/setup-python@v6 with: python-version: "3.12" - uses: philpaz/recusal@v0.17.2 # or pin an immutable commit SHA for stronger provenance with: findings: reports/findings.json # RETRY exits 1, FAIL exits 2 → the merge is blocked audit-log: reports/audit.jsonl doctor-dir: "." Every input is optional. findings, audit-log and doctor-dir each run a check, and the action exits with the highest code any of them returns.

The action ref selects the implementation: the action force-installs the recusal bundled with the selected ref, replacing whatever happens to be on the runner, so pinning the action pins the code (proven in CI on a clean runner and against a deliberately conflicting preinstall). The two escape hatches are explicit inputs that name the provenance trade: version: installs a named PyPI release, and use-installed: "true" keeps a deliberately preinstalled checkout.

Given nothing to adjudicate, the action exits 2 rather than pass vacuously: an evidence set that proves nothing certifies nothing.

Classify and route a failure

A refusal or failure is only useful if you know what to do next. The classifier says what kind of failure it is and where it routes, deterministically, with no model:

from recusal import classify_failure c = classify_failure("Traceback ... TypeError: 'NoneType' object") c.failure_class # "code_bug" c.route # "fix-code" Default taxonomy (extend or replace it): transient → retry · policy_violation → refuse · prompt_injection → quarantine · code_bug → fix-code · data_shape → fix-data · data_missing → fetch-data · spec_ambiguity → ask-human. Unmatched failures fall back to ask-human; it never guesses. classify_verdict(verdict) routes a non-PASS verdict.

A gate is only worth trusting if you can check it. This is what the project does to hold itself to the rule it asks of agents, each with where to verify it:

Everything is indexed in docs/. By what you are trying to do:

pip install -e ".[dev]" pytest -q The suite is the argument: per-surface edge cases, adversarial red-team tests against the dogfooded hook, drift locks that fail when a document and the code it describes disagree, and Hypothesis property tests over the frozen kernel (verdict monotonicity and order-independence, the documented decision fold, fail-closed string coercion, strict-mode refusal of outcome-less evidence, fingerprint stability). Hypothesis is a dev extra, derandomized in CI; runtime dependencies stay at zero.

Contributions are welcome. Recusal is deliberately small, and the bar is keeping it that way (no model in the verdict path, no runtime dependencies, don't grow the kernel). Read CONTRIBUTING.md and the CODE_OF_CONDUCT.md first. Security reports go through SECURITY.md, privately.

Thank you to the people who have made Recusal better:

@DYNOSuprovo (Suprovo Mallick): the recusal.checks.date_range check in #17, the project's first outside contribution. Reviewing it also exposed a cross-Python bug in Recusal's own expiry check, fixed in 0.10.2.

@fatihcvs: seven tested cookbook examples (a custom audit sink, egress allowlist, action budget, workspace confinement, SQL scope, destructive shell and approved-tool allowlist), a hardened prompt-injection screen, and follow-up fixes, in #23, #24, #25, #33, #34, #38, #39, #48, #49, #50 and #51.

@RugvedBane (Rugved Bane): threshold validation in row_count, null_rate and in_range, so a NaN threshold can no longer turn a check off, in #63.

@soyeladice-svg (Alejandro Florez): the LangGraph tool-call gate, and tested cookbook recipes for policy composition, quality evidence and subject binding, in #62, #69, #70 and #71.

@biggdawg320 (Jim Hall): a fix for concurrent first appends to an audit log on Windows, in #68.

@Sinkleberg: the async LangGraph gate, in #74.

@jum-apzn: the test that runs every code block in the cookbook, in #90.

@jay23606 (Jay): the SQL check in the agent loop example, which a WHERE hidden in a comment no longer fools, in #89.

@dannyward630 (Danny Ward): the test that checks every recusal import in the documentation's Python examples against the real module, and the EXTENDING.md example it caught, in #140.

@jdotc1 (Jeff): standalone smoke tests for the audit and classifier demos, and the examples index with the test that keeps it complete, in #149 and #150.

@Varma0604 (Mouli Varma Sagi): the .editorconfig and the test that keeps its line length equal to Ruff's, in #178.

@ZYZ666-RGB (yuzhou): Hypothesis property tests for the MCP name helpers, in #183.

@hananbahi527: complete type annotations and strict mypy checks for three adapters, recusal-pydantic-ai, recusal-google-adk and recusal-crewai, in #270, #301 and #303; and the check that the wheel of every adapter installs, runs and type-checks on its minimum Python as well as on 3.12, in #310 and #320.

@noqt: the weekly lane that smoke-tests each installed adapter wheel against the newest framework release, in #268.

@BuildWithPranav (Pranav): probes that name the two private framework helpers recusal-langgraph relies on, each with a negative control, so a LangGraph or LangChain release that changes one fails on a test that says which, in #285.

Want to join them? Issues labeled good first issue are a friendly place to start; see the open issues.

Built by Philip Paz. Messages are open, especially from teams running agents in regulated environments, and doubly so if you wired the gate in and found where it leaks (tell me here).

Apache-2.0 © Philip Paz

Released: Nov 29, 2026

Both files in this release have provenance metadata.

View provenance details

Apache-2.0 View SPDX License List

agent-governance agent-reliability agent-safety ai-agents ai-safety claude claude-code determinism guardrails llm runtime-governance separation-of-powers tool-use verifier

Development Status 4 - Beta

Intended Audience Developers

Information Technology

Operating System OS Independent

Programming Language Python :: 3

Topic Scientific/Engineering :: Artificial Intelligence

Software Development :: Quality Assurance

Release files for recusal 0.17.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 5.3 MB

Release files / recusal-0.17.2.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Release files / recusal-0.17.2-py3-none-any.whl

Security for recusal 0.17.2

Both files in this release have been uploaded with provenance metadata.

With provenance recusal-0.17.2.tar.gz Nov 29, 2026

With provenance recusal-0.17.2-py3-none-any.whl Nov 29, 2026

Attestation for recusal-0.17.2.tar.gz

Attestation for recusal-0.17.2-py3-none-any.whl

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 27, 2026 2 release files Full provenance

Nov 23, 2026 2 release files Full provenance

Nov 21, 2026 2 release files Full provenance

Nov 19, 2026 2 release files Full provenance

Nov 14, 2026 2 release files Full provenance

Nov 12, 2026 2 release files Full provenance

Nov 9, 2026 2 release files Full provenance

Nov 5, 2026 2 release files Full provenance

Nov 4, 2026 2 release files Full provenance

Nov 3, 2026 2 release files Full provenance

Nov 2, 2026 2 release files Full provenance

Oct 18, 2026 2 release files Full provenance

Oct 13, 2026 2 release files Full provenance

Oct 10, 2026 2 release files Full provenance

Oct 2, 2026 2 release files Full provenance

Sep 27, 2026 2 release files Full provenance

Sep 25, 2026 2 release files Full provenance

Sep 23, 2026 2 release files Full provenance

Aug 27, 2026 2 release files Full provenance

Jul 27, 2026 2 release files Full provenance

Jul 23, 2026 2 release files Full provenance

Jul 13, 2026 2 release files Full provenance

Jul 12, 2026 2 release files Full provenance

Jul 10, 2026 2 release files Full provenance

Jul 9, 2026 2 release files Full provenance

Jul 6, 2026 2 release files Full provenance

Jul 5, 2026 2 release files Full provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from fc0d8e6

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.