mirror of
https://github.com/morluto/rea.git
synced 2026-10-28 02:15:44 +00:00
feat: complete REA remediation program
This commit is contained in:
1 parent
737940c90c
commit
d25e98c3f9
460 files changed
+13985
-1877
No files matched your search
@@ -44,21 +44,47 @@ const reconciliationEvidence = createEvidence(
|
||||
evidenceLinks: reconciliation.evidence_links,
|
||||
},
|
||||
);
|
||||
const EXAMPLE_EVIDENCE_ID = `ev_${"0".repeat(64)}`;
|
||||
const SECOND_EXAMPLE_EVIDENCE_ID = `ev_${"1".repeat(64)}`;
|
||||
const TRACE_SEED = {
|
||||
kind: "module" as const,
|
||||
value: "renderer.js",
|
||||
match: "exact" as const,
|
||||
case_sensitive: false,
|
||||
};
|
||||
|
||||
/** Valid public trace request without proprietary artifacts. */
|
||||
/** Natural trace request using the Evidence ID returned by its producer. */
|
||||
export const JAVASCRIPT_FEATURE_TRACE_EXAMPLE = {
|
||||
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
||||
seed: {
|
||||
kind: "module" as const,
|
||||
value: "renderer.js",
|
||||
match: "exact" as const,
|
||||
case_sensitive: false,
|
||||
},
|
||||
application_evidence_id: EXAMPLE_EVIDENCE_ID,
|
||||
seed: TRACE_SEED,
|
||||
direction: "both" as const,
|
||||
};
|
||||
|
||||
/** Valid static/runtime graph pair demonstrating comparison authority. */
|
||||
/** Natural version comparison using two producer-returned Evidence IDs. */
|
||||
export const JAVASCRIPT_APPLICATION_VERSION_COMPARISON_EXAMPLE = {
|
||||
left_evidence_id: EXAMPLE_EVIDENCE_ID,
|
||||
right_evidence_id: SECOND_EXAMPLE_EVIDENCE_ID,
|
||||
};
|
||||
|
||||
/** Exact static return-shape comparison using producer-returned Evidence IDs. */
|
||||
export const JAVASCRIPT_EXPORT_SHAPE_COMPARISON_EXAMPLE = {
|
||||
left_evidence_id: EXAMPLE_EVIDENCE_ID,
|
||||
right_evidence_id: SECOND_EXAMPLE_EVIDENCE_ID,
|
||||
left_module_path: "parser.mjs",
|
||||
left_export_name: "default",
|
||||
right_module_path: "parser.mjs",
|
||||
right_export_name: "default",
|
||||
};
|
||||
|
||||
/** Full-Evidence compatibility fixture used by pure domain and adapter tests. */
|
||||
export const JAVASCRIPT_FEATURE_TRACE_FULL_EVIDENCE_EXAMPLE = {
|
||||
application: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
||||
seed: TRACE_SEED,
|
||||
direction: "both" as const,
|
||||
};
|
||||
|
||||
/** Full-Evidence compatibility comparison fixture. */
|
||||
export const JAVASCRIPT_VERSION_COMPARISON_FULL_EVIDENCE_EXAMPLE = {
|
||||
left: JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE,
|
||||
right: reconciliationEvidence,
|
||||
};
|
||||
Reference in new issue
Block a user