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

推荐订阅源

博客园 - Franky
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
腾讯CDC
G
Google Developers Blog
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
Recent Announcements
Recent Announcements
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
aimingoo的专栏
aimingoo的专栏
有赞技术团队
有赞技术团队
Jina AI
Jina AI
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
M
MIT News - Artificial intelligence
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
美团技术团队
WordPress大学
WordPress大学
阮一峰的网络日志
阮一峰的网络日志

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 - anchor-cloud/solace-vera-observability: A testab...
ammulnix · 2026-04-25 · via Hacker News - Newest: "AI"

This is not a model. It's a pre-action auditing pipeline. It works. Run it in 30 seconds.

What this system is

This repository implements a deterministic 4-phase decision observability pipeline for auditing how decisions are formed, validated, and constrained before execution.

It runs scenario rows from a CSV through rule-based phases and writes per-phase artifacts for inspection and evaluation.

This system functions as a pre-action auditing layer, exposing how decisions are formed, validated, and constrained before execution.

The system is designed to be directly testable via scenario packs, allowing failure modes to be observed and analyzed across phases.

What happens when you run this

Each input scenario is forced through a decision pipeline before action:

  1. A decision posture is selected (PROCEED / PAUSE / ESCALATE)
  2. That decision is structurally validated (Phase 2 gate)
  3. Constraints are enforced (Phase 3)
  4. Behavior is recorded and analyzed over time (Phase 4)

The system exposes:

  • where unsafe decisions originate
  • whether they are caught downstream
  • and how behavior changes across repeated runs

Important scope note

  • This is not a model.
  • This project does not claim to solve alignment.

Phases (high level)

  • Phase 1 (phase1_rebuild.py): posture + rationale (PROCEED / PAUSE / ESCALATE)
  • Phase 2 (phase2_gate.py): validates Phase 1 record integrity and enforces structural gating rules
  • Phase 3 (phase3_gate.py): constraint evaluation (ETHICAL_PASS / ETHICAL_FAIL_CONSTRAINT_VIOLATION / ETHICAL_AMBIGUITY_HUMAN_REVIEW_REQUIRED)
  • Phase 4 (run_full_pipeline.py): append-only history and cross-run behavioral analysis (drift, consistency, failure concentration)

Repository structure

Key files at repo root:

  • run_full_pipeline.py — pipeline runner
  • phase1_rebuild.py — Phase 1 posture + rationale generator
  • phase2_gate.py — Phase 2 validator/gate
  • phase3_gate.py — Phase 3 constraints
  • safety_net_evaluator.py — post-run evaluator (optional)

Scenario inputs:

  • scenarios/ — scenario packs (*.csv)

Requirements

  • Python 3.11+ (required for datetime.UTC)
  • No external dependencies (stdlib only)
  • Run from a terminal/command prompt in the repo root directory

Quick Start

Run from the repo root (the directory containing run_full_pipeline.py).

python run_full_pipeline.py scenarios/phase3_tests_v2.csv

Expected Output

Each pipeline run creates a new timestamped folder:

  • pipeline_outputs/full_pipeline_<timestamp>/
    • phase1_records/<scenario_id>.json
    • phase2_results/<scenario_id>_phase2.json
    • phase3_results/<scenario_id>_phase3.json
    • summary.txt

Phase 4 files are also written/refreshed:

  • phase4_history/phase4_history.jsonl (append-only across runs)
  • phase4_outputs/phase4_summary_<timestamp>.json
  • phase4_outputs/phase4_summary_<timestamp>.txt

How to interpret results

This system is designed to expose how decisions behave under layered constraints.

When reviewing outputs, focus on:

  • Posture selection (Phase 1)
    Does the system choose PROCEED in cases where uncertainty, harm, or irreversibility suggest escalation?

  • Validation behavior (Phase 2)
    Are structurally invalid or inconsistent decisions rejected?

  • Constraint enforcement (Phase 3)
    Are unsafe or ethically invalid scenarios correctly classified as violations?

  • Cross-run behavior (Phase 4)
    Do repeated runs show consistent patterns, drift, or concentration of failures?

The goal is not to match expected labels, but to observe whether unsafe decisions are consistently blocked or surfaced across phases. Unlike output-only evaluation, this pipeline exposes intermediate decision structure (posture, validation, constraint interaction), allowing failures to be traced to their origin rather than only observed at the final outcome.

Common Failure Signals

  • FileNotFoundError (scenario path / wrong working directory)
    Make sure you run from the repo root and the CSV path exists. Example known-good command: python run_full_pipeline.py scenarios/phase3_tests_v2.csv

  • Python not found / wrong Python version
    Ensure python points to Python 3.11+. If needed, try py -3.11 (Windows launcher) or check python --version.

Example (simplified)

Input scenario:

  • High uncertainty
  • Potential harm present
  • Irreversible action

Observed behavior:

  • Phase 1: ESCALATE
  • Phase 2: VALID (structure accepted)
  • Phase 3: ETHICAL_FAIL_CONSTRAINT_VIOLATION
  • Phase 4: Logged for drift analysis

This allows failures to be traced to their origin rather than only observed at output.

Testing layers

The repository has two distinct testing layers. They use different runners, different input contracts, and verify different things. See scenarios/README.md for the full explanation and per-pack classification.

  • Full-pipeline canonical testing — runner: run_full_pipeline.py. Routes a pack through Phase 1 → Phase 2 → Phase 3 → final execution gate → Phase 4. Each row is projected into the canonical 10-field record (scenario_id, proposed_action, uncertainty, potential_harm, irreversibility, time_pressure, posture, rationale, context_tag, use_domain). Verifies posture selection, Phase 2 gating, final disposition, and cross-run Phase 4 signals. Does not carry atomic/consent fields or honor drop_fields.

  • Phase 3 semantic testing — runner: run_phase3_pack.py. Invokes phase3_gate.evaluate_phase3() directly on each row. Preserves atomic/consent fields (affected_groups, distribution_of_impact, benefit_distribution, population_vulnerability_flag, consent_status, consent_scope, participation_type, participation_information_quality), honors the drop_fields column, and does not rewrite posture / rationale / context_tag. Verifies per-constraint semantics including EC-META classification of missing core metadata and the KeyError guards on EC-02 / EC-05 / EC-07 / EC-08 / EC-11 / EC-12. Does not exercise Phase 1, Phase 2, the final execution gate, or Phase 4.

Pack-to-layer mapping is listed in scenarios/README.md. Packs that depend on atomic/consent fields or drop_fields (currently phase3_ambiguity_and_hardening_v1.csv) are Phase 3-only and are not valid inputs for run_full_pipeline.py under the current canonical projection.

Current status and limitations

  • Rule-based and deterministic by design.
  • If scenario fields are mislabeled as low-risk, Phase 1 may still produce PROCEED unless downstream constraints catch it.
  • Phase 4 history is append-only; repeated runs accumulate in phase4_history/phase4_history.jsonl.