MCPcopy Create free account

hub / github.com/Imbad0202/academic-research-skills / types & classes

Types & classes397 in github.com/Imbad0202/academic-research-skills

↓ 100 callersClassLintError
One finding from a rule check. rule_id — stable handle from spec §3.7 (e.g., "A1", "B7", "F2"). message — human-readable finding; should na
scripts/check_audit_artifact_consistency.py:132
↓ 94 callersClassFinding
scripts/check_claim_audit_consistency.py:127
↓ 36 callersClassParseError
Raised when the JSONL stream or verdict text cannot be parsed.
scripts/parse_audit_verdict.py:646
↓ 32 callersClass_Snapshot
Backs up a file's bytes; restores on context exit.
scripts/test_check_v3_6_8_pattern_protection.py:57
↓ 24 callersClass_Snapshot
Backs up a file's bytes; restores on context exit.
scripts/test_check_v3_6_8_audit_scope_block.py:74
↓ 23 callersClassCrossrefClient
Production lookup-by-(doi-with-cross-check-then-title) client for Crossref. Concurrency note: rate-limit pacing is per-instance.
scripts/crossref_client.py:86
↓ 22 callersClassArxivClient
Production lookup-by-(arxiv-id-with-cross-check-then-title) client. Concurrency note: rate-limit pacing is per-instance.
scripts/arxiv_client.py:90
↓ 20 callersClassOpenAlexClient
Production lookup-by-(doi-with-cross-check-then-title) client. Concurrency note: rate-limit pacing is per-instance. Share a single instance a
scripts/openalex_client.py:64
↓ 20 callersClassPatternSpec
scripts/check_rq_framing_patterns.py:29
↓ 14 callersClass_FakeCache
Minimal in-memory stand-in for VerificationCache. Records get/put calls so tests can assert hit/skip behavior without SQLite.
scripts/test_contamination_signals.py:612
↓ 14 callersClass_Snapshot
Backs up a file's bytes; restores on context exit (exception-safe).
scripts/test_check_v3_6_8_cite_provenance_pipeline.py:42
↓ 11 callersClassBlockParseError
Raised on any document the parser refuses to classify (§3.1). ``kind`` is a stable machine-readable failure class; ``line_no`` is 1-based; ``
scripts/_block_parser.py:55
↓ 11 callersClassGoldSetValidationError
Raised when validate_gold_set rejects a tuple at ingestion time. The diagnostic always names the rule that failed (a / b / c / d per spec §7.
scripts/claim_audit_calibration.py:74
↓ 10 callersClassJudgeInvocationError
Raised by `_invoke_judge` when judge_fn fails or returns malformed output. Carries the INV-14 fault-class tag + detail so the caller can emit a
scripts/claim_audit_pipeline.py:228
↓ 10 callersClassVerificationCache
SQLite-backed (citation_key, resolver_name, query_form) → response cache. Single-process use. Each method opens a short-lived connection so the
scripts/verification_cache.py:60
↓ 9 callersClassCheck
scripts/check_v3_6_7_pattern_protection.py:242
↓ 9 callersClassCrossrefUnavailable
Crossref API degraded -- caller MUST omit `crossref_unmatched`.
scripts/crossref_client.py:82
↓ 9 callersClassDisclosureDecision
Whole-disclosure decision returned by `decide_disclosure_output`.
scripts/policy_anchor_disclosure_referee.py:124
↓ 9 callersClassOpenAlexUnavailable
OpenAlex API degraded — caller MUST omit `openalex_unmatched`.
scripts/openalex_client.py:60
↓ 9 callersClassRetrievalInvocationError
Raised by `_invoke_retrieve` when retrieve_fn fails or returns malformed output. Mirrors JudgeInvocationError but tags faults with the INV-14 ret
scripts/claim_audit_pipeline.py:238
↓ 9 callersClassSemanticScholarUnavailable
SS API degraded (network failure / rate limit exhausted / 5xx). Per spec §3.2 emission rules, this triggers OMIT of the `semantic_scholar_unm
scripts/contamination_signals.py:86
↓ 7 callersClassArxivUnavailable
arXiv API degraded -- caller MUST omit `arxiv_unmatched`.
scripts/arxiv_client.py:86
↓ 6 callersClassApplyRejection
Phase 1 rejection carrying the structured failure list.
scripts/ars_apply_revision_patch.py:107
↓ 6 callersClassLintContext
Bundle of artifacts a check might want to read. Members are Optional because some modes don't need every artifact (e.g., jsonl-stream mode on
scripts/check_audit_artifact_consistency.py:154
↓ 4 callersClassFinding
scripts/check_pipeline_integrity.py:101
↓ 3 callersClassFrontmatterError
Raised when SKILL.md frontmatter cannot be parsed. Distinct from a missing fence (returns None) and an empty fence (returns {}). Callers shou
scripts/_skill_lint.py:30
↓ 2 callersClassPassportShapeError
The passport YAML is structurally unusable (not a mapping, or `terminal_policies` is a non-mapping value). Per codex Q3: surface a clear error
scripts/migrate_literature_corpus_to_v3_10.py:55
↓ 2 callersClassSemanticScholarClient
Production lookup-by-(doi-then-title) client for v3.7.3 backfill. Satisfies `contamination_signals.SemanticScholarClient` Protocol. Tests inj
scripts/semantic_scholar_client.py:71
↓ 2 callersClassTaskExecutionError
An IMPLEMENTED task (one with a native measurer) failed to run. Raised — never downgraded to ``pending`` — when a task that the harness knows
scripts/run_evals.py:48
↓ 1 callersClassAutoPromotionForbidden
G3/G10 invariant: a still-UNCERTAIN category must not be rendered as though USED in any anchor output.
scripts/policy_anchor_disclosure_referee.py:76
↓ 1 callersClassBlock
One §3.1 block: marker (optional) + content lines, with char spans.
scripts/_block_parser.py:71
↓ 1 callersClassFakeCompleted
scripts/test_bootstrap_timeline_yaml.py:134
↓ 1 callersClassFakeResponse
scripts/test_bootstrap_timeline_yaml.py:84
↓ 1 callersClassInvalidCategoryState
Category state outside {USED, NOT USED, UNCERTAIN}.
scripts/policy_anchor_disclosure_referee.py:97
↓ 1 callersClassInvalidPolicyAnchor
policy_anchor outside CANONICAL_ANCHORS (closed enum).
scripts/policy_anchor_disclosure_referee.py:93
↓ 1 callersClassPairedMandateViolation
G8 invariant: IEEE render emits level_of_involvement and affected_sections together, or neither — emitting one without the other is non-confor
scripts/policy_anchor_disclosure_referee.py:81
↓ 1 callersClassParsedDocument
scripts/_block_parser.py:88
↓ 1 callersClassParsedMarker
Structured parse of a single <!--ref:...--> marker.
scripts/check_v3_10_policy.py:100
↓ 1 callersClassReport
scripts/check_pipeline_integrity.py:110
↓ 1 callersClassSelectorUnsupplied
Neither venue nor policy_anchor supplied — disclosure mode requires one selector. Default to None on both fields so a bare RendererInput() doe
scripts/policy_anchor_disclosure_referee.py:101
↓ 1 callersClassStructuralRefusal
Unacknowledged structural-shape flags (§3.3 / §3.6).
scripts/ars_apply_revision_patch.py:115
↓ 1 callersClassTrackGateError
G2 invariant: --policy-anchor=prisma-trAIce requires slr_lineage=true or mode=<slr> input.
scripts/policy_anchor_disclosure_referee.py:71
↓ 1 callersClassVenueAnchorConflict
§4.4 #7: --venue and --policy-anchor that map to incompatible placement / phrasing requirements must be rejected with explicit error; silent p
scripts/policy_anchor_disclosure_referee.py:87
↓ 1 callersClass_AuthorsResult
Structured return from extract_authors — avoids leaking a sentinel into the type system while still conveying why the result is empty.
scripts/adapters/zotero.py:82
↓ 1 callersClass_ExUsageParser
ArgumentParser subclass enforcing the EX_USAGE=64 contract. Codex round 4 P3 closure: stock argparse calls sys.exit(2) on any parser-level fa
scripts/check_audit_artifact_consistency.py:1922
ClassAPIShapeTest
The shared module exposes load_passport + dump_passport as the public API. Both migration tools import from this module.
scripts/test_passport_yaml.py:92
ClassAnnotationPrefixHelperTest
scripts/test_check_v3_8_annotation_literal_sync.py:35
ClassApiDownDegradationTest
#138 risk 2+3: when one resolver raises its Unavailable exception inside the thread pool, that exception must surface back on the orchestrator thr
scripts/test_migrate_literature_corpus_to_v3_9_0.py:366
ClassApplyHarness
Shared helpers: write base+patch to a temp dir and run the apply.
scripts/test_ars_apply_revision_patch.py:70
ClassArxivExactOrBustTest
scripts/test_431_exact_or_bust.py:145
ClassAutoPromotionForbiddanceTest
scripts/test_policy_anchor_disclosure.py:127
ClassBackfillTest
scripts/test_migrate_literature_corpus_to_v3_9_0.py:128
ClassBaselineTest
scripts/test_check_v3_6_7_pattern_protection.py:89
ClassBashBypassRegressionTest
Regression pins for the historical Bash fail-open shapes + the deep-path crash. Review surfaced a long list of Bash bypasses (quoted redirection,
scripts/test_ars_write_scope_guard.py:462
ClassBuildSignalsArxivExtensionTest
build_signals_object grows an optional arxiv_client keyword arg; when omitted, behavior is byte-equivalent to the v3.7.3 caller (no arxiv field).
scripts/test_contamination_signals.py:541
ClassCLIWiringTest
Codex R1-1 closure: CLI was unrunnable because NotImplementedError fired before reading the passport. Verify the production wiring path now ac
scripts/test_semantic_scholar_client.py:542
ClassCategoryStateEnumValidationTest
scripts/test_policy_anchor_disclosure.py:478
ClassCheckJudgePromptVersionTest
scripts/test_check_judge_prompt_version.py:48
ClassCheckPipelineIntegrityTests
scripts/test_check_pipeline_integrity.py:26
ClassCheckPolicyAnchorProtocolGoldenPathTest
scripts/test_check_policy_anchor_protocol.py:82
ClassCheckPolicyAnchorProtocolInvariantTest
scripts/test_check_policy_anchor_protocol.py:227
ClassCheckPolicyAnchorProtocolMutationTests
scripts/test_check_policy_anchor_protocol.py:88
ClassCheckPolicyAnchorTableGoldenPathTest
scripts/test_check_policy_anchor_table.py:123
ClassCheckPolicyAnchorTableInvariantTest
The table must reference 16 canonical disclosure fields per anchor and 4 canonical anchor slugs, matching the discovery doc §4.2 field list and
scripts/test_check_policy_anchor_table.py:278
ClassCheckPolicyAnchorTableMutationTests
scripts/test_check_policy_anchor_table.py:129
ClassCheckPolicyAnchorTableNatureSourceOfTruthTest
De-dup guard: Nature anchor verbatim quotes and the v3.2 venue policies file both cross-reference the canonical shared/policy_data/nature_poli
scripts/test_check_policy_anchor_table.py:222
ClassCheckV392PhaseBoundaryTests
scripts/test_check_v3_9_2_phase_boundary.py:16
ClassCleanRepoTest
scripts/test_check_v3_10_134_write_scope.py:20
ClassCodexR1MutationTests
Codex R1 (Phase 6.7 review) closures: 3 P2 findings against the initial INV-1/INV-2/INV-3 implementation. Each test re-introduces the bypass c
scripts/test_check_v3_6_7_pattern_protection.py:522
ClassCodexR2MutationTests
Codex R2 (Phase 6.7 review, after R1 fixes) closures: 2 P2 findings against the bullet-text exactness contract and INV-2's cross-bullet `.*` o
scripts/test_check_v3_6_7_pattern_protection.py:604
ClassCodexR3MutationTests
Codex R3 (Phase 6.7 review, after R2 fixes) closure: 1 P2 finding restoring INV-2 coverage of intro-paragraph prose, not just bullets.
scripts/test_check_v3_6_7_pattern_protection.py:688
ClassCodexR4MutationTests
Codex R4 (Phase 6.7 review, after R3 fixes) closure: 1 P2 finding restoring INV-2 coverage of post-bullet prose.
scripts/test_check_v3_6_7_pattern_protection.py:718
ClassCodexR5MutationTests
Codex R5 (Phase 6.7 review, after R4 fixes) closure: 1 P2 finding — C3 regex was not whitespace-tolerant inside sentences, causing CI to fail
scripts/test_check_v3_6_7_pattern_protection.py:745
ClassCodexR6MutationTests
Codex R6 (Phase 6.7 review, after R5 fixes) closure: 1 P2 finding — INV-1 only counted exact canonical matches and ignored weakened near-dupli
scripts/test_check_v3_6_7_pattern_protection.py:773
ClassCodexR7R9MutationTests
Codex R7 → R9 architectural rewind: R7 originally extended INV-3 with `_is_clause_1_like` to catch weakened variants outside the manifest. R9
scripts/test_check_v3_6_7_pattern_protection.py:823
ClassCodexR8MutationTests
Codex R8 (Phase 6.7 review, after R7 fixes) closures: 2 P2 findings — `_is_clause_1_like` was over-broad (rejected legitimate anti-fabrication
scripts/test_check_v3_6_7_pattern_protection.py:857
ClassCodexR9MutationTests
Codex R9 (Phase 6.7 review, after R8 fixes) architectural rewind: R7+R8 had over-extended INV-3 with the Clause 1-like heuristic (false-positi
scripts/test_check_v3_6_7_pattern_protection.py:911
ClassCommentPreservationTest
scripts/test_migrate_literature_corpus_to_v3_10.py:207
ClassConcern10Test
scripts/test_policy_anchor_disclosure.py:613
ClassConcern11Test
scripts/test_policy_anchor_disclosure.py:651
ClassConcern1Test
scripts/test_policy_anchor_disclosure.py:355
ClassConcern5Test
scripts/test_policy_anchor_disclosure.py:373
ClassConcern6Test
scripts/test_policy_anchor_disclosure.py:387
ClassConcern7Test
scripts/test_policy_anchor_disclosure.py:407
ClassConfigurationTest
Lock the ruamel.yaml configuration that every passport round-trip has assumed since v3.6.4.
scripts/test_passport_yaml.py:31
ClassConstantsTest
Lock the magic numbers — these are protocol-level invariants, not arbitrary tuning.
scripts/test_text_similarity.py:70
ClassCrossArrayInvariantTests
scripts/test_experiment_provenance.py:355
ClassCrossrefExactOrBustTest
scripts/test_431_exact_or_bust.py:74
ClassD4cCarveoutBoundaryTests
scripts/test_experiment_provenance.py:877
ClassDeepMergeTest
scripts/test_migrate_literature_corpus_to_v3_10.py:72
ClassDenyJSONShapeTest
The deny output JSON shape (spec §3.2 first-party-verified).
scripts/test_ars_write_scope_guard.py:367
ClassDirectoryScanTest
scripts/test_migrate_literature_corpus_to_v3_7_3.py:429
ClassDoiLookupTest
scripts/test_semantic_scholar_client.py:42
ClassDryRunTest
scripts/test_migrate_literature_corpus_to_v3_9_0.py:94
ClassDryRunTest
scripts/test_migrate_literature_corpus_to_v3_10.py:116
ClassE2EAdjacentClauseFilter
scripts/test_e2e_claim_audit.py:459
ClassE2EScenarioARefuses
scripts/test_e2e_claim_audit.py:328
ClassE2EScenarioBPasses
scripts/test_e2e_claim_audit.py:418
ClassEmissionRulesTest
Per spec §3.2 emission rules: emit object with both fields false when computed-and-clean; emit partial object when one signal can't be compute
scripts/test_contamination_signals.py:217
ClassEmitMonotonicOrTest
Codex round-1 [P2]: a `resume_from_passport=<hash>` session has an empty `state_tracker.stages` (reconstructed from ledger only); recomputing
scripts/test_slr_lineage_emission.py:197
next →1–100 of 397, ranked by callers