feat(assessment): find the attempt behind a leaked task text

This commit is contained in:
shira committed 2026-10-11 13:19:38 +03:00
1 parent bb917bf62e
commit 5a731c25b7
26 files changed
+2500

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
// Command assessment-leak-trace searches for the assessment attempt behind a
// leaked task text. It reads text, never an image: a screenshot must be read
// by an OCR tool first. It records every search in an audit table and changes
// nothing else.
package main
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"lincodex/backend/internal/adapter/primary/cli/leaktrace"
)
func main() {
os.Exit(run())
}
func run() int {
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
if err := leaktrace.Run(ctx, os.Args[1:], os.LookupEnv, os.Stdin, os.Stdout); err != nil {
_, _ = fmt.Fprintf(os.Stderr, "assessment-leak-trace: %v\n", err)
return 2
}
return 0
}