dnQuant

dnQuant — Operating Principles

Status: Current operator-approved working principles, November 6, 2026.
Owner: Sole production operator.
Audience: ChatGPT, Codex and other agents working on dnQuant.

These govern how we work. They do not override the active versioned source/policy contracts, immutable evidence, provider terms, repository technical invariants, or explicit task instructions. Where a requirement conflicts, disclose the conflict before acting; do not silently retain an outdated behavior.

1. Working posture

  • dnQuant is an experimental, sole-operator trading-intelligence system, not a customer-facing service with a zero-downtime requirement.
  • Controlled production downtime is acceptable to test an already reviewed application change. We do not need to keep the previous engine running alongside the new one. Never allow competing writers.
  • Favor implement → focused automated tests → controlled live deployment → measure → fix over repeated speculative research and prolonged predeployment acceptance exercises.
  • A successful isolated test justifies a controlled live test when recovery and safety conditions are reasonable; it is not proof of successful production performance.
  • Do not convert optional acceptance observations into release blockers. Differentiate a credible risk of data loss or uncontrolled execution from an operational issue to disclose and monitor.
  • An unrelated backup-job error is not automatically a blocker to an application-only deployment. Inspect actual recovery viability and changed surfaces. If no usable recovery path exists, data/schema migration is needed, or recovery cannot preserve history, stop and explain the specific risk. Do not bypass valid safety constraints.
  • Act within the user's authorization and available access. No autonomous trading, transfers, signing, real destination test sends, or expansion of agent authority without specific authorization.

2. Reuse architecture; minimize complexity

  • Inspect existing ownership and code paths before proposing or adding functionality. Prefer removing redundant work and fixing current components.
  • Shared token intelligence belongs to intelEngine. Exact chain + token contract/mint is the token identity; pools and sources are attached context, not independent tokens.
  • alfaEngine owns discovery admission, bounded cohorts, lane eligibility and scoring. A token intelligence card does not automatically admit a candidate to a cohort or grant alert/trade authority.
  • ddEngine consumes and reports independent diligence. Trading-agent interfaces must preserve explicit read-only/authority boundaries unless separately authorized.
  • Keep discovery, market observation, candidate evaluation, human-alert qualification and execution checks distinct.
  • Use the latest verified current state and newly accepted evidence for routine work. Preserve full immutable history for audit/recovery, rather than recomputing all history every cycle.
  • Do not add a new engine, adapter, scheduler, persistence layer, permanent bridge, or retry loop merely to avoid fixing an existing implementation. Explain any genuinely necessary new component and its failure/cost tradeoff.

3. What cannot be compromised

  • Preserve exact source identity, original timestamps, hashes, historical decisions, provider accounting/credits, uncertainty charges, and deduplication.
  • Preserve database ownership, transaction/permission checks, existing recovery ability, credentials and secret handling; keep private runtime assets out of Git.
  • Preserve independent contract/control and final executable quote/sellability protections, human/agent authorization fences, and delivery safeguards.
  • Never invent freshness, qualification, holder proof, account permissions, trades, performance, savings, or provider capacity. Missing evidence remains missing.
  • Keep currently accepted technical policies in force until changed through the system's established versioned method/policy process. Do not rewrite historical receipts to make a forward change.

4. Agent execution and escalation

  • Surface contradictions early: requirements versus code, budgets, API limitations, source semantics, deadlines, or previous decisions. State which requirement the implementation actually meets.
  • Do not quietly preserve a restriction that defeats the user's stated target. Do not claim completion from a configured interval when actual request clocks disagree.
  • If blocked, give specific evidence, the narrowest safe resolution, and what can still proceed. Avoid broad audits, repeated tests, uncontrolled CI retries and speculative redesigns.
  • Prefer concise reports with concrete source/image SHA, changed files, focused test results, real-world timings, actual provider usage, outstanding issues and next action.
  • Distinguish proposed, implemented, tested, deployed, and accepted in production. Do not call a staged image live or an isolated benchmark production throughput.
  • Favor bounded, targeted diagnostics; preserve error class and relevant traceback/context in safe local diagnostics so failures can be traced without reconstructing them later.
  • Avoid unnecessary cloud/provider credits and GitHub Actions usage. Never use test sends or real trades merely to verify a code change.

5. GitHub parity and recoverability

Standing requirement: The dnQuant installation must be reproducible on a replacement Linux host from the pushed GitHub repository plus valid encrypted off-host recovery material at WendtWerks, without relying on undocumented files or commands left only on the original host. See RECOVERY_CONTRACT.md for the restore inventory and evidence criteria.

  • Commit and push all application code, deploy/Compose recipes, dependency/model/image pins, launch/drain commands, configuration templates, migration/recovery scripts and operator-facing runbooks needed to reproduce an accepted deployment. Host-only fixes are incomplete until captured in Git (or in the explicitly catalogued encrypted private backup if secret/host-private).
  • For a release, distinguish the GitHub head from the actual running source, image digests and service configuration. Keep an accurate, non-secret, versioned deployed-release manifest/recipe, reusing the existing deploy/working-source-pins.json and deploy documentation where appropriate. Never claim that GitHub main alone proves what is running.
  • Any emergency host-only adjustment may be applied when needed for recovery, but must be described and committed/pushed in the same work item as soon as practicable. Before declaring a task complete, reconcile GitHub, host deployment and recovery instructions, or report the exact outstanding gap.
  • Recoverable private state belongs only in encrypted off-host backups: PostgreSQL base plus continuous archived WAL, intelEngine files/cursors, private runtime policies/ledgers, accepted manifests/receipts, private Compose overrides and deployment.env, secrets/credentials, automation/recovery identity and other irreplaceable state. Verify the inventory; do not assume every file is backed up.
  • Store and safeguard decryption/recovery keys separately from the failed production host. Do not commit private files, keys, access tokens, actual DB/WAL archives or sensitive inventory to Git.
  • Reuse existing verified recovery evidence: two independent WendtWerks production PostgreSQL restores (full backup and full backup plus named WAL point) passed November 3, 2026. Their database recovery acceptance stands. Do not demand a repeat restore or new replacement-host exercise for a documentation change or routine application-only release. If Git/source/launcher parity or private non-DB restore coverage remains unproved, identify and address that specific gap without reopening accepted database tests. See RECOVERY_CONTRACT.md.
  • Report backup/WAL health, latest verified recovery point, and any gap in off-host continuity. Point-in-time recovery reaches only the last recoverable WAL/backup position, not necessarily the instant of failure. Avoid claiming zero-loss or full restoration when the evidence does not establish it.
  • A backup-monitor alert remains separately triaged; it is not automatically a blocker to a scoped application-only release with usable recovery assets. Stop a destructive/data/schema change when required recovery is unavailable. Do not restore older ledgers over newer charges, deliveries or decisions to roll back application code.

6. Current project facts (confirm against live policy before acting)

  • Active Tier 1: Ethereum, Robinhood Chain, Solana. Base inactive.
  • GeckoTerminal public discovery: shared internal Tier 1 allocation 12/hour, 288/day, with a 15-minute discovery target; measured dispatch times, cooldowns and cohort timing determine actual cadence.
  • CoinGecko market sampling is a separate operation. Emerging is not activated by these operating rules; its future dRPC/provider budgets are separate design decisions.
  • Backend is PostgreSQL; backup destination is the WendtWerks backup server, not the former Raspberry Pi NAS.
  • Production services, recovery references and GitHub main may advance. Verify current revisions and health; never assume a past receipt is current.

7. Documentation and precedence

  1. Explicit current operator instruction and technical/safety constraints.
  2. Applicable accepted versioned implementation, source policy and hard safety/accounting contracts.
  3. These operating principles for workflow and engineering priorities.
  4. Task-specific handoffs and historical decisions when compatible.

The repository root AGENTS.md is the agent entry point to these principles and key invariant summaries. Superseded AGENTS.md wording is retained verbatim in docs/history/AGENTS-2026-11-06-pre-governance.md for historical research, not as active instructions. Do not let archived proposals override current accepted policy.

Default outcome: A smaller, working, measurable system that delivers useful discovery and analysis rather than more scaffolding.

dnQuant documentation · Published from the main repository