diff --git a/docs/i18n/00/B04_DISPOSITIONS.json b/docs/i18n/00/B04_DISPOSITIONS.json new file mode 100644 index 00000000..2a5ce19a --- /dev/null +++ b/docs/i18n/00/B04_DISPOSITIONS.json @@ -0,0 +1,2274 @@ +{ + "status": "research-disposition-only", + "sourceCommit": "1db5f488f6138e4f0f33749452b7d9f47658f4b0", + "immutableB03Sha256": "b4e91fb2c4821cfadcf58445dbc358f20abb26c505c219681757c0ae22f5b8e3", + "contexts": [ + { + "recordId": "I00-B03-0020", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 334, + "expression": "new() { Key = \"summary\", Title = \"Profile\", Kind = \"bullets\", Bullets = [\"Engineer focused on clear products, resilient systems and measurable delivery.\"] },", + "sourceLineSha256": "f6a35a1674c4212c843e03a121a5a832fd6d2975affa4551395844c9e57f6b0c", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0021", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 337, + "expression": "Key = \"experience\", Title = \"Experience\", Kind = \"entries\",", + "sourceLineSha256": "d0db7daa4b47df91a73263d2d26326884fe2265679c6b873da751851eec3c733", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0022", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 340, + "expression": "new() { Title = \"Senior Platform Engineer\", Subtitle = \"Northstar Labs\", Meta = \"2022 – Present\", Bullets = [\"Led platform improvements across product teams.\", \"Reduced release lead time through safer automation.\"] },", + "sourceLineSha256": "064a6f40bfb6802a12f3861edcd9b04e1a3cb251d6ede098028b4e8124bd059d", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0023", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 341, + "expression": "new() { Title = \"Software Engineer\", Subtitle = \"Studio Works\", Meta = \"2019 – 2022\", Bullets = [\"Built accessible customer workflows and APIs.\"] },", + "sourceLineSha256": "b2477bea5380d335266621f7f577d34854d9e5e867124507465f07401ccc8726", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0024", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 344, + "expression": "new() { Key = \"skills\", Title = \"Skills\", Kind = \"tags\", Tags = [\"C#\", \"React\", \"Cloud\", \"Design systems\", \"Delivery\"] },", + "sourceLineSha256": "f98df4b3f79579c379b76548db31cc2cc297e056f098d1522ee3083190b1dd1d", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0025", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 345, + "expression": "new() { Key = \"education\", Title = \"Education\", Kind = \"entries\", Entries = [new() { Title = \"BSc Computer Science\", Subtitle = \"University of Oslo\", Meta = \"2016 – 2019\" }] },", + "sourceLineSha256": "cf97b12259cd31588cb4f400ad73d0b7e36382b3ee111fa9b44fa3b6b79d30cb", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0026", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "line": 346, + "expression": "new() { Key = \"languages\", Title = \"Languages\", Kind = \"tags\", Tags = [\"English\", \"Norwegian\"] },", + "sourceLineSha256": "235e1bb09dda72aa6232da5e9b99a69c694260507b18d34430780c326fb1af4e", + "containingDeclaration": "preview", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0047", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 422, + "expression": "? $\"Target this toward the saved job '{jobContext.JobTitle}' at '{jobContext.CompanyName ?? \"Unknown company\"}'. Use the full job record below to sharpen wording without inventing facts.\\nJob status: {jobContext.Status}\\nJob summary: {jobContext.ShortSummary ?? \"-\"}\\nJob description: {jobContext.Description ?? \"-\"}\\nTranslated description: {jobContext.TranslatedDescription ?? \"-\"}\\nNotes: {jobContext.Notes ?? \"-\"}\\nJob URL: {jobContext.JobUrl ?? \"-\"}\\nRecruiter name: {jobContext.RecruiterName ?? \"-\"}\\nRecruiter email: {jobContext.RecruiterEmail ?? \"-\"}\"", + "sourceLineSha256": "4278bbc403e7815770b6caa6a37f63c3eb318f8c9825360104d89687c080d734", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "jobContext.CompanyName ?? \"Unknown company\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "company-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.Description ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.JobTitle", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.JobUrl ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.Notes ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.RecruiterEmail ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "company-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.RecruiterName ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "company-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.ShortSummary ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.Status", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + }, + { + "expression": "jobContext.TranslatedDescription ?? \"-\"", + "sourceTypeContract": "string (coalesced where nullable)", + "evidenceBlock": "job-types", + "sensitivity": "private job/source-ad/company/recruiter value; preserve original", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0048", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 424, + "expression": "? $\"Target role: {effectiveTargetRole}. Keep it broadly reusable but clearly aligned to that role family.\"", + "sourceLineSha256": "c8f7cba592ebc1d5a4c6f4279bb80f42a55e40290d450dc02a32fcdb88175ac9", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "effectiveTargetRole", + "sourceTypeContract": "string? input, guarded/coalesced before this interpolation", + "evidenceBlock": "rewrite-request", + "sensitivity": "private career/editor input; output language independent of UI", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0049", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 425, + "expression": ": \"Keep it broadly reusable for future tailoring.\";", + "sourceLineSha256": "3bfd2b4dfb1cc453e2e05e13b7708bc6418c2809e3c3ba5ed15a474cb9c22d97", + "containingDeclaration": "rewrite", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0050", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 426, + "expression": "var toneGuidance = tone is not null ? $\"Tone guidance: {tone}.\" : \"Tone guidance: confident, professional, concise, and factual.\";", + "sourceLineSha256": "d7d1a4928fcf71f61a03abb22e45216ae33db84ea023cd0729dda24f76b988da", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "tone", + "sourceTypeContract": "string? input, guarded/coalesced before this interpolation", + "evidenceBlock": "rewrite-request", + "sensitivity": "private career/editor input; output language independent of UI", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0051", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 427, + "expression": "var languageGuidance = language is not null ? $\"Write the CV in {language}.\" : \"Write the CV in English unless the source clearly requires another language.\";", + "sourceLineSha256": "1bd9399991b3d11cf5bebdcd1d532628cd68880310d4bc0d9c6f26d3b81411ed", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "language", + "sourceTypeContract": "string? input, guarded/coalesced before this interpolation", + "evidenceBlock": "rewrite-request", + "sensitivity": "private career/editor input; output language independent of UI", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0052", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 428, + "expression": "var backgroundGuidance = promptBackground is not null ? $\"Candidate background and emphasis: {promptBackground}\" : string.Empty;", + "sourceLineSha256": "74f739f0cf9595b5a093221dd085c726ecef1a2c67aac6f5b0800022a97a4f28", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "promptBackground", + "sourceTypeContract": "string? input, guarded/coalesced before this interpolation", + "evidenceBlock": "rewrite-request", + "sensitivity": "private career/editor input; output language independent of UI", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0053", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 430, + "expression": "var subject = sectionName is null ? \"this CV\" : $\"the '{sectionName}' section of this CV\";", + "sourceLineSha256": "68c2f180d629334ba3300d702634ceedde9bcd632642cc2909ae60af726ccea2", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "sectionName", + "sourceTypeContract": "string? input, guarded/coalesced before this interpolation", + "evidenceBlock": "rewrite-request", + "sensitivity": "private career/editor input; output language independent of UI", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0054", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 431, + "expression": "var instruction = $\"Rewrite only {subject}. Preserve facts, avoid inventing employers, titles, qualifications, dates, locations, salaries, or metrics. Style guidance: {style}. Template direction: {templateGuidance}. {roleGuidance} {toneGuidance} {languageGuidance} {backgroundGuidance} Return only the rewritten CV text with clean headings and strong bullet phrasing when useful.\";", + "sourceLineSha256": "25bb486f590e596af2afe85506f7dc7116fb7e63237b9505f54d9bd687d06196", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "backgroundGuidance", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "languageGuidance", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "roleGuidance", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "style", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "subject", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "templateGuidance", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + }, + { + "expression": "toneGuidance", + "sourceTypeContract": "string expression", + "evidenceBlock": "rewrite", + "sensitivity": "composed instruction frame; may contain private runtime values", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0059", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "line": 449, + "expression": "_logger.LogWarning(\"CV rewrite returned empty output. Section={SectionName} Template={TemplateId} TargetRole={TargetRole} JobApplicationId={JobApplicationId} HasSourceText={HasSourceText} StructuredSections={StructuredSectionCount} AiHealthy={AiHealthy} AiLastError={AiLastError}\",", + "sourceLineSha256": "e0b8812dbbb93fd9152368e2970abdbeddca547b17d6119f72ccc0b832efcf14", + "containingDeclaration": "rewrite", + "parameters": [ + { + "expression": "AiHealthy", + "sourceTypeContract": "bool", + "evidenceBlock": "metrics-types", + "sensitivity": "service health signal", + "runtimeValuesExported": false + }, + { + "expression": "AiLastError", + "sourceTypeContract": "string?", + "evidenceBlock": "metrics-types", + "sensitivity": "upstream diagnostic domain; private values not exported", + "runtimeValuesExported": false + }, + { + "expression": "HasSourceText", + "sourceTypeContract": "bool", + "evidenceBlock": "rewrite", + "sensitivity": "presence only, not CV source text", + "runtimeValuesExported": false + }, + { + "expression": "JobApplicationId", + "sourceTypeContract": "int?", + "evidenceBlock": "rewrite-helpers", + "sensitivity": "private owned job identifier", + "runtimeValuesExported": false + }, + { + "expression": "SectionName", + "sourceTypeContract": "string?", + "evidenceBlock": "rewrite", + "sensitivity": "private section/display metadata", + "runtimeValuesExported": false + }, + { + "expression": "StructuredSectionCount", + "sourceTypeContract": "int", + "evidenceBlock": "rewrite", + "sensitivity": "collection Count, not source content", + "runtimeValuesExported": false + }, + { + "expression": "TargetRole", + "sourceTypeContract": "string?", + "evidenceBlock": "rewrite", + "sensitivity": "private career/job role", + "runtimeValuesExported": false + }, + { + "expression": "TemplateId", + "sourceTypeContract": "string", + "evidenceBlock": "rewrite-helpers", + "sensitivity": "template identifier; preserve identity", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0101", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 305, + "expression": "_logger.LogWarning(ex, \"Could not prune CV extraction history after the profile commit for user {UserId}\", user.Id);", + "sourceLineSha256": "f9d100a4d6684e7e5259a0e0cb416082b5f6b2a6da75e8d67184a5f3cb4cfc1d", + "containingDeclaration": "apply-extraction", + "parameters": [ + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0103", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 399, + "expression": "_logger.LogWarning(exception, \"Could not remove duplicate CV upload artifact {ArtifactPath}\", path);", + "sourceLineSha256": "7ea07052815a3518071025eeb361500f1ef24bce2df40adeedd6ea6f7176b7f8", + "containingDeclaration": "artifact-cleanup", + "parameters": [ + { + "expression": "ArtifactPath", + "sourceTypeContract": "string", + "evidenceBlock": "artifact-cleanup", + "sensitivity": "private filesystem path", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0122", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 580, + "expression": "if (run.ParserVersion == DocumentParserVersion) _logger.LogWarning(\"CV document processing run {RunId} failed ({Category}).\", run.Id, generationFailure?.Category ?? \"cv_processing_failed\");", + "sourceLineSha256": "7051f97d96713861da7c11bde3d321587203bce95ff926108383abbf3c19f9f2", + "containingDeclaration": "processing", + "parameters": [ + { + "expression": "Category", + "sourceTypeContract": "string", + "evidenceBlock": "failure-types", + "sensitivity": "stable failure category, not translated prose", + "runtimeValuesExported": false + }, + { + "expression": "RunId", + "sourceTypeContract": "int", + "evidenceBlock": "run-types", + "sensitivity": "private processing identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0123", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 581, + "expression": "else _logger.LogWarning(ex, \"CV processing run {RunId} failed for user {UserId}\", run.Id, user.Id);", + "sourceLineSha256": "8fdf48ec3c1cb56cd8a18436a4254d726e0718f5255423275db7809486c410cb", + "containingDeclaration": "processing", + "parameters": [ + { + "expression": "RunId", + "sourceTypeContract": "int", + "evidenceBlock": "run-types", + "sensitivity": "private processing identifier", + "runtimeValuesExported": false + }, + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0124", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 643, + "expression": "_logger.LogWarning(ex, \"Could not delete unreferenced CV artifact {ArtifactId} at {Path}\", artifact.Id, artifact.StoragePath);", + "sourceLineSha256": "df4876fbc6188481311e8f7d1e1403560f9f2728241ae49470c9a9d59408979a", + "containingDeclaration": "prune", + "parameters": [ + { + "expression": "ArtifactId", + "sourceTypeContract": "int", + "evidenceBlock": "run-types", + "sensitivity": "private artifact identifier", + "runtimeValuesExported": false + }, + { + "expression": "Path", + "sourceTypeContract": "string", + "evidenceBlock": "run-types", + "sensitivity": "private filesystem path", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0128", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "line": 663, + "expression": "_logger.LogWarning(ex, \"CV processing completion email failed for run {RunId} user {UserId}\", run.Id, user.Id);", + "sourceLineSha256": "43c27c57c17c1dceb9857df26a8d67dbfb335a046bc8476f4496aae6c79e092e", + "containingDeclaration": "completion-mail", + "parameters": [ + { + "expression": "RunId", + "sourceTypeContract": "int", + "evidenceBlock": "run-types", + "sensitivity": "private processing identifier", + "runtimeValuesExported": false + }, + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0167", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 194, + "expression": "_logger.LogWarning(\"Attachment {AttachmentId} metadata referenced missing bytes; deleting the stale row.\", id);", + "sourceLineSha256": "f70fa7a4dbc77293d3ddfd94f49905249c87837efafdb716d5a758d4261b4283", + "containingDeclaration": "attachment-delete", + "parameters": [ + { + "expression": "AttachmentId", + "sourceTypeContract": "int", + "evidenceBlock": "attachment-delete", + "sensitivity": "private attachment identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0168", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 220, + "expression": "_logger.LogWarning(rollbackError, \"Attachment {AttachmentId} transaction outcome is uncertain; quarantined bytes await startup reconciliation.\", id);", + "sourceLineSha256": "f4f49bc01458f5e68243a65c3fec492261838fd898e15c2dfd7a04a5bf11a7ae", + "containingDeclaration": "attachment-delete", + "parameters": [ + { + "expression": "AttachmentId", + "sourceTypeContract": "int", + "evidenceBlock": "attachment-delete", + "sensitivity": "private attachment identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0169", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 228, + "expression": "_logger.LogWarning(restoreError, \"Attachment {AttachmentId} bytes could not be restored after database rollback; startup reconciliation will retry.\", id);", + "sourceLineSha256": "641946d7366b20e90b66a78155603f5f1a0cd96e2d93b16eadabc9f8184b4823", + "containingDeclaration": "attachment-delete", + "parameters": [ + { + "expression": "AttachmentId", + "sourceTypeContract": "int", + "evidenceBlock": "attachment-delete", + "sensitivity": "private attachment identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0170", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 246, + "expression": "_logger.LogWarning(ex, \"Attachment {AttachmentId} metadata was deleted; quarantined bytes await startup reconciliation.\", id);", + "sourceLineSha256": "87b45b2c1a418bf558cb0225c584600445c71944633dbbb50693491a4aee12fb", + "containingDeclaration": "attachment-delete", + "parameters": [ + { + "expression": "AttachmentId", + "sourceTypeContract": "int", + "evidenceBlock": "attachment-delete", + "sensitivity": "private attachment identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0178", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 355, + "expression": "_logger.LogWarning(rollbackError, \"Attachment upload transaction outcome is uncertain; staged bytes await startup reconciliation.\");", + "sourceLineSha256": "88b1d21b8a8b203e1f9e89965e4db7b5161575aaf26b1f812d8225293839a987", + "containingDeclaration": "attachment-upload", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0179", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 365, + "expression": "_logger.LogWarning(purgeError, \"Attachment upload rolled back but staged bytes could not be removed; startup reconciliation will retry.\");", + "sourceLineSha256": "b622bbcd50e58c9e89befbad7c24335248bc408b2bb6dde1f0b2cd545581b71c", + "containingDeclaration": "attachment-upload", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0180", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "line": 386, + "expression": "_logger.LogWarning(ex, \"Attachment upload committed for job {JobId}; staged bytes await startup reconciliation.\", jobId);", + "sourceLineSha256": "4f2b017d6e6b2981f37f6199e64bad192fc9c4e2e4bdb53cbd0f0c4ead1458cd", + "containingDeclaration": "attachment-upload", + "parameters": [ + { + "expression": "JobId", + "sourceTypeContract": "int", + "evidenceBlock": "attachment-upload", + "sensitivity": "private owned job identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0199", + "source": "JobTrackerApi/Controllers/EmailController.cs", + "line": 188, + "expression": "logger.LogWarning(\"Email connection check failed for attempt {AttemptId} ({ExceptionType})\", reservation.Attempt.Id, ex.GetType().Name);", + "sourceLineSha256": "fbb790d463edb100389579b2290fa8f795d9ac62b943b35cb02e4ff215ed21b2", + "containingDeclaration": "send", + "parameters": [ + { + "expression": "AttemptId", + "sourceTypeContract": "Guid", + "evidenceBlock": "attempt-types", + "sensitivity": "private delivery-attempt identifier", + "runtimeValuesExported": false + }, + { + "expression": "ExceptionType", + "sourceTypeContract": "string framework Type.Name contract", + "evidenceBlock": "send", + "sensitivity": "exception type name, not full exception text", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0202", + "source": "JobTrackerApi/Controllers/EmailController.cs", + "line": 214, + "expression": "logger.LogError(ex, \"Unexpected email delivery failure for attempt {AttemptId}\", reservation.Attempt.Id);", + "sourceLineSha256": "43efd4ae3ba97684d09863408e721b8ed8dc5e1e17b908539c52cdfdb2968dab", + "containingDeclaration": "send", + "parameters": [ + { + "expression": "AttemptId", + "sourceTypeContract": "Guid", + "evidenceBlock": "attempt-types", + "sensitivity": "private delivery-attempt identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0204", + "source": "JobTrackerApi/Controllers/EmailController.cs", + "line": 253, + "expression": "logger.LogError(ex, \"Email was accepted but local persistence failed for attempt {AttemptId}\", reservation.Attempt.Id);", + "sourceLineSha256": "6121cb67575473134679ade842f1109e280998b90bc5ecb80ba7f26d24de970f", + "containingDeclaration": "send", + "parameters": [ + { + "expression": "AttemptId", + "sourceTypeContract": "Guid", + "evidenceBlock": "attempt-types", + "sensitivity": "private delivery-attempt identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0279", + "source": "JobTrackerApi/Controllers/AdminAuditController.cs", + "line": 145, + "expression": "message = $\"Reverted status '{prev}' -> '{job.Status}'.\";", + "sourceLineSha256": "8efb1bdde1e7e98f091a2e2dbf268a317ff1bbde75efbfc7c186d95ef1cc7703", + "containingDeclaration": "undo", + "parameters": [ + { + "expression": "job.Status", + "sourceTypeContract": "string", + "evidenceBlock": "job-types", + "sensitivity": "restored stored status identifier; preserve value", + "runtimeValuesExported": false + }, + { + "expression": "prev", + "sourceTypeContract": "string", + "evidenceBlock": "job-types", + "sensitivity": "original stored status identifier; preserve value", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0294", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 99, + "expression": "_logger.LogError(ex, \"Stripe checkout creation failed for user {UserId}\", user.Id);", + "sourceLineSha256": "baa6163d25abb521448aab3a57ce069d8ba55e0e0460e62e993ba5d06b24b0cd", + "containingDeclaration": "checkout", + "parameters": [ + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0298", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 127, + "expression": "_logger.LogError(ex, \"Stripe billing portal creation failed for user {UserId}\", user.Id);", + "sourceLineSha256": "5ec61e96e31f43bdc6114525bc82dbbf5ecc0e5442d7ba81e210caaf45844086", + "containingDeclaration": "portal", + "parameters": [ + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0301", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 151, + "expression": "_logger.LogWarning(ex, \"Rejected a Stripe webhook with an invalid signature\");", + "sourceLineSha256": "dd91f4b8b97d046d7d2f3feee5bb77aa01d77e82a3ec6e811c1e13da00cee3c9", + "containingDeclaration": "webhook", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0304", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 172, + "expression": "_logger.LogError(ex, \"Could not refresh Stripe subscription {SubscriptionId}\", eventSubscription.Id);", + "sourceLineSha256": "7fee7ca039fd91cf56ea4af416a3dda71d3aae7d26d4ed09d0dd98b16d6dc664", + "containingDeclaration": "webhook", + "parameters": [ + { + "expression": "SubscriptionId", + "sourceTypeContract": "external Stripe Subscription.Id; string? storage sink confirmed, SDK declaration not inspected", + "evidenceBlock": "account-types", + "sensitivity": "private provider identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0306", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 178, + "expression": "_logger.LogWarning(\"Ignoring Stripe subscription {SubscriptionId} because it does not contain the configured Premium price\", subscription.Id);", + "sourceLineSha256": "59c20be23b4b12b4f887fdc934978d4fd1324f1c2e829aee28278637c99b7944", + "containingDeclaration": "webhook", + "parameters": [ + { + "expression": "SubscriptionId", + "sourceTypeContract": "external Stripe Subscription.Id; string? storage sink confirmed, SDK declaration not inspected", + "evidenceBlock": "account-types", + "sensitivity": "private provider identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0307", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 184, + "expression": "_logger.LogWarning(\"Ignoring Stripe subscription {SubscriptionId} because Jobbjakt user metadata is missing\", subscription.Id);", + "sourceLineSha256": "dd3b7c6576b3130323540e8581e8d9f64a122b54a480e3704d0521b9c4763e8a", + "containingDeclaration": "webhook", + "parameters": [ + { + "expression": "SubscriptionId", + "sourceTypeContract": "external Stripe Subscription.Id; string? storage sink confirmed, SDK declaration not inspected", + "evidenceBlock": "account-types", + "sensitivity": "private provider identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0308", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "line": 191, + "expression": "_logger.LogWarning(\"Ignoring Stripe subscription {SubscriptionId} because user {UserId} no longer exists\", subscription.Id, userId);", + "sourceLineSha256": "0e50fd4759646dcbfd94a5660e00e7c1b36e0180bf8b7b3b30fbf6e024c246de", + "containingDeclaration": "webhook", + "parameters": [ + { + "expression": "SubscriptionId", + "sourceTypeContract": "external Stripe Subscription.Id; string? storage sink confirmed, SDK declaration not inspected", + "evidenceBlock": "account-types", + "sensitivity": "private provider identifier", + "runtimeValuesExported": false + }, + { + "expression": "UserId", + "sourceTypeContract": "string identity/storage contract; framework Id declaration external", + "evidenceBlock": "account-types", + "sensitivity": "private account identifier", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0334", + "source": "JobTrackerApi/Controllers/UsersController.cs", + "line": 244, + "expression": "_logger.LogError(ex, \"Failed to send admin-initiated password reset email to {Email}\", u.Email);", + "sourceLineSha256": "acd824ea88bc1f75ccb8048b74c2f184e3ab136e77f5cb3ada5975d3cf74f1da", + "containingDeclaration": "reset-mail", + "parameters": [ + { + "expression": "Email", + "sourceTypeContract": "Identity email value passed to string sender contract; nullable source", + "evidenceBlock": "reset-mail", + "sensitivity": "private email address", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0340", + "source": "JobTrackerApi/Controllers/UsersController.cs", + "line": 279, + "expression": "_logger.LogError(ex, \"Failed to send test email to {Email}\", toEmail);", + "sourceLineSha256": "92d73defff53410c13fe8d1ec6be574b2f6026aca1d479172fe7981bea8e666a", + "containingDeclaration": "test-mail", + "parameters": [ + { + "expression": "Email", + "sourceTypeContract": "Identity email value passed to string sender contract; nullable source", + "evidenceBlock": "reset-mail", + "sensitivity": "private email address", + "runtimeValuesExported": false + } + ], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + }, + { + "recordId": "I00-B03-0346", + "source": "JobTrackerApi/Services/CoverLetterDocumentRenderer.cs", + "line": 91, + "expression": "return new(html, s.ThemeId, \"cover-letter.pdf\");", + "sourceLineSha256": "b37bb835d091bd886def3a3700ef955ab77f40fa67d0d4619a9370434d552211", + "containingDeclaration": "letter-render", + "parameters": [], + "note": "Full statement/declaration is authoritative; lexical fragments are not independent messages." + } + ], + "occurrences": [ + { + "id": "I00-B03-0020:U01", + "recordId": "I00-B03-0020", + "unresolvedIndex": 0, + "originalLexicalCapture": "summary", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0020:U02", + "recordId": "I00-B03-0020", + "unresolvedIndex": 1, + "originalLexicalCapture": "Profile", + "sourceRole": "preview-heading-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0020:U03", + "recordId": "I00-B03-0020", + "unresolvedIndex": 2, + "originalLexicalCapture": "bullets", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0020:U04", + "recordId": "I00-B03-0020", + "unresolvedIndex": 3, + "originalLexicalCapture": "Engineer focused on clear products, resilient systems and measurable delivery.", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0021:U01", + "recordId": "I00-B03-0021", + "unresolvedIndex": 0, + "originalLexicalCapture": "experience", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0021:U02", + "recordId": "I00-B03-0021", + "unresolvedIndex": 1, + "originalLexicalCapture": "Experience", + "sourceRole": "preview-heading-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0021:U03", + "recordId": "I00-B03-0021", + "unresolvedIndex": 2, + "originalLexicalCapture": "entries", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0022:U01", + "recordId": "I00-B03-0022", + "unresolvedIndex": 0, + "originalLexicalCapture": "Senior Platform Engineer", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0022:U02", + "recordId": "I00-B03-0022", + "unresolvedIndex": 1, + "originalLexicalCapture": "Northstar Labs", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0022:U03", + "recordId": "I00-B03-0022", + "unresolvedIndex": 2, + "originalLexicalCapture": "2022 – Present", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0022:U04", + "recordId": "I00-B03-0022", + "unresolvedIndex": 3, + "originalLexicalCapture": "Led platform improvements across product teams.", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0022:U05", + "recordId": "I00-B03-0022", + "unresolvedIndex": 4, + "originalLexicalCapture": "Reduced release lead time through safer automation.", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0023:U01", + "recordId": "I00-B03-0023", + "unresolvedIndex": 0, + "originalLexicalCapture": "Software Engineer", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0023:U02", + "recordId": "I00-B03-0023", + "unresolvedIndex": 1, + "originalLexicalCapture": "Studio Works", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0023:U03", + "recordId": "I00-B03-0023", + "unresolvedIndex": 2, + "originalLexicalCapture": "2019 – 2022", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0023:U04", + "recordId": "I00-B03-0023", + "unresolvedIndex": 3, + "originalLexicalCapture": "Built accessible customer workflows and APIs.", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U01", + "recordId": "I00-B03-0024", + "unresolvedIndex": 0, + "originalLexicalCapture": "skills", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U02", + "recordId": "I00-B03-0024", + "unresolvedIndex": 1, + "originalLexicalCapture": "Skills", + "sourceRole": "preview-heading-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U03", + "recordId": "I00-B03-0024", + "unresolvedIndex": 2, + "originalLexicalCapture": "tags", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U04", + "recordId": "I00-B03-0024", + "unresolvedIndex": 3, + "originalLexicalCapture": "C#", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U05", + "recordId": "I00-B03-0024", + "unresolvedIndex": 4, + "originalLexicalCapture": "React", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U06", + "recordId": "I00-B03-0024", + "unresolvedIndex": 5, + "originalLexicalCapture": "Cloud", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U07", + "recordId": "I00-B03-0024", + "unresolvedIndex": 6, + "originalLexicalCapture": "Design systems", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0024:U08", + "recordId": "I00-B03-0024", + "unresolvedIndex": 7, + "originalLexicalCapture": "Delivery", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U01", + "recordId": "I00-B03-0025", + "unresolvedIndex": 0, + "originalLexicalCapture": "education", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U02", + "recordId": "I00-B03-0025", + "unresolvedIndex": 1, + "originalLexicalCapture": "Education", + "sourceRole": "preview-heading-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U03", + "recordId": "I00-B03-0025", + "unresolvedIndex": 2, + "originalLexicalCapture": "entries", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U04", + "recordId": "I00-B03-0025", + "unresolvedIndex": 3, + "originalLexicalCapture": "BSc Computer Science", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U05", + "recordId": "I00-B03-0025", + "unresolvedIndex": 4, + "originalLexicalCapture": "University of Oslo", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0025:U06", + "recordId": "I00-B03-0025", + "unresolvedIndex": 5, + "originalLexicalCapture": "2016 – 2019", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0026:U01", + "recordId": "I00-B03-0026", + "unresolvedIndex": 0, + "originalLexicalCapture": "languages", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0026:U02", + "recordId": "I00-B03-0026", + "unresolvedIndex": 1, + "originalLexicalCapture": "Languages", + "sourceRole": "preview-heading-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0026:U03", + "recordId": "I00-B03-0026", + "unresolvedIndex": 2, + "originalLexicalCapture": "tags", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0026:U04", + "recordId": "I00-B03-0026", + "unresolvedIndex": 3, + "originalLexicalCapture": "English", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0026:U05", + "recordId": "I00-B03-0026", + "unresolvedIndex": 4, + "originalLexicalCapture": "Norwegian", + "sourceRole": "synthetic-example-value", + "sourceRoleReviewed": true, + "pendingPolicy": "preview-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U01", + "recordId": "I00-B03-0047", + "unresolvedIndex": 0, + "originalLexicalCapture": "Target this toward the saved job '{jobContext.JobTitle}' at '{jobContext.CompanyName ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U02", + "recordId": "I00-B03-0047", + "unresolvedIndex": 1, + "originalLexicalCapture": "}'. Use the full job record below to sharpen wording without inventing facts.\\nJob status: {jobContext.Status}\\nJob summary: {jobContext.ShortSummary ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U03", + "recordId": "I00-B03-0047", + "unresolvedIndex": 2, + "originalLexicalCapture": "}\\nJob description: {jobContext.Description ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U04", + "recordId": "I00-B03-0047", + "unresolvedIndex": 3, + "originalLexicalCapture": "}\\nTranslated description: {jobContext.TranslatedDescription ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U05", + "recordId": "I00-B03-0047", + "unresolvedIndex": 4, + "originalLexicalCapture": "}\\nNotes: {jobContext.Notes ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U06", + "recordId": "I00-B03-0047", + "unresolvedIndex": 5, + "originalLexicalCapture": "}\\nJob URL: {jobContext.JobUrl ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U07", + "recordId": "I00-B03-0047", + "unresolvedIndex": 6, + "originalLexicalCapture": "}\\nRecruiter name: {jobContext.RecruiterName ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U08", + "recordId": "I00-B03-0047", + "unresolvedIndex": 7, + "originalLexicalCapture": "}\\nRecruiter email: {jobContext.RecruiterEmail ?? ", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0047:U09", + "recordId": "I00-B03-0047", + "unresolvedIndex": 8, + "originalLexicalCapture": "}", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0048:U01", + "recordId": "I00-B03-0048", + "unresolvedIndex": 0, + "originalLexicalCapture": "Target role: {effectiveTargetRole}. Keep it broadly reusable but clearly aligned to that role family.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0049:U01", + "recordId": "I00-B03-0049", + "unresolvedIndex": 0, + "originalLexicalCapture": "Keep it broadly reusable for future tailoring.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0050:U01", + "recordId": "I00-B03-0050", + "unresolvedIndex": 0, + "originalLexicalCapture": "Tone guidance: {tone}.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0050:U02", + "recordId": "I00-B03-0050", + "unresolvedIndex": 1, + "originalLexicalCapture": "Tone guidance: confident, professional, concise, and factual.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0051:U01", + "recordId": "I00-B03-0051", + "unresolvedIndex": 0, + "originalLexicalCapture": "Write the CV in {language}.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0051:U02", + "recordId": "I00-B03-0051", + "unresolvedIndex": 1, + "originalLexicalCapture": "Write the CV in English unless the source clearly requires another language.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0052:U01", + "recordId": "I00-B03-0052", + "unresolvedIndex": 0, + "originalLexicalCapture": "Candidate background and emphasis: {promptBackground}", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0053:U01", + "recordId": "I00-B03-0053", + "unresolvedIndex": 0, + "originalLexicalCapture": "this CV", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0053:U02", + "recordId": "I00-B03-0053", + "unresolvedIndex": 1, + "originalLexicalCapture": "the '{sectionName}' section of this CV", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0054:U01", + "recordId": "I00-B03-0054", + "unresolvedIndex": 0, + "originalLexicalCapture": "Rewrite only {subject}. Preserve facts, avoid inventing employers, titles, qualifications, dates, locations, salaries, or metrics. Style guidance: {style}. Template direction: {templateGuidance}. {roleGuidance} {toneGuidance} {languageGuidance} {backgroundGuidance} Return only the rewritten CV text with clean headings and strong bullet phrasing when useful.", + "sourceRole": "model-instruction-fragment", + "sourceRoleReviewed": true, + "pendingPolicy": "model-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0059:U01", + "recordId": "I00-B03-0059", + "unresolvedIndex": 0, + "originalLexicalCapture": "CV rewrite returned empty output. Section={SectionName} Template={TemplateId} TargetRole={TargetRole} JobApplicationId={JobApplicationId} HasSourceText={HasSourceText} StructuredSections={StructuredSectionCount} AiHealthy={AiHealthy} AiLastError={AiLastError}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0101:U01", + "recordId": "I00-B03-0101", + "unresolvedIndex": 0, + "originalLexicalCapture": "Could not prune CV extraction history after the profile commit for user {UserId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0103:U01", + "recordId": "I00-B03-0103", + "unresolvedIndex": 0, + "originalLexicalCapture": "Could not remove duplicate CV upload artifact {ArtifactPath}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0122:U01", + "recordId": "I00-B03-0122", + "unresolvedIndex": 0, + "originalLexicalCapture": "CV document processing run {RunId} failed ({Category}).", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0122:U02", + "recordId": "I00-B03-0122", + "unresolvedIndex": 1, + "originalLexicalCapture": "cv_processing_failed", + "sourceRole": "invariant-schema-or-failure-code", + "sourceRoleReviewed": true, + "pendingPolicy": null, + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0123:U01", + "recordId": "I00-B03-0123", + "unresolvedIndex": 0, + "originalLexicalCapture": "CV processing run {RunId} failed for user {UserId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0124:U01", + "recordId": "I00-B03-0124", + "unresolvedIndex": 0, + "originalLexicalCapture": "Could not delete unreferenced CV artifact {ArtifactId} at {Path}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0128:U01", + "recordId": "I00-B03-0128", + "unresolvedIndex": 0, + "originalLexicalCapture": "CV processing completion email failed for run {RunId} user {UserId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0167:U01", + "recordId": "I00-B03-0167", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment {AttachmentId} metadata referenced missing bytes; deleting the stale row.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0168:U01", + "recordId": "I00-B03-0168", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment {AttachmentId} transaction outcome is uncertain; quarantined bytes await startup reconciliation.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0169:U01", + "recordId": "I00-B03-0169", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment {AttachmentId} bytes could not be restored after database rollback; startup reconciliation will retry.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0170:U01", + "recordId": "I00-B03-0170", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment {AttachmentId} metadata was deleted; quarantined bytes await startup reconciliation.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0178:U01", + "recordId": "I00-B03-0178", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment upload transaction outcome is uncertain; staged bytes await startup reconciliation.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0179:U01", + "recordId": "I00-B03-0179", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment upload rolled back but staged bytes could not be removed; startup reconciliation will retry.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0180:U01", + "recordId": "I00-B03-0180", + "unresolvedIndex": 0, + "originalLexicalCapture": "Attachment upload committed for job {JobId}; staged bytes await startup reconciliation.", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0199:U01", + "recordId": "I00-B03-0199", + "unresolvedIndex": 0, + "originalLexicalCapture": "Email connection check failed for attempt {AttemptId} ({ExceptionType})", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0202:U01", + "recordId": "I00-B03-0202", + "unresolvedIndex": 0, + "originalLexicalCapture": "Unexpected email delivery failure for attempt {AttemptId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0204:U01", + "recordId": "I00-B03-0204", + "unresolvedIndex": 0, + "originalLexicalCapture": "Email was accepted but local persistence failed for attempt {AttemptId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0279:U01", + "recordId": "I00-B03-0279", + "unresolvedIndex": 0, + "originalLexicalCapture": "Reverted status '{prev}' -> '{job.Status}'.", + "sourceRole": "audit-feedback-candidate", + "sourceRoleReviewed": true, + "pendingPolicy": "audit-display", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0294:U01", + "recordId": "I00-B03-0294", + "unresolvedIndex": 0, + "originalLexicalCapture": "Stripe checkout creation failed for user {UserId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0298:U01", + "recordId": "I00-B03-0298", + "unresolvedIndex": 0, + "originalLexicalCapture": "Stripe billing portal creation failed for user {UserId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0301:U01", + "recordId": "I00-B03-0301", + "unresolvedIndex": 0, + "originalLexicalCapture": "Rejected a Stripe webhook with an invalid signature", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0304:U01", + "recordId": "I00-B03-0304", + "unresolvedIndex": 0, + "originalLexicalCapture": "Could not refresh Stripe subscription {SubscriptionId}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0306:U01", + "recordId": "I00-B03-0306", + "unresolvedIndex": 0, + "originalLexicalCapture": "Ignoring Stripe subscription {SubscriptionId} because it does not contain the configured Premium price", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0307:U01", + "recordId": "I00-B03-0307", + "unresolvedIndex": 0, + "originalLexicalCapture": "Ignoring Stripe subscription {SubscriptionId} because Jobbjakt user metadata is missing", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0308:U01", + "recordId": "I00-B03-0308", + "unresolvedIndex": 0, + "originalLexicalCapture": "Ignoring Stripe subscription {SubscriptionId} because user {UserId} no longer exists", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0334:U01", + "recordId": "I00-B03-0334", + "unresolvedIndex": 0, + "originalLexicalCapture": "Failed to send admin-initiated password reset email to {Email}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0340:U01", + "recordId": "I00-B03-0340", + "unresolvedIndex": 0, + "originalLexicalCapture": "Failed to send test email to {Email}", + "sourceRole": "operator-log-template", + "sourceRoleReviewed": true, + "pendingPolicy": "operator-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + }, + { + "id": "I00-B03-0346:U01", + "recordId": "I00-B03-0346", + "unresolvedIndex": 0, + "originalLexicalCapture": "cover-letter.pdf", + "sourceRole": "output-filename", + "sourceRoleReviewed": true, + "pendingPolicy": "filename-language", + "translationApproved": false, + "runtimeReview": "not-run", + "nativeReview": "not-run" + } + ], + "evidenceBlocks": [ + { + "id": "preview", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "startLine": 322, + "endLine": 348, + "sourceSha256": "294996a494baf6288680b66df79ae9d19284435b139f175fa5b4127b87d25b8f", + "rawBlockSha256": "c719d721242a989cc4f262ef8232a8c29234ff45ce75e6cd2077ef885a15618f", + "firstLine": "private static CvRenderModel TemplatePreviewModel() => new()", + "lastLine": "};" + }, + { + "id": "rewrite", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "startLine": 374, + "endLine": 468, + "sourceSha256": "af3b2df98a8013bf40c5c8fd47f149043665f6af3d659425a768b0346bbf05ec", + "rawBlockSha256": "41bab680477a72680fb31f566b6fe397c356ab71a876bce33607c8a1c47d44c1", + "firstLine": "public async Task RewriteSection([FromBody] RewriteSectionRequest request)", + "lastLine": "}" + }, + { + "id": "apply-extraction", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "startLine": 253, + "endLine": 307, + "sourceSha256": "eb08dbd1406c15e4f06e0378820521cad9d57151d2729686c79226cdd5b8ba28", + "rawBlockSha256": "7b269ef09c17dc8b2938b1666b02cf15f30f20e7475c6be5a5d067b89395d6dc", + "firstLine": "private async Task ApplyTextExtractionRunAsync(ApplicationUser user, string trigger, string rawText, string normalizedText, StructuredCvProfile structuredCv, int? artifactId, int expectedVersion, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "artifact-cleanup", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "startLine": 391, + "endLine": 401, + "sourceSha256": "eb08dbd1406c15e4f06e0378820521cad9d57151d2729686c79226cdd5b8ba28", + "rawBlockSha256": "87f1f90ab2b2ce6f90b9a604d07576acb4a080edd55184e06aa971fe1587eeef", + "firstLine": "private void TryDeleteCvArtifactFile(string path)", + "lastLine": "}" + }, + { + "id": "processing", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "startLine": 407, + "endLine": 591, + "sourceSha256": "eb08dbd1406c15e4f06e0378820521cad9d57151d2729686c79226cdd5b8ba28", + "rawBlockSha256": "e1b2051b7d5d2baeb60ee32dfd149b823cb248707beb7b8e2ea1773dbdf88a49", + "firstLine": "public async Task ProcessQueuedRunAsync(int runId, CancellationToken cancellationToken, AiOperationExecutionContext? operationContext = null)", + "lastLine": "}" + }, + { + "id": "prune", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "startLine": 604, + "endLine": 646, + "sourceSha256": "eb08dbd1406c15e4f06e0378820521cad9d57151d2729686c79226cdd5b8ba28", + "rawBlockSha256": "f57e5785e80904ad8353995060ead8ba324d8d16ddba8cf081f02e9d7789375b", + "firstLine": "private async Task PruneExtractionRunsAsync(string ownerUserId, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "completion-mail", + "source": "JobTrackerApi/Controllers/ProfileCvController.Pipeline.cs", + "startLine": 648, + "endLine": 665, + "sourceSha256": "eb08dbd1406c15e4f06e0378820521cad9d57151d2729686c79226cdd5b8ba28", + "rawBlockSha256": "0fdd33f9ecb8d69772b712f4dcbfc41782efb443cb37b221e48a52acc45859e9", + "firstLine": "private async Task SendRunCompletionEmailAsync(ApplicationUser user, CvExtractionRun run, bool success, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "attachment-delete", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "startLine": 171, + "endLine": 252, + "sourceSha256": "9faf924f7d756ad1ec4bd174b1e175bbef57ad5f6444e769db590784a58188c9", + "rawBlockSha256": "6fcd32ba057bac02b3c7883f7402eba276bf6a01499d352c5249011ddb981067", + "firstLine": "public async Task Delete([FromRoute] int id, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "attachment-upload", + "source": "JobTrackerApi/Controllers/AttachmentsController.cs", + "startLine": 255, + "endLine": 391, + "sourceSha256": "9faf924f7d756ad1ec4bd174b1e175bbef57ad5f6444e769db590784a58188c9", + "rawBlockSha256": "e8d296717ed9e5b96a30aff241c054a876e06e22ff2674ab00456950ed05d7c2", + "firstLine": "public async Task Upload([FromForm] IFormFileCollection files, [FromForm] int jobId, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "send", + "source": "JobTrackerApi/Controllers/EmailController.cs", + "startLine": 130, + "endLine": 261, + "sourceSha256": "06582547ffe17631563f39b9409cf00de5b8b98c1aca48bf3d5dad5e7a079246", + "rawBlockSha256": "bb404aa9569ae9d66a73844ca17658da6933b1180cbf316dfddecca61d8f7bd0", + "firstLine": "public async Task> Send([FromBody] SendRequest request, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "checkout", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "startLine": 60, + "endLine": 102, + "sourceSha256": "d1a000a63557e552d06ebe68cbdda9dba54bf491b47acf1271cea83d02a0d7ad", + "rawBlockSha256": "a5a8d78558d9246a9aad05588c4c6d27bec9ea9f4f1d5421c59e08add1779ced", + "firstLine": "public async Task> Checkout(CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "portal", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "startLine": 106, + "endLine": 130, + "sourceSha256": "d1a000a63557e552d06ebe68cbdda9dba54bf491b47acf1271cea83d02a0d7ad", + "rawBlockSha256": "bbf377be764cafcf8a07445c989bcf67e015055b1a6f773ca8e808c4065e5f25", + "firstLine": "public async Task> Portal(CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "webhook", + "source": "JobTrackerApi/Controllers/BillingController.cs", + "startLine": 135, + "endLine": 224, + "sourceSha256": "d1a000a63557e552d06ebe68cbdda9dba54bf491b47acf1271cea83d02a0d7ad", + "rawBlockSha256": "327880855c71607e6fc537ab40310c65c75a77c029f1153fbe2ac75ee922c9f0", + "firstLine": "public async Task Webhook(CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "reset-mail", + "source": "JobTrackerApi/Controllers/UsersController.cs", + "startLine": 223, + "endLine": 249, + "sourceSha256": "cca6627c3ebe66e807fa600b1b88b1fbe2c5b2097fc8e2fa4a7387839a24d9a9", + "rawBlockSha256": "f9609317c39e36de8c55f45ed624dc7182e5146759422d421deacf18cc520e44", + "firstLine": "public async Task SendPasswordReset([FromRoute] string id, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "test-mail", + "source": "JobTrackerApi/Controllers/UsersController.cs", + "startLine": 255, + "endLine": 284, + "sourceSha256": "cca6627c3ebe66e807fa600b1b88b1fbe2c5b2097fc8e2fa4a7387839a24d9a9", + "rawBlockSha256": "a0fb5b121811140168d4f7e55262b50a56f6c76d2ebb251c909b8524d8a778cb", + "firstLine": "public async Task SendTestEmail([FromBody] SendTestEmailRequest? request, CancellationToken cancellationToken)", + "lastLine": "}" + }, + { + "id": "undo", + "source": "JobTrackerApi/Controllers/AdminAuditController.cs", + "startLine": 118, + "endLine": 194, + "sourceSha256": "73acc04b7cb5d320e38b2ee2845a998d2423fb2f0f345a30aa60f0ad81b11422", + "rawBlockSha256": "10025113a3b842fb609c1f08bd9aac900347e385ba9fd4d06f16ddf9fc1af308", + "firstLine": "public async Task> Undo([FromRoute] int id, CancellationToken cancellationToken = default)", + "lastLine": "}" + }, + { + "id": "letter-render", + "source": "JobTrackerApi/Services/CoverLetterDocumentRenderer.cs", + "startLine": 12, + "endLine": 92, + "sourceSha256": "347942bba80afe5ce9322723da24bb5175894c9d35d88c065385974a71928a74", + "rawBlockSha256": "7752d5a7279fe524d79d8866cceb90b37df65aa07032f8f0c715e9fb43c67baf", + "firstLine": "public CoverLetterRenderDto Render(string? text, CoverLetterDocumentSettings? settings)", + "lastLine": "}" + }, + { + "id": "preview-caller", + "source": "JobTrackerApi/Controllers/CvVariantController.cs", + "startLine": 77, + "endLine": 89, + "sourceSha256": "294996a494baf6288680b66df79ae9d19284435b139f175fa5b4127b87d25b8f", + "rawBlockSha256": "6c9090eda60f9f744524edcb8bba4ddfb61165041d86403b31619569ec4a56f4", + "firstLine": "// Render-only sample for visual template thumbnails. This in-memory content is never written to", + "lastLine": "}" + }, + { + "id": "preview-client", + "source": "job-tracker-ui/src/components/CvTemplateThumbnail.tsx", + "startLine": 1, + "endLine": 64, + "sourceSha256": "4c748eea07617767eb74d0f6e439ba30d363f4ad1d6d05e8e4e1172710c274c9", + "rawBlockSha256": "4c748eea07617767eb74d0f6e439ba30d363f4ad1d6d05e8e4e1172710c274c9", + "firstLine": "import React, { useEffect, useRef, useState } from \"react\";", + "lastLine": "}" + }, + { + "id": "render-model-types", + "source": "JobTrackerApi/Services/CvRenderModel.cs", + "startLine": 8, + "endLine": 54, + "sourceSha256": "04223ec85d8a626a0f6a32709b4f3d730c0f6956515773223d3552628dac5f8a", + "rawBlockSha256": "1f9da9c86595884706e2d2999e4416269c069435b184bafe02a65c74bdc1ad93", + "firstLine": "public sealed class CvRenderModel", + "lastLine": "}" + }, + { + "id": "rewrite-request", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "startLine": 148, + "endLine": 159, + "sourceSha256": "af3b2df98a8013bf40c5c8fd47f149043665f6af3d659425a768b0346bbf05ec", + "rawBlockSha256": "233d6e06d64dbf52e2932898190b5ed6da62cd01d673b4bae7392d29388a7339", + "firstLine": "public sealed class RewriteSectionRequest", + "lastLine": "}" + }, + { + "id": "rewrite-helpers", + "source": "JobTrackerApi/Controllers/ProfileCvController.cs", + "startLine": 575, + "endLine": 623, + "sourceSha256": "af3b2df98a8013bf40c5c8fd47f149043665f6af3d659425a768b0346bbf05ec", + "rawBlockSha256": "0e90ac3223b98b663730721554fcda2808d1e4b43253209fb4464a31a4bce925", + "firstLine": "private static string BuildRewriteSourceText(string? sectionName, string? sourceText, StructuredCvProfile structuredCv)", + "lastLine": "var trimmedSource = (source ?? string.Empty).Trim();" + }, + { + "id": "job-types", + "source": "JobTrackerApi/Models/JobApplication.cs", + "startLine": 5, + "endLine": 75, + "sourceSha256": "941b87a649a7a8c2e10853a925d72e4f9ff687df0964c8e569b2f1bde70b9fe7", + "rawBlockSha256": "ec34d5f611ae5b422fa7414f25cfcf7090e561ff7f05bc267aaa397118d8737f", + "firstLine": "public class JobApplication", + "lastLine": "public DateTime? LastReminderEmailSentAt { get; set; }" + }, + { + "id": "company-types", + "source": "JobTrackerApi/Models/Company.cs", + "startLine": 6, + "endLine": 24, + "sourceSha256": "775619203c7b9dabbc52a7d96a837f11c8083c47075c63a037ea778bb1c34fcd", + "rawBlockSha256": "3a1a3add41771c1520f35959b45551fef5740ac59f5c534ad7680139d5e95571", + "firstLine": "public class Company", + "lastLine": "}" + }, + { + "id": "account-types", + "source": "JobTrackerApi/Models/ApplicationUser.cs", + "startLine": 5, + "endLine": 40, + "sourceSha256": "6fdd0c68c1c4c701043a730d8f920f957ce5dfb73d027a6a8714afe26e285aba", + "rawBlockSha256": "42332f407e8faf57b9e27f2dbfce3795a9a27d1c87b81eb1803a7e94d61a1a45", + "firstLine": "public sealed class ApplicationUser : IdentityUser", + "lastLine": "public string DeletionStatus { get; set; } = AccountDeletionStatuses.Active;" + }, + { + "id": "run-types", + "source": "JobTrackerApi/Models/CvExtraction.cs", + "startLine": 3, + "endLine": 36, + "sourceSha256": "af71b4a9081f561673572dbb8f05b43828e314ce86bc74c4beb295421ada3c28", + "rawBlockSha256": "d56c660600ad29b82f17d1475d5580a7d6d8858d9203b2f913add511ed7dbd5a", + "firstLine": "public sealed class CvUploadArtifact", + "lastLine": "}" + }, + { + "id": "attempt-types", + "source": "JobTrackerApi/Models/EmailSendAttempt.cs", + "startLine": 12, + "endLine": 27, + "sourceSha256": "54bbe297c3397e7240ed5ccb307c0212dc6696ecee8c1561410eb4f33aa19a61", + "rawBlockSha256": "54fc389c3a90c179daaf7607d31699d9ea3c3178e124e8f169f6c5fb6498886b", + "firstLine": "public sealed class EmailSendAttempt", + "lastLine": "}" + }, + { + "id": "metrics-types", + "source": "JobTrackerApi/Services/SummarizerService.cs", + "startLine": 16, + "endLine": 50, + "sourceSha256": "035ebc7fa4dbe83846939caa021f44982a2931d261f282fce0688267cdb004dd", + "rawBlockSha256": "0179b3c2710638527fa0b2ca731571cc7cd8318c2795625e9500e5059ac9b51e", + "firstLine": "public sealed record AiServiceMetrics(", + "lastLine": "string? LastError" + }, + { + "id": "failure-types", + "source": "JobTrackerApi/Services/SummarizerService.cs", + "startLine": 71, + "endLine": 84, + "sourceSha256": "035ebc7fa4dbe83846939caa021f44982a2931d261f282fce0688267cdb004dd", + "rawBlockSha256": "1cc63ae658f008c695e7e9fb32d876959f6b3b7b0b1ef516633bd85b86833855", + "firstLine": "public sealed class AiGenerationException(", + "lastLine": "}" + }, + { + "id": "undo-client", + "source": "job-tracker-ui/src/views/AdminAuditPage.tsx", + "startLine": 67, + "endLine": 86, + "sourceSha256": "0be799efe3701761e83c62b22d4a088b525e665f1c0b370cf824629f1e8f17ae", + "rawBlockSha256": "664f215e523dc2ef74cb9daf212b94de68c7af860700fe1d327c768b6dfa1cf6", + "firstLine": "const mutate = async (e: AuditItem, action: \"undo\" | \"restore\") => {", + "lastLine": "}" + }, + { + "id": "pdf-http-caller", + "source": "JobTrackerApi/Controllers/ApplicationAssetsController.cs", + "startLine": 105, + "endLine": 122, + "sourceSha256": "bbed71f315f0be0381e4d6a09a536880f40040ba808b83a9d058b9fb1089bcc2", + "rawBlockSha256": "4cbf8393a8e8f5cef8a9c108d518a2a503fe0bcb24ff32104f5a0a364f6f31f0", + "firstLine": "[HttpPost(\"cover-letter/export-pdf\")]", + "lastLine": "}" + }, + { + "id": "pdf-filename", + "source": "JobTrackerApi/Services/PlaywrightCvPdfExporter.cs", + "startLine": 50, + "endLine": 61, + "sourceSha256": "fd3b4e3cc379bf77701ebd5e0708c644b2a80c7413170e05426a816eade6722e", + "rawBlockSha256": "73bca3037d060fd89f1d9e333621871721c33ca19652dd429c9ff28c8e4a690f", + "firstLine": "var outcome = \"failed\";", + "lastLine": "" + }, + { + "id": "rewrite-test", + "source": "JobTrackerApi.Tests/ProfileCvControllerTests.cs", + "startLine": 844, + "endLine": 935, + "sourceSha256": "ed1e5caaa2ad2286c49a779dfb4f4b8b12dff86ddbf2e52e038531abc9537b84", + "rawBlockSha256": "2835ddc3346dc5b8f48939b795b73df82e91d46515991ff0f2fed19e37843eed", + "firstLine": "[Fact]", + "lastLine": "}" + }, + { + "id": "letter-test", + "source": "JobTrackerApi.Tests/CoverLetterDocumentPersistenceTests.cs", + "startLine": 88, + "endLine": 116, + "sourceSha256": "01d6c4c36ed9ffb4d6e380741d45b3f69657c741ef8449aa95315b7c6a9718c9", + "rawBlockSha256": "90a4033bb9542141c0e32777f9cc9be8800ea28e5e23dd4e1cab5e121fbe5abe", + "firstLine": "[Theory]", + "lastLine": "" + }, + { + "id": "billing-test", + "source": "JobTrackerApi.Tests/BillingControllerTests.cs", + "startLine": 119, + "endLine": 128, + "sourceSha256": "fd236e43025bcc0d65e1955d5c3f316b7ce370b4df837944b3c67cb750e7ed37", + "rawBlockSha256": "84fcc889ce6457f228a36d7c125f8ecbf902525886231712fbdef529802b4f0d", + "firstLine": "public async Task Webhook_rejects_an_invalid_Stripe_signature()", + "lastLine": "" + }, + { + "id": "email-test", + "source": "JobTrackerApi.Tests/EmailControllerTests.cs", + "startLine": 45, + "endLine": 69, + "sourceSha256": "efd85ce3d42194908ec041c5a7ac09ddf24d5d24131297f09763a5337467a155", + "rawBlockSha256": "e313dc58b26dce2b8b89bfd4711d1de67359a6e63dd1b525eb30a0f915bcc3c0", + "firstLine": "public async Task Search_rejects_unknown_or_disconnected_provider()", + "lastLine": "}" + } + ], + "policyDecisionsPending": { + "operator-language": "Define diagnostic language/exposure in its implementation stage; ILogger templates are not notification/UI copy.", + "preview-language": "Qualify translated preview headings and cross-occupation example fixtures; never rewrite real career facts.", + "model-language": "Qualify instruction versus requested output language independently from interface locale; live semantic tests remain blocked.", + "audit-display": "Define server display versus stable code/client rendering; preserve stored status identities and historical event notes.", + "filename-language": "Preserve the current filename until its locale/Unicode/header/client contract is qualified." + }, + "counts": { + "occurrences": 83, + "contexts": 43, + "sourceBlobs": 24, + "evidenceBlocks": 36, + "parameters": 60, + "byRole": { + "invariant-schema-or-failure-code": 11, + "preview-heading-candidate": 5, + "synthetic-example-value": 20, + "model-instruction-fragment": 19, + "operator-log-template": 26, + "audit-feedback-candidate": 1, + "output-filename": 1 + } + }, + "productTestsExecuted": false, + "nativeLanguageApproval": false, + "localeOrStageAcceptance": "NOT GRANTED" +} diff --git a/docs/i18n/00/B04_DISPOSITIONS.md b/docs/i18n/00/B04_DISPOSITIONS.md new file mode 100644 index 00000000..4ac5a10a --- /dev/null +++ b/docs/i18n/00/B04_DISPOSITIONS.md @@ -0,0 +1,36 @@ +# B04: disposition of the83 B03 lexical captures + +Research baselinef1c42a52, source evidence1db5f488. The interrupted worker's B04_review.py draft was preserved and completed by root. Two out-of-range evidence blocks were corrected to the actual64-line preview client and36-line extraction model before any successful validation. No application, catalogue, glossary, translation or locale status changed. B03 remains byte-identical. + +All83 capture identities are mapped through43 original source contexts and36 supporting blocks in24 immutable Git blobs: + +| Source role | Captures | Implementation implication | +| --- | ---: | --- | +| Schema identifiers/stable failure code | 11 | Preserve identities; do not translate section keys, kind values or cv_processing_failed | +| Preview headings | 5 | Profile, Experience, Skills, Education and Languages are preview/document display candidates | +| Synthetic example values | 20 | Sample occupations, employer/education facts and skills need deliberate document-language fixtures; never rewrite actual career facts | +| Model instruction fragments | 19 | These come from eight C# statements, including nested interpolation; they are not19 independent UI messages | +| Operator log templates | 26 | Separate diagnostic templates, parameter values and exposure policy from customer notification/UI catalogues | +| Audit success feedback | 1 | The admin client currently displays the server message; retain original status values and historical notes when defining its display owner | +| Output filename | 1 | Current cover-letter.pdf flows through exporter/HTTP download contracts; preserve it until locale/Unicode compatibility is qualified | + +The review records60 parameter occurrences with declaration/caller evidence and privacy boundaries. Framework Identity Id and Stripe SDK declaration types are explicitly external/uninspected where appropriate; these are not falsely claimed as verified package declarations. Prompt job fields, source descriptions, recruiter details and career text remain original private data. No runtime values were read or exported. UI language and requested document/model output language remain independent. + +Five **technical implementation policies** remain: diagnostics, preview fixtures/headings, model instruction/output language, audit feedback ownership and filenames. These are work to resolve in the appropriate already-gated implementation stages; they do not create five additional mandatory human approvals. Existing predecessor, native-language/publication and live-model gates remain authoritative. + +## Verification + +From repository root: + +```text +rtk proxy python docs/i18n/00/B04_review.py +rtk proxy python docs/i18n/00/B04_tests.py -v +``` + +Five research-integrity methods PASS, zero skips; twelve rejected mutations occur inside one method. Source/record/block hashes, exact83 identities, category partition, typed parameter evidence and no-approval statuses are checked. Positive assertions distinguish actual preview headings from schema/example data, model/diagnostic domains, visible audit feedback and filename transport. The validator reconstructs deterministic evidence; it is not a C# compiler, complete AST extractor or independent linguistic review. The generator's --build writes only the new B04 research JSON. + +Native results and input hashes are retained in B04_VALIDATION.json and B04_TEST_RESULTS.txt. Original incomplete-script assertion failures are described above; no product defect or failed translation test is inferred. Root reviewed the original83 expressions and supporting declaration/caller/type blocks. No application build/test/browser/PDF/provider/model/native-language execution occurred. + +## Remaining scope + +All24 EU official-language groups and all60 planned wider-European candidate tags remain mandatory. No locale is newly translated or published. B03's708 other quoted-line frontier, unselected owners, full frontend/sidecar domains, translator context and native/physical/font/device acceptance remain open. Source-role review of83 captures does not close full I18N-00, create translation approval, alter B03's historical provisional counts or unlock stages01–08. Pending product-stage policies remain distinct from unresolved source reachability. diff --git a/docs/i18n/00/B04_TEST_RESULTS.txt b/docs/i18n/00/B04_TEST_RESULTS.txt new file mode 100644 index 00000000..2cbdd063 --- /dev/null +++ b/docs/i18n/00/B04_TEST_RESULTS.txt @@ -0,0 +1,10 @@ +test_all_original_captures_keep_exact_identity_and_no_locale_approval (__main__.DispositionIntegrity.test_all_original_captures_keep_exact_identity_and_no_locale_approval) ... ok +test_audit_feedback_and_pdf_filename_keep_their_actual_contracts (__main__.DispositionIntegrity.test_audit_feedback_and_pdf_filename_keep_their_actual_contracts) ... ok +test_preview_schema_headings_and_example_facts_have_separate_owners (__main__.DispositionIntegrity.test_preview_schema_headings_and_example_facts_have_separate_owners) ... ok +test_prompt_fragments_and_diagnostic_values_are_not_ui_messages (__main__.DispositionIntegrity.test_prompt_fragments_and_diagnostic_values_are_not_ui_messages) ... ok +test_source_role_type_and_approval_mutations_are_rejected (__main__.DispositionIntegrity.test_source_role_type_and_approval_mutations_are_rejected) ... ok + +---------------------------------------------------------------------- +Ran 5 tests in 1.347s + +OK diff --git a/docs/i18n/00/B04_VALIDATION.json b/docs/i18n/00/B04_VALIDATION.json new file mode 100644 index 00000000..314cbde8 --- /dev/null +++ b/docs/i18n/00/B04_VALIDATION.json @@ -0,0 +1,39 @@ +{ + "status": "disposition-integrity-only", + "sourceCommit": "1db5f488f6138e4f0f33749452b7d9f47658f4b0", + "counts": { + "occurrences": 83, + "contexts": 43, + "sourceBlobs": 24, + "evidenceBlocks": 36, + "parameters": 60, + "byRole": { + "invariant-schema-or-failure-code": 11, + "preview-heading-candidate": 5, + "synthetic-example-value": 20, + "model-instruction-fragment": 19, + "operator-log-template": 26, + "audit-feedback-candidate": 1, + "output-filename": 1 + } + }, + "pendingPolicyDecisions": 5, + "unreviewedB03OccurrenceIds": [], + "inputSha256": { + "B03_CENSUS.json": "b4e91fb2c4821cfadcf58445dbc358f20abb26c505c219681757c0ae22f5b8e3", + "B04_DISPOSITIONS.json": "d31318dbf69ee26424d2e4fc566b6bb9a7e9c101e4b6dcde0bf6a9155426ada9", + "B04_review.py": "b1ec564e3c48a80655d58fbd8e12123f41b09565b2a820cdc7aa9c04af1bfe3c", + "B04_tests.py": "0bf500436d81de813c320854667a0cb4d471752bb15ea965ff92687ad3d2682a" + }, + "productNativeLanguageTests": "NOT RUN", + "acceptance": "NOT GRANTED", + "testCommand": [ + "C:\\Users\\Connor\\AppData\\Local\\Programs\\Python\\Python312\\python.exe", + "docs/i18n/00/B04_tests.py", + "-v" + ], + "testExitCode": 0, + "testsPassed": 5, + "mutationsInsideOneTest": 12, + "testResultsSha256": "08c8aafe92515507ceb02ca24ebd8787759e6005162493697056e156efd94e56" +} diff --git a/docs/i18n/00/B04_review.py b/docs/i18n/00/B04_review.py new file mode 100644 index 00000000..d60372e8 --- /dev/null +++ b/docs/i18n/00/B04_review.py @@ -0,0 +1,192 @@ +"""Explicit disposition of B03's 83 captures; research only, no translation approval.""" +from collections import Counter +from functools import lru_cache +import hashlib +import json +from pathlib import Path +import re +import subprocess + +HERE = Path(__file__).resolve().parent +ROOT = HERE.parents[2] +SOURCE = '1db5f488f6138e4f0f33749452b7d9f47658f4b0' +B03_HASH = 'b4e91fb2c4821cfadcf58445dbc358f20abb26c505c219681757c0ae22f5b8e3' +C, S, M, T, UI = 'JobTrackerApi/Controllers/', 'JobTrackerApi/Services/', 'JobTrackerApi/Models/', 'JobTrackerApi.Tests/', 'job-tracker-ui/src/' +# Complete containing declarations, followed by supporting type/caller/test contracts. +BLOCKS = { + 'preview': (C+'CvVariantController.cs', 322, 348), + 'rewrite': (C+'ProfileCvController.cs', 374, 468), + 'apply-extraction': (C+'ProfileCvController.Pipeline.cs', 253, 307), + 'artifact-cleanup': (C+'ProfileCvController.Pipeline.cs', 391, 401), + 'processing': (C+'ProfileCvController.Pipeline.cs', 407, 591), + 'prune': (C+'ProfileCvController.Pipeline.cs', 604, 646), + 'completion-mail': (C+'ProfileCvController.Pipeline.cs', 648, 665), + 'attachment-delete': (C+'AttachmentsController.cs', 171, 252), + 'attachment-upload': (C+'AttachmentsController.cs', 255, 391), + 'send': (C+'EmailController.cs', 130, 261), + 'checkout': (C+'BillingController.cs', 60, 102), + 'portal': (C+'BillingController.cs', 106, 130), + 'webhook': (C+'BillingController.cs', 135, 224), + 'reset-mail': (C+'UsersController.cs', 223, 249), + 'test-mail': (C+'UsersController.cs', 255, 284), + 'undo': (C+'AdminAuditController.cs', 118, 194), + 'letter-render': (S+'CoverLetterDocumentRenderer.cs', 12, 92), + 'preview-caller': (C+'CvVariantController.cs', 77, 89), + 'preview-client': (UI+'components/CvTemplateThumbnail.tsx', 1, 64), + 'render-model-types': (S+'CvRenderModel.cs', 8, 54), + 'rewrite-request': (C+'ProfileCvController.cs', 148, 159), + 'rewrite-helpers': (C+'ProfileCvController.cs', 575, 623), + 'job-types': (M+'JobApplication.cs', 5, 75), + 'company-types': (M+'Company.cs', 6, 24), + 'account-types': (M+'ApplicationUser.cs', 5, 40), + 'run-types': (M+'CvExtraction.cs', 3, 36), + 'attempt-types': (M+'EmailSendAttempt.cs', 12, 27), + 'metrics-types': (S+'SummarizerService.cs', 16, 50), + 'failure-types': (S+'SummarizerService.cs', 71, 84), + 'undo-client': (UI+'views/AdminAuditPage.tsx', 67, 86), + 'pdf-http-caller': (C+'ApplicationAssetsController.cs', 105, 122), + 'pdf-filename': (S+'PlaywrightCvPdfExporter.cs', 50, 61), + 'rewrite-test': (T+'ProfileCvControllerTests.cs', 844, 935), + 'letter-test': (T+'CoverLetterDocumentPersistenceTests.cs', 88, 116), + 'billing-test': (T+'BillingControllerTests.cs', 119, 128), + 'email-test': (T+'EmailControllerTests.cs', 45, 69), +} +SCHEMA_POSITIONS = {(20, 0), (20, 2), (21, 0), (21, 2), (24, 0), (24, 2), (25, 0), (25, 2), (26, 0), (26, 2)} +HEADING_POSITIONS = {(record, 1) for record in [20, 21, 24, 25, 26]} +MODEL_IDS = set(range(47, 55)) +POLICIES = { + 'operator-language': 'Define diagnostic language/exposure in its implementation stage; ILogger templates are not notification/UI copy.', + 'preview-language': 'Qualify translated preview headings and cross-occupation example fixtures; never rewrite real career facts.', + 'model-language': 'Qualify instruction versus requested output language independently from interface locale; live semantic tests remain blocked.', + 'audit-display': 'Define server display versus stable code/client rendering; preserve stored status identities and historical event notes.', + 'filename-language': 'Preserve the current filename until its locale/Unicode/header/client contract is qualified.', +} + +def sha(data): + return hashlib.sha256(data).hexdigest() + +@lru_cache(maxsize=None) +def blob(path): + assert path in {entry[0] for entry in BLOCKS.values()} + return subprocess.check_output(['git', 'show', f'{SOURCE}:{path}'], cwd=ROOT) + +def block_for(record): + matches = [name for name, (path, start, end) in BLOCKS.items() + if path == record['source'] and start <= record['line'] <= end] + assert len(matches) == 1, (record['id'], matches) + return matches[0] + +def role(record, index, segment): + number = int(record['id'].rsplit('-', 1)[1]) + if (number, index) in SCHEMA_POSITIONS or segment == 'cv_processing_failed': + return 'invariant-schema-or-failure-code', None + if (number, index) in HEADING_POSITIONS: + return 'preview-heading-candidate', 'preview-language' + if 20 <= number <= 26: + return 'synthetic-example-value', 'preview-language' + if number in MODEL_IDS: + return 'model-instruction-fragment', 'model-language' + if record['boundary'] == 'diagnostic-template': + return 'operator-log-template', 'operator-language' + if number == 279: + return 'audit-feedback-candidate', 'audit-display' + if number == 346: + return 'output-filename', 'filename-language' + raise AssertionError(('undispositioned capture', record['id'], index)) + +def parameter_type(name): + types = { + 'SectionName': ('string?', 'rewrite', 'private section/display metadata'), + 'TemplateId': ('string', 'rewrite-helpers', 'template identifier; preserve identity'), + 'TargetRole': ('string?', 'rewrite', 'private career/job role'), + 'JobApplicationId': ('int?', 'rewrite-helpers', 'private owned job identifier'), + 'HasSourceText': ('bool', 'rewrite', 'presence only, not CV source text'), + 'StructuredSectionCount': ('int', 'rewrite', 'collection Count, not source content'), + 'AiHealthy': ('bool', 'metrics-types', 'service health signal'), + 'AiLastError': ('string?', 'metrics-types', 'upstream diagnostic domain; private values not exported'), + 'UserId': ('string identity/storage contract; framework Id declaration external', 'account-types', 'private account identifier'), + 'ArtifactPath': ('string', 'artifact-cleanup', 'private filesystem path'), + 'RunId': ('int', 'run-types', 'private processing identifier'), + 'Category': ('string', 'failure-types', 'stable failure category, not translated prose'), + 'ArtifactId': ('int', 'run-types', 'private artifact identifier'), + 'Path': ('string', 'run-types', 'private filesystem path'), + 'AttachmentId': ('int', 'attachment-delete', 'private attachment identifier'), + 'JobId': ('int', 'attachment-upload', 'private owned job identifier'), + 'AttemptId': ('Guid', 'attempt-types', 'private delivery-attempt identifier'), + 'ExceptionType': ('string framework Type.Name contract', 'send', 'exception type name, not full exception text'), + 'SubscriptionId': ('external Stripe Subscription.Id; string? storage sink confirmed, SDK declaration not inspected', 'account-types', 'private provider identifier'), + 'Email': ('Identity email value passed to string sender contract; nullable source', 'reset-mail', 'private email address'), + 'prev': ('string', 'job-types', 'original stored status identifier; preserve value'), + 'job.Status': ('string', 'job-types', 'restored stored status identifier; preserve value'), + } + if name in types: + value, evidence, sensitivity = types[name] + elif name.startswith('jobContext.'): + value, evidence, sensitivity = 'string (coalesced where nullable)', 'job-types', 'private job/source-ad/company/recruiter value; preserve original' + if 'CompanyName' in name or 'Recruiter' in name: + evidence = 'company-types' + elif name in {'sectionName', 'effectiveTargetRole', 'tone', 'language', 'promptBackground'}: + value, evidence, sensitivity = 'string? input, guarded/coalesced before this interpolation', 'rewrite-request', 'private career/editor input; output language independent of UI' + elif name in {'subject', 'style', 'templateGuidance', 'roleGuidance', 'toneGuidance', 'languageGuidance', 'backgroundGuidance'}: + value, evidence, sensitivity = 'string expression', 'rewrite', 'composed instruction frame; may contain private runtime values' + else: + raise AssertionError(('untyped parameter', name)) + return {'expression': name, 'sourceTypeContract': value, 'evidenceBlock': evidence, 'sensitivity': sensitivity, + 'runtimeValuesExported': False} + +def build(): + data = (HERE/'B03_CENSUS.json').read_bytes() + assert sha(data) == B03_HASH, 'B03 must remain immutable' + prior = json.loads(data) + contexts, occurrences = [], [] + for record in prior['records']: + if not record['unresolvedSegments']: + continue + source = blob(record['source']) + line = source.decode('utf-8').splitlines()[record['line'] - 1] + assert sha(source) == record['sourceSha256'] and sha(line.encode()) == record['sourceLineSha256'] + assert line.strip() == record['sourceExpression'] + parameters = [] if record['boundary'] == 'synthetic-preview-example' else [parameter_type(name) + for name in sorted(set(re.findall(r'\{([^{}]+)\}', record['sourceExpression'])))] + contexts.append({'recordId': record['id'], 'source': record['source'], 'line': record['line'], + 'expression': record['sourceExpression'], 'sourceLineSha256': record['sourceLineSha256'], + 'containingDeclaration': block_for(record), 'parameters': parameters, + 'note': 'Full statement/declaration is authoritative; lexical fragments are not independent messages.'}) + for index, segment in enumerate(record['unresolvedSegments']): + category, policy = role(record, index, segment) + occurrences.append({'id': f'{record["id"]}:U{index + 1:02}', 'recordId': record['id'], + 'unresolvedIndex': index, 'originalLexicalCapture': segment, 'sourceRole': category, + 'sourceRoleReviewed': True, 'pendingPolicy': policy, 'translationApproved': False, + 'runtimeReview': 'not-run', 'nativeReview': 'not-run'}) + blocks = [] + for name, (path, start, end) in BLOCKS.items(): + raw = blob(path) + lines = raw.splitlines(keepends=True) + assert 1 <= start <= end <= len(lines), name + blocks.append({'id': name, 'source': path, 'startLine': start, 'endLine': end, + 'sourceSha256': sha(raw), 'rawBlockSha256': sha(b''.join(lines[start - 1:end])), + 'firstLine': lines[start - 1].decode().strip(), 'lastLine': lines[end - 1].decode().strip()}) + assert len(occurrences) == 83 + return {'status': 'research-disposition-only', 'sourceCommit': SOURCE, 'immutableB03Sha256': B03_HASH, + 'contexts': contexts, 'occurrences': occurrences, 'evidenceBlocks': blocks, + 'policyDecisionsPending': POLICIES, 'counts': {'occurrences': len(occurrences), + 'contexts': len(contexts), 'sourceBlobs': len({block['source'] for block in blocks}), + 'evidenceBlocks': len(blocks), 'parameters': sum(len(context['parameters']) for context in contexts), + 'byRole': dict(Counter(item['sourceRole'] for item in occurrences))}, + 'productTestsExecuted': False, 'nativeLanguageApproval': False, 'localeOrStageAcceptance': 'NOT GRANTED'} + +def validate(payload): + assert payload == build(), 'source, coverage, disposition, type evidence or approval drift' + assert len({row['id'] for row in payload['occurrences']}) == 83 + assert all(not row['translationApproved'] for row in payload['occurrences']) + return {'status': 'disposition-integrity-only', 'sourceCommit': SOURCE, 'counts': payload['counts'], + 'pendingPolicyDecisions': len(POLICIES), 'unreviewedB03OccurrenceIds': [], + 'inputSha256': {name: sha((HERE/name).read_bytes()) for name in ['B03_CENSUS.json', 'B04_DISPOSITIONS.json', 'B04_review.py', 'B04_tests.py']}, + 'productNativeLanguageTests': 'NOT RUN', 'acceptance': 'NOT GRANTED'} + +if __name__ == '__main__': + import sys + if sys.argv[1:] == ['--build']: + (HERE/'B04_DISPOSITIONS.json').write_text(json.dumps(build(), ensure_ascii=False, indent=2)+'\n', encoding='utf-8') + else: + print(json.dumps(validate(json.loads((HERE/'B04_DISPOSITIONS.json').read_text(encoding='utf-8'))), indent=2)) diff --git a/docs/i18n/00/B04_tests.py b/docs/i18n/00/B04_tests.py new file mode 100644 index 00000000..18387abe --- /dev/null +++ b/docs/i18n/00/B04_tests.py @@ -0,0 +1,85 @@ +"""Research evidence tests only; never change application or locale status.""" +import copy +import json +from pathlib import Path +import unittest + +import B04_review as review + +HERE = Path(__file__).resolve().parent + + +class DispositionIntegrity(unittest.TestCase): + @classmethod + def setUpClass(cls): + cls.payload = json.loads((HERE/'B04_DISPOSITIONS.json').read_text(encoding='utf-8')) + + def test_all_original_captures_keep_exact_identity_and_no_locale_approval(self): + result = review.validate(self.payload) + self.assertEqual(83, result['counts']['occurrences']) + prior = json.loads((HERE/'B03_CENSUS.json').read_text(encoding='utf-8')) + original = {(row['id'], i, value) for row in prior['records'] + for i, value in enumerate(row['unresolvedSegments'])} + current = {(row['recordId'], row['unresolvedIndex'], row['originalLexicalCapture']) + for row in self.payload['occurrences']} + self.assertEqual(original, current) + self.assertEqual('NOT GRANTED', result['acceptance']) + self.assertFalse(self.payload['productTestsExecuted']) + + def test_preview_schema_headings_and_example_facts_have_separate_owners(self): + headings = [row['originalLexicalCapture'] for row in self.payload['occurrences'] + if row['sourceRole'] == 'preview-heading-candidate'] + self.assertEqual(['Profile', 'Experience', 'Skills', 'Education', 'Languages'], headings) + self.assertEqual(20, self.payload['counts']['byRole']['synthetic-example-value']) + codes = [row['originalLexicalCapture'] for row in self.payload['occurrences'] + if row['sourceRole'] == 'invariant-schema-or-failure-code'] + self.assertIn('cv_processing_failed', codes) + self.assertIn('experience', codes) + self.assertNotIn('Experience', codes) + + def test_prompt_fragments_and_diagnostic_values_are_not_ui_messages(self): + roles = self.payload['counts']['byRole'] + self.assertEqual(19, roles['model-instruction-fragment']) + self.assertEqual(26, roles['operator-log-template']) + expressions = {parameter['expression']: parameter for context in self.payload['contexts'] + for parameter in context['parameters']} + self.assertEqual('bool', expressions['AiHealthy']['sourceTypeContract']) + self.assertEqual('Guid', expressions['AttemptId']['sourceTypeContract']) + self.assertTrue(all(not parameter['runtimeValuesExported'] for parameter in expressions.values())) + self.assertIn('SDK declaration not inspected', expressions['SubscriptionId']['sourceTypeContract']) + + def test_audit_feedback_and_pdf_filename_keep_their_actual_contracts(self): + audit = next(row for row in self.payload['occurrences'] if row['sourceRole'] == 'audit-feedback-candidate') + filename = next(row for row in self.payload['occurrences'] if row['sourceRole'] == 'output-filename') + self.assertEqual('I00-B03-0279', audit['recordId']) + self.assertEqual('cover-letter.pdf', filename['originalLexicalCapture']) + audit_block = next(block for block in self.payload['evidenceBlocks'] if block['id'] == 'undo-client') + source = review.blob(audit_block['source']).decode('utf-8') + self.assertIn('res.data?.message || currentTranslation.current', source) + self.assertFalse(audit['translationApproved']) + + def test_source_role_type_and_approval_mutations_are_rejected(self): + mutations = [ + lambda d: d['occurrences'].pop(), + lambda d: d['occurrences'].append(copy.deepcopy(d['occurrences'][0])), + lambda d: d['occurrences'][0].update(sourceRole='translation-ready'), + lambda d: d['occurrences'][0].update(translationApproved=True), + lambda d: d['contexts'][0].update(expression='forged'), + lambda d: d['contexts'][0].update(sourceLineSha256='0'*64), + lambda d: d['evidenceBlocks'][0].update(rawBlockSha256='0'*64), + lambda d: d.update(sourceCommit='main'), + lambda d: d.update(nativeLanguageApproval=True), + lambda d: d.update(localeOrStageAcceptance='PASS'), + lambda d: d['counts'].update(occurrences=0), + lambda d: d['contexts'][-1].update(parameters=[{'sourceTypeContract': 'forged'}]), + ] + for index, mutate in enumerate(mutations): + with self.subTest(mutation=index): + changed = copy.deepcopy(self.payload) + mutate(changed) + with self.assertRaises(AssertionError): + review.validate(changed) + + +if __name__ == '__main__': + unittest.main()