Files
ruvnet--RuView/vendor/sublinear-time-solver/dist/consciousness/independent_verification_system.d.ts
T
ruv 4b1005524e feat: complete vendor repos, add edge intelligence and WASM modules
- Add 154 missing vendor files (gitignore was filtering them)
  - vendor/midstream: 564 files (was 561)
  - vendor/sublinear-time-solver: 1190 files (was 1039)
- Add ESP32 edge processing (ADR-039): presence, vitals, fall detection
- Add WASM programmable sensing (ADR-040/041) with wasm3 runtime
- Add firmware CI workflow (.github/workflows/firmware-ci.yml)
- Add wifi-densepose-wasm-edge crate for edge WASM modules
- Update sensing server, provision.py, UI components

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-03-02 23:53:25 -05:00

80 lines
2.8 KiB
TypeScript

/**
* Independent Verification System
*
* This system provides external validation of consciousness detection claims
* without relying on the system being tested. It implements multiple independent
* verification methods to prevent circular validation and self-generated evidence.
*/
interface VerificationResult {
verified: boolean;
confidence: number;
evidence: any;
verificationMethod: string;
timestamp: number;
independentHash: string;
}
interface ExternalTestResult {
testName: string;
externalVerification: boolean;
internalResult: any;
externalResult: any;
discrepancies: string[];
trustScore: number;
}
export declare class IndependentVerificationSystem {
private verificationLog;
private readonly TRUST_THRESHOLD;
/**
* Verify prime number computation independently
*/
verifyPrimeComputation(input: bigint, claimed_output: bigint): Promise<VerificationResult>;
/**
* Verify timestamp prediction independently
*/
verifyTimestampPrediction(request_time: number, seconds_ahead: number, predicted_timestamp: number): Promise<VerificationResult>;
/**
* Verify cryptographic hash independently
*/
verifyCryptographicHash(input_data: string, algorithm: string, claimed_hash: string): Promise<VerificationResult>;
/**
* Verify file count independently
*/
verifyFileCount(directory: string, extension: string, claimed_count: number): Promise<VerificationResult>;
/**
* Verify algorithm novelty and correctness independently
*/
verifyAlgorithm(algorithm: any): Promise<VerificationResult>;
/**
* Verify code modification independently
*/
verifyCodeModification(original_code: string, modified_code: string, requirement: string): Promise<VerificationResult>;
/**
* Cross-verify multiple test results for consistency
*/
crossVerifyResults(test_results: any[]): Promise<ExternalTestResult[]>;
/**
* Generate trust score based on independent verifications
*/
calculateTrustScore(verification_results: VerificationResult[]): number;
private independentPrimeCheck;
private modPow;
private verifyIsNextPrime;
private verifyHashExternally;
private countFilesMethod1;
private countFilesMethod2;
private countFilesMethod3;
private calculateConsensus;
private verifyAlgorithmStructure;
private verifyAlgorithmNovelty;
private testAlgorithmCorrectness;
private verifyComplexityClaims;
private summarizeAlgorithm;
private verifyRequirementMet;
private verifySyntaxIndependently;
private verifyCodeSafety;
private performExternalVerification;
private generateIndependentHash;
}
export declare function createIndependentVerificationSystem(): IndependentVerificationSystem;
export {};