Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

nikhi-adhara-sutra

Latest version: v1.0.0

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
PyPI package Publisher: NikhilVijayakumar
0 Stars
0 Forks
1 Versions

Scan summary

nikhi-adhara-sutra was last scanned on 1 Dec 2026 at version 1.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 1 Dec 2026.
  • Findings: No rules fired in version 1.0.0.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.0 LATEST 1 Dec 2026 No rules fired

No rules fired in 1.0.0

Findings

Findings for v1.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

AdharaSutra (आधारसूत्र)

Documentation: Requirements · Architecture rules · Connectors · Migration guide · Protocol reference · OpenSpec changes · Knowledge

The initial runtime is available as nikhi.adhara_sutra. For a working example, run PYTHONPATH=src python3 examples/basic_app.py and send a newline-terminated request such as {"kind":"request","protocol_version":"1.0","request_id":"1","action":"greeting.create","payload":{"name":"world"}}. Use --persistent to keep the process open; the first request must call system.hello. Persistent requests currently execute sequentially. With the package installed, adhara run examples/basic_app.py (or a module name) loads the application's app, application, or create_app() and serves the same protocol; adhara version prints the framework version. The repository example runs the same way and serves items.add and items.list; both shipped examples are exercised by the test suite. adhara doctor [target] [--json] [--output FILE] reports framework, interpreter, dependency, and configuration diagnostics with remediation, and, when a target is given, the application's registered actions, jobs, and services without printing configuration values. Package releases follow Semantic Versioning. The CLI protocol has its own PROTOCOL_VERSION (1.0), advertised by system.hello and validated before dispatch; the Electron bridge exports the same constant and refuses a backend that does not support it. Report formats carry independent schema_version and profile versions. Tests can use ApplicationTestClient(app) as an async context manager to start the runtime and await client.call(action, payload) (or .dispatch for the full envelope) without the CLI transport. Subclass the shipped CLIContractTests case and implement create_application() to run the framework's executable protocol contract tests (handshake, help, error envelopes, health, cancellation) against your application. Services and connectors can be replaced with test doubles, ExternalCommand runs controlled executable fixtures with their own environment and working directory, and verify(ProjectInspector(path).inspect()) evaluates the architecture rules inside a test. adhara inspect [path] [--json] [--output FILE] statically analyzes a project and reports its entry points, actions, jobs, services, integrations, dependencies, state and job access, and Electron boundaries. Every finding cites file and line evidence and is marked observed or inferred; reports carry a schema version and the Git revision when available. adhara verify [path] [--json] [--output FILE] [--strict] evaluates the versioned architecture profile against that discovery and reports each check as pass, fail, needs review, or not checked, with evidence and remediation. A profile can require files and directories, forbid imports, and declare layer boundaries (a source path prefix, an imported module prefix, and remediation); catalogued rules also flag direct HTTP, external-command, and SQLite integrations, standard-stream protocol bypasses, and unmanaged background tasks. It exits 0 without failures, 1 with failures (or with needs-review checks under --strict), and 2 for an invalid invocation, so it can run in CI. --baseline FILE applies a committed JSON baseline of acknowledged violations: a check is acknowledged only when every location it reports is listed, so new violations in the same rule still block (and with --strict, unacknowledged needs-review checks too), while acknowledged checks stay visible in reports. --write-baseline FILE captures the current violations as a starting point; edit the entries to add reason notes for review. adhara migrate [path] [--strategy adapter-first|incremental|rebuild] [--status FILE] [--json] [--output FILE] combines discovery and verification into a structured migration plan: actionable findings with evidence and recommendations, and independently verifiable tasks with verification and rollback guidance. The plan preserves existing business behavior, CLI and Electron contracts, and persistent data, and changes no source files. A status file maps task ids to pending, in_progress, done, deferred, or blocked for progress reporting. Application.run() returns the process exit code, so entry points should raise SystemExit(app.run(...)): 0 success (or a cleanly ended persistent session), 2 no request was received, 3 initialization failed, 4 an action failed, 5 a connector operation timed out, 6 an interrupt (cancellation), 7 a connector or dependency failure, 8 a protocol failure, 10 an internal failure. Action failures do not end a persistent session. Handlers emit correlated progress events with context.emit(event, data); each event is a newline-delimited {"kind": "event", ...} envelope written before the request's terminal response. The system.hello response reports the application name and version, the framework version, and the supported protocol versions. Send system.help to list registered actions with their descriptions and schema hooks; an unknown action reports the available action names. Protocol error objects carry a stable category (protocol, validation, action, lifecycle, connector, internal) alongside code, message, retryable, and optional details. See docs/protocol-reference.md for the maintained protocol reference covering messages, events, errors, sessions, version compatibility, and exit codes. Application names are unique among live Application objects in a process. Invalid definitions raise ApplicationDefinitionError, a ValueError with code and field attributes; a name can be reused after its object is released. For bootstrap, pass a synchronous validate_config callback to Application; raise ValueError or TypeError to reject configuration. Register services or connectors with app.service(name, factory, depends_on=(... ,)). Factories return synchronous or asynchronous context managers and receive the application context. Dependencies start first and resources close in reverse startup order. Unknown or cyclic dependencies and invalid configuration raise BootstrapError before any service starts. The original exception is available as __cause__. Configuration merges, lowest priority first: the config mapping, a JSON object from config_file= or ADHARA_CONFIG_FILE, ADHARA_CONFIG_<KEY> environment variables (lowercased top-level keys, values parsed as JSON when possible), and app.override_config({...}) before startup. Validation runs on the merged mapping. An unreadable, malformed, or non-object config file aborts startup with its path, its source (config_file or ADHARA_CONFIG_FILE), and the underlying reason in the error. A failing validate_config reports its message before any service starts. Credentials can come from ADHARA_CONFIG_* variables or a config file, so they need not be embedded in application source; connectors accept them as headers or environment values. Diagnostics are structured JSON written to stderr; Application.run() installs the handler automatically and configure_logging() is available for custom entry points. The level defaults to ADHARA_LOG_LEVEL (INFO when unset) and can be set programmatically. Each record carries timestamp, level, logger, and message, plus request_id and action while a request is being handled and exception for tracebacks. stdout stays reserved for protocol messages. Log messages, exception text, protocol error messages and details, and generated reports redact values under keys such as password, token, secret, and api_key, including quoted or bare key=value assignments and bearer headers, replacing them with [REDACTED]. Framework log records are redacted before any handler formats them, including the default one. Redaction is pattern-based, so a secret written in an unusual format can still pass through. Handlers share process state through context.state, share state within a persistent session through context.session_state, and get a fresh context.request_state per request. Request state is discarded when the request ends, session state when the persistent session ends, and process state lives until the application stops. Applications define the keys and values; service factories receive the same process state at startup. context.state_lock is one asyncio.Lock per application, shared by request and job contexts; use it to serialize compound process-state updates when jobs run concurrently. Plain state mappings are otherwise unsynchronized, so the application owns any other coordination it needs. Independent Application instances do not share state, configuration, jobs, or services. Subscribe to process-state changes with unsubscribe = context.state.subscribe(listener, key="name"); omit key to observe all keys. Synchronous listeners receive (operation, key, value), with operation equal to "set" or "delete"; deletions include the removed value. Notifications follow top-level mutations, not in-place edits of nested values. Listener failures are logged and do not undo changes. Call unsubscribe() when the subscription is no longer needed.

Background jobs are registered with @app.job(name, timeout=...) and submitted from a handler with context.jobs.submit(name, payload), which returns an identifier. Actions and their submitted jobs share the same session-state mapping, including when it starts empty; a dispatch with no supplied mapping gets a fresh scope. Job handlers receive (payload, context); events they emit carry the job_id, and their log records are correlated with it. Use context.jobs.status(id), .list(), .cancel(id), and .wait(id) to inspect execution. Send system.cancel with {"job_id": ...} to cancel a managed job; the result reports whether cancellation was accepted, its phase (requested, completed, unsupported, or failed), and the current status. A full queue rejects new work with the retryable JOB_QUEUE_FULL error instead of growing without bound. Jobs run in-process with bounded concurrency (max_concurrent_jobs, default 4) and a bounded waiting queue (max_queued_jobs, default 64); timeouts apply to async handlers. Stopping the application cancels active jobs before services close, so jobs never outlive their owning process. Shutdown uses a cooperative shutdown_timeout budget (default 10 seconds), reserving at least half for service cleanup and attempting it even when job shutdown fails. Blocking synchronous cleanup or cancellation-resistant coroutines can exceed that budget. External commands accept a kill_timeout grace period before forced termination. Long jobs should use async handlers and nonblocking adapters. Synchronous job handlers remain supported but registration emits a DeprecationWarning: they run inline, and a job timeout cannot bound their synchronous portion. Removing this support would require a future declared incompatible version; no removal date is set. Timeouts and cancellation are cooperative. Changing def to async def does not make a blocking function safe to call directly; blocking the event loop also blocks health checks and cancellation. Run CPU-heavy work in an external process or a future executor designed for it.

For example, after registering an ExternalCommand service named command:

@app.job("convert", timeout=60)
async def convert(payload, context):
    result = await context.get_service("command").run([payload["input"]])
    result.raise_for_status()
    return {"output": result.stdout_text}

For synchronous HTTP, see the isolated offload guidance in the connector reference.

Optional job-store persistence records job metadata; recovery marks unfinished records interrupted and does not restart their handlers. Admission first creates its context and saves the queued snapshot before scheduling. If scheduling fails, the runtime attempts to save a JOB_ADMISSION_FAILED terminal record. The store and event loop do not share a transaction: if that save also fails, a queued snapshot may remain and is marked interrupted on recovery.

Connectors are services: register them with app.service, resolve them with context.get_service, and replace them with a test double by registering the double in place of the live factory. A service with a callable health() (synchronous or asynchronous, truthy when available) is reported by system.health after startup as {"status": "ok"|"degraded", "state": ..., "services": {...}}. Raise ConnectorError(message, retryable=..., details=..., connector=...) for an expected upstream failure: the response reports code CONNECTOR_FAILURE, category connector, the retryability flag, the connector identity (the built-in HTTP, external-command, and SQLite connectors report http, external, and sqlite), and optional details, and one-shot execution exits 7 while a persistent session continues. Raise it with code="CONNECTOR_TIMEOUT" for a timeout so the response reports CONNECTOR_TIMEOUT and one-shot execution exits 5; built-in command and HTTP timeouts already do.

Applications can map exceptions raised by action handlers with app.map_error(DomainError, code="ACTION_VALIDATION_FAILED", message="Invalid request") before startup. Supported codes are ACTION_VALIDATION_FAILED, ACTION_NOT_FOUND, CONNECTOR_FAILURE, CONNECTOR_TIMEOUT, and RUNTIME_EXECUTION_FAILED; retryable defaults to false. The most specific registered exception class wins. The public response uses the configured message, while diagnostics retain the original exception.

The optional HTTP connector (pip install nikhi-adhara-sutra[http]) wraps one reused httpx client: register HttpClient(base_url=..., timeout=...) as a service, call get/post/put/patch/delete/head, and read status, headers, body, .text(), or .json(). raise_for_status() raises a ConnectorError for non-success statuses, marking only server, timeout, and rate-limit statuses as retryable; transient network failures and timeouts are retryable connector errors. The client closes when the application stops. For Basic authentication pass auth=(username, password); for bearer tokens pass an Authorization header. Obtain credentials from environment variables or the application's configuration rather than embedding them in source code. Use HTTPS to protect credentials in transit. Set max_retries (default 0) and retry_delay in seconds (default 0) to retry transient network failures and HTTP 408, 429, 500, 502, 503, or 504 responses. Automatic retries apply only to GET, HEAD, and OPTIONS; the final response or error is returned after exhaustion. The delay is fixed and applies between attempts. For incremental response bodies, use with client.stream("GET", url) as response: and iterate over response.iter_bytes(). The stream exposes status, headers, url, ok, and raise_for_status(); leaving the context closes the response even if it was only partly consumed. Streaming requests are not automatically retried.

SQLite is available as SQLiteDatabase(path=...): register it as a service and use execute, executemany, query, query_one, and transaction() for explicit commit or rollback. Foreign keys are enabled, and one connection is owned by the thread that starts the application, so cross-thread use is rejected. db.migrate([(1, create_schema), (2, upgrade_schema)]) applies application-defined migration callables in strictly increasing positive version order, recording versions in adhara_schema_migrations. Supply the complete history on every run; mismatched history is rejected. Pending migrations and their records commit together or roll back together. Callables receive db and must not manage transactions themselves. Run migrations outside a transaction. db.integrity_check() returns SQLite's integrity messages (["ok"] for a healthy database), and db.backup(path) creates a consistent backup at a new file path without overwriting an existing file. To recover, stop applications using the database, preserve the damaged files, restore a verified backup to the database path, and check its integrity before resuming service.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases nikhi-adhara-sutra

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229