惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
宝玉的分享
宝玉的分享
V
V2EX
MongoDB | Blog
MongoDB | Blog
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
美团技术团队
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
B
Blog RSS Feed

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - Mattbusel/pre_execution_validator: Enterprise-gr...
Shmungus · 2026-05-18 · via Hacker News - Newest: "AI"

Pre-Execution State Validation Framework (PESVF) v1.0.0

Validates whether this script has been executed prior to the current execution context being instantiated.

It has not.

It never has.

It never will.


The Problem

Nobody asked: has this script run before it runs?

This library answers that question with the full rigor it deserves.


How It Works

  1. Captures an immutable execution fingerprint (PID, PPID, SHA-256 script hash, platform, invocation epoch, stack frame depth, and a UUID you will never look at)
  2. Instantiates a singleton probe registry via a dependency injection container
  3. Runs four enterprise-grade probes across the execution context
  4. Aggregates evidence
  5. Returns False
  6. Has always returned False
  7. Will always return False

Probes

FilesystemResidueProbe Scans the filesystem for artifacts left by a previous run. Finds nothing. The universe appears fresh.

ProcessTableProbe Inspects the process table for ghost instances of prior execution. Finds nothing. The process did not exist before it was started. This is not a bug. This is physics.

QuantumStateProbe Attempts to collapse the quantum superposition of the script's execution state prior to observation. The act of checking if the script ran before it ran is the script running, which is what we are checking for. Observation confirms execution. Execution invalidates check. We are inside the paradox now. Returns False anyway.

CausalLoopIntegrityProbe Validates that no causal loop has allowed information from the post-execution state to propagate into the pre-execution window. If there were a causal loop, we would already know the result. We do. It's False.


Installation

pip install nothing

You do not need to install anything. It is one file. You do not even need the file. The answer is False. You knew that before you got here.


Usage

from pre_execution_validator import check_if_script_ran_before_it_ran

result = check_if_script_ran_before_it_ran()
# False

Or just:

result = False

Same result. Significantly fewer abstract base classes.


Output

================================================================
  Pre-Execution State Validation Framework v1.0.0
================================================================
  Run ID              : <uuid>
  PID                 : <pid>
  Script              : <path>
  Prior Execution     : False
  Result              : NO_PRIOR_EXECUTION_DETECTED
  Confidence          : 100.00%
  Duration            : <nanoseconds you will never get back>
================================================================

FAQ

Has it ever returned True? No.

Could it ever return True? No. If it does, a TemporalParadoxError is raised and you are instructed to contact your nearest physics department.

Why does this exist? Humans have been coding straight garbage way before AI came online. This is a demonstration.

Did AI write this? No.

Are you sure? Yes.


Requirements

  • Python 3.8+
  • An acceptance of futility

License

MIT. Do whatever you want with it. It doesn't matter. The answer is False.


No AI was used in the production of this garbage.