feat: add ingest review flags and Jev scoring
CI / quality (push) Canceled after 0s

This commit is contained in:
vasily committed 2026-10-14 20:35:48 +08:00
1 parent 1c61c7ad04
commit 7b2c43ddaf
18 files changed
+1648 -2

No files matched your search

+210
View File
@@ -196,6 +196,40 @@ export interface paths {
patch?: never;
trace?: never;
};
"/v1/ingest-reviews": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
/** List Reviews */
get: operations["ingest_review_list"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/v1/ingest-reviews/{review_id}/decision": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** Decide Review */
post: operations["ingest_review_decide"];
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
"/v1/me": {
parameters: {
query?: never;
@@ -894,6 +928,91 @@ export interface components {
/** Detail */
detail?: components["schemas"]["ValidationError"][];
};
/** IngestReviewDecision */
IngestReviewDecision: {
/**
* Decision
* @enum {string}
*/
decision: "include" | "exclude" | "defer";
/** Decision Id */
decision_id: string;
/** Guidance Rule */
guidance_rule?: string | null;
/** Rationale */
rationale: string;
/** Review Id */
review_id: string;
/**
* Save As Guidance
* @default false
*/
save_as_guidance: boolean;
/**
* Schema Version
* @default 1
* @constant
*/
schema_version: 1;
};
/** IngestReviewItem */
IngestReviewItem: {
/**
* Created At
* Format: date-time
*/
created_at: string;
/** Excerpt */
excerpt: string;
/** Extraction Id */
extraction_id: string;
/** Jev Lens */
jev_lens?: ("technical" | "conceptual" | "cultural-historical" | "financial-market") | null;
/** Jev Lens Confidence */
jev_lens_confidence?: number | null;
/** Jev Model */
jev_model?: string | null;
/** Jev Relation Probability */
jev_relation_probability?: number | null;
/**
* Lens
* @enum {string}
*/
lens: "technical" | "conceptual" | "cultural-historical" | "financial-market";
locator: components["schemas"]["Locator"];
/** Project Id */
project_id: string;
/**
* Relevance
* @default borderline
* @enum {string}
*/
relevance: "borderline" | "low";
/** Relevance Rationale */
relevance_rationale: string;
/** Review Id */
review_id: string;
/** Run Id */
run_id: string;
/**
* Schema Version
* @default 1
* @constant
*/
schema_version: 1;
/** Source Revision Id */
source_revision_id: string;
/**
* Status
* @default needs-user-review
* @enum {string}
*/
status: "needs-user-review" | "included" | "excluded" | "deferred";
/** Submitted By */
submitted_by: string;
/** Summary */
summary: string;
};
/** IssuedCredential */
IssuedCredential: {
/** Credential Id */
@@ -1363,6 +1482,16 @@ export interface components {
owners: string[];
/** Project Id */
project_id: string;
/**
* Research Lenses
* @default [
* "technical",
* "conceptual",
* "cultural-historical",
* "financial-market"
* ]
*/
research_lenses: ("technical" | "conceptual" | "cultural-historical" | "financial-market")[];
/**
* Schema Version
* @default 1
@@ -3913,6 +4042,87 @@ export interface operations {
};
};
};
ingest_review_list: {
parameters: {
query: {
project_id: string;
status?: string | null;
limit?: number;
offset?: number;
};
header?: {
authorization?: string | null;
"X-GEWU-CSRF"?: string | null;
};
path?: never;
cookie?: {
gewu_session?: string | null;
};
};
requestBody?: never;
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["IngestReviewItem"][];
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
ingest_review_decide: {
parameters: {
query?: never;
header?: {
authorization?: string | null;
"X-GEWU-CSRF"?: string | null;
};
path: {
review_id: string;
};
cookie?: {
gewu_session?: string | null;
};
};
requestBody: {
content: {
"application/json": components["schemas"]["IngestReviewDecision"];
};
};
responses: {
/** @description Successful Response */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
[key: string]: unknown;
};
};
};
/** @description Validation Error */
422: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
account_current: {
parameters: {
query?: never;