docs: AI-assisted safety + cyber engineering — HITL contract#176
Merged
Conversation
Frame for the recurring customer objection "a qualified human still has to do this." Enumerates the named-human sign-off role across ISO 26262, IEC 61508, IEC 62304, DO-178C, EN 50128, ISO/SAE 21434, ISO 27001, IEC 62443, ASPICE 4.0, EU AI Act Art. 14, and NIST AI RMF. Then establishes rivet's four-point HITL contract: 1. Provenance-on-author (today — schemas/common.yaml already gates ai-generated artifacts reaching `active` without reviewed-by). 2. Human sign-off as a separate stamp (today — `rivet stamp --reviewed-by`; gaps: no structured rationale, no `rivet approve` alias, no Part 11 e-signature). 3. Audit-trail view (v0.5.0 proposal — `rivet audit-trail <id>` over git history + provenance transitions). 4. Structural-only validator boundary (today — `rivet validate` never claims to assess credibility). Explicitly lists what rivet does NOT claim (no safety analysis, no hazard-credibility assessment, no assessor replacement, no TCL/TQL self-qualification, no regulatory guarantee, no 21 CFR Part 11). Five implementation items for v0.5.0 backlog are called out. Live web fetch was unavailable this session; external standard clauses and vendor marketing phrases are flagged *(unverified)* per the constraint "mark unverified." Refs: FEAT-001, REQ-002, REQ-030 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Single-commit design doc
docs/design/ai-safety-cyber-hitl.md(~2500 words) that frames the recurring objection "but a qualified human still has to sign off" as the shape of AI assistance in a regulated SDLC, not an argument against it.Chosen one-sentence frame: AI proposes structure; a qualified human owns judgment; every transition between the two is a separately-stamped, git-reviewable event.
Contents
schemas/common.yamlai-generated-needs-reviewrule; proposed: promote toerroronstatus: approvedand add self-approval-loophole lint).rivet stamp --reviewed-by; gaps: structured rationale,rivet approvealias, Part 11 e-signature).rivet audit-trail <id>(v0.5.0 proposal — chronological view over git history + provenance transitions).rivet validatenever assesses credibility).docs/what-is-rivet.md(not made here); five-item v0.5.0 backlog.Honest constraints
WebFetch/WebSearchwere unavailable this session; every external regulatory clause citation and vendor marketing phrase is flagged*(unverified)*per the task constraint "mark unverified."rivet approveorrivet audit-trailsubcommands today. Both are called out as v0.5.0 proposals, not claimed as features.Refs:
FEAT-001(Evidence-as-Code positioning),REQ-002(STPA artifact support — the cyber-safety joint analysis pattern),REQ-030(formal verification — the structural-only enforcement boundary).Test plan
ai-generated-needs-reviewto error on approved, self-approval-loophole lint,rivet approvealias,rivet audit-trail <id>, structuredreviewed-by.rationalefor ASIL ≥ B / CAL ≥ 2) for v0.5.0 scope.🤖 Generated with Claude Code