[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115007":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},115007,"target-reconciliation-service","ATLURI0001\u002Ftarget-reconciliation-service","ATLURI0001","Kubernetes-native reliability control plane orchestrating policy-driven reconciliation, automated workload recovery, failure remediation, and auditable infrastructure operations.","",null,"Go",72,1,51,0,18,6,53.7,"Apache License 2.0",false,"main",true,[24,25,26,27,28,29,30,31],"cloud-native","gitops","golang","incident-response","infrastructure-automation","observability","platform-engineering","reconciliation","2026-11-23 07:23:46","2026-11-23 18:32:41","# TargetReconciliationService\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fbanner.svg\" alt=\"TargetReconciliationService Banner\" width=\"100%\" \u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FATLURI0001\u002Ftarget-reconciliation-service\u002Factions\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCI-GitHub%20Actions-blue?logo=githubactions&logoColor=white\" alt=\"CI\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"go.mod\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FGo-1.24%2B-00ADD8?logo=go&logoColor=white\" alt=\"Go\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"config\u002Fcrd\u002Freliabilitytargets.yaml\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FKubernetes-CRD%20Reconciler-326CE5?logo=kubernetes&logoColor=white\" alt=\"Kubernetes\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"internal\u002Fstore\u002Fmigrations\u002F001_initial.sql\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPostgreSQL-Immutable%20Audit-4169E1?logo=postgresql&logoColor=white\" alt=\"PostgreSQL\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"web\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FNext.js-Console-black?logo=next.js&logoColor=white\" alt=\"Next.js\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"observability\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMetrics-Prometheus%20%26%20Grafana-E6522C?logo=prometheus&logoColor=white\" alt=\"Observability\" \u002F>\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-Apache--2.0-green.svg\" alt=\"License\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n---\n\nTargetReconciliationService coordinates observation, incident detection, proposed recovery, authorization, execution and verification. It addresses the gap between deployment failure signals and accountable operational intervention: who approved the change, what evidence justified it, what actually changed, and whether the selected target recovered.\n\n**Status: 0.2.0-dev laboratory implementation.** This is working control-plane software with automated integration evidence, not a production-ready multi-cloud platform. The selected name does not imply exclusive availability; see docs\u002Fresearch.md. No adoption or demonstrated enterprise-scale claim is made.\n\n## What works now\n\n- Go management API and CLI with distinct local viewer\u002Foperator identities.\n- PostgreSQL-backed cluster records, observations, policy, incidents and transactional audit timeline. No in-memory fallback in the executable.\n- A real controller-runtime reconciler and validated namespaced ReliabilityTarget CRD with generation-aware Ready\u002FReconciled status conditions; uncached Kubernetes observation, leader election, scoped RBAC and safe retry behavior.\n- Sustained fresh-failure detection, deterministic explainable rollback proposals, dry-run by default, explicit approval, opt-in and GitOps ownership fences, per-target\u002Fconcurrent admission, cancellation and deadline checks.\n- Digest-pinned image rollback using atomic UID\u002FresourceVersion\u002Fimage preconditions and a durable execution marker. Verification binds the original target\u002Fcontainer\u002Freplica count to observed rollout readiness.\n- Read-only Next.js\u002FTypeScript\u002FTailwind console for actual clusters, workload health, incidents\u002Fplans, policy and audit; explicit loading\u002Ferror\u002Fempty\u002Fstale states.\n- Real API metrics; optional Prometheus\u002FGrafana configuration, alert tests, Docker\u002FCompose, Helm chart, Jenkins validation pipeline and local-lab commands.\n\nThe original product logic is the transactional policy\u002Fadmission\u002Fworkflow model and its Kubernetes execution\u002Fverification bridge. Kubernetes still schedules\u002Fheals workloads, PostgreSQL owns persistence, and future GitOps changes belong to GitOps controllers.\n\n## Workflow & Rollback Lifecycle\n\nThe control plane implements an end-to-end, policy-governed state machine: from fresh sustained failure detection through deterministic rollback proposal, operator authorization, atomic digest execution, and closed-loop replica verification.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fworkflow-lifecycle.svg\" alt=\"Policy-Governed Incident Lifecycle & Rollback Workflow\" width=\"100%\" \u002F>\n\u003C\u002Fp>\n\n## Architecture\n\nTargetReconciliationService maintains strict transactional isolation between Kubernetes runtime controllers and policy state.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Farchitecture.svg\" alt=\"Control Plane Architecture\" width=\"100%\" \u002F>\n\u003C\u002Fp>\n\nRead [ARCHITECTURE.md](ARCHITECTURE.md) for consistency, replay, dispatch and scale boundaries. The current bridge watches one local test namespace; outbound agents and multi-cluster operations are planned.\n\n## Metrics & Observability\n\nTargetReconciliationService exposes real-time Prometheus metrics (`\u002Fmetrics`) and includes a pre-configured Grafana dashboard for telemetry freshness, replica convergence, and immutable audit logs.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fmetrics-dashboard.svg\" alt=\"Core Reliability & Observability Dashboard\" width=\"100%\" \u002F>\n\u003C\u002Fp>\n\n- **Telemetry Freshness**: Alert fires when `time() - trs_cluster_last_seen_seconds > 30s`.\n- **Replica Convergence**: Tracks `trs_deployment_available_replicas` against `trs_deployment_desired_replicas`.\n- **Audit Stream**: Real-time event timeline mirrored directly from the PostgreSQL `rp_audit` append-only table.\n\nSee [observability\u002FREADME.md](observability\u002FREADME.md) for Prometheus configuration and alert verification rules.\n\n## Changes in 0.2.0-dev\n\nThe project is now **TargetReconciliationService (TRS)**. Repository, Go module, executable, `trsctl`, chart, Docker image, `TRS_` configuration, `trs_*` metrics, namespace and API group are updated consistently. See [rename and migration boundaries](docs\u002Frename-migration.md) before reusing an older installation.\n\n[GitHub Actions CI](.github\u002Fworkflows\u002Fci.yml) is configured for pushes and pull requests. It runs the build\u002Ftest\u002Flint\u002FHelm checks and includes a Docker\u002FKind live-lab job. The workflow is source-complete but has not been triggered on GitHub in this workspace. Local checks and the actual Docker startup blocker are recorded in the verification report; no green hosted-CI run is invented.\n\nReliabilityTarget now has a status subresource with `observedGeneration`, `Ready` and `Reconciled` conditions. The controller avoids unnecessary status writes and treats unavailable live reads as unknown health. Rollout verification also requires no old\u002Fsurplus replicas, so a surviving old Pod cannot mask a failed new release.\n\n## Quick start\n\nPrerequisites: Linux\u002FmacOS or Windows WSL2, Git, Go 1.27.4+, Python3, Docker with Compose v2. Console additionally needs Node 22.13+ and npm. Local Kubernetes demonstration additionally needs Kind and kubectl; chart checks need Helm 3. Installation references and missing-tool checks: `make doctor`.\n\n```sh\nmake doctor\nmake init\nmake up\nmake smoke\n```\n\nThis starts the Go API and PostgreSQL with loopback ports and resource limits. Compose intentionally has Kubernetes access disabled. The private ignored `.env` contains random development tokens; never share or commit it. Default telemetry is empty until a trusted controller observes a registered cluster.\n\nFor the console:\n\n```sh\ncd web\nnpm ci\nnpm run build\nnpm start\n```\n\nOpen http:\u002F\u002F127.0.0.1:3000 and enter the private TRS_VIEWER_TOKEN from your local `.env`. Its backend defaults to API 8080. The console stores the token only in component memory. It does not show invented infrastructure data.\n\n## Local recovery demonstration\n\nFollow docs\u002Flocal-lab.md to create the named disposable Kind cluster, apply the CRD\u002Fsample Deployment, start PostgreSQL, and run the host Go manager with TRS_KUBERNETES=true. Once the catalog workload is actually healthy, in another terminal:\n\n```sh\nTRS_DEMO_EXECUTE=yes .\u002Fscripts\u002Fdemo.sh\n```\n\nThis explicit test-only command captures a healthy runtime image digest, introduces a failed rollout, verifies a denied viewer approval, approves recovery, and checks the resulting rollout and persistent audit timeline. It refuses other kubecontexts. See docs\u002Fscenarios.md for abort, verification, limitations and reset instructions. Live Kind execution has not been demonstrated in the provided environment; the actual control-plane integration tests are separately recorded.\n\n## Testing\n\n```sh\nmake build\nmake test\nmake race\nmake lint\nmake helm\n# These require a dedicated disposable PostgreSQL database:\nTEST_DATABASE_URL='your-isolated-database-url' make integration\n# Starts actual kube-apiserver\u002Fetcd test processes, with no kubelets:\nmake envtest\nTEST_DATABASE_URL='your-isolated-database-url' make envtest\n# Requires built binaries; optional built console integration:\nTEST_DATABASE_URL='your-isolated-database-url' TRS_TEST_CONSOLE=1 python3 tests\u002Fhttp_smoke.py\n```\n\nAbsent PostgreSQL or envtest assets cause explicit integration skips in ordinary `make test`; that is not a successful integration run. `make integration` refuses missing database configuration. Console checks: `npm test`, `npm run typecheck`, `npm run build` inside web\u002F. Prometheus rule tests and additional evidence are documented in observability\u002FREADME.md and docs\u002Fverification.md.\n\n## Integration status\n\n| Technology | Current role\u002Fstatus |\n|---|---|\n| Git \u002F GitHub | Local history, community assets and push\u002FPR Actions workflow; no remote publication or hosted run |\n| Kubernetes | Real CRD\u002Fcontroller, scoped authorization and actual API-server integration tests |\n| PostgreSQL | Real persistence, concurrent transaction tests and backup\u002Frestore check |\n| Docker \u002F Helm | Runtime packaging and local configuration; Helm lint\u002Frender passed; Docker runtime unverified |\n| Jenkins | Validation\u002Fscanning\u002Fbuild\u002FSBOM pipeline supplied; execution and publication unverified |\n| Prometheus \u002F Grafana | Real metric endpoint, optional provisioning, validated alert rules; container\u002FUI integration unverified |\n| Terraform \u002F Ansible \u002F Argo CD \u002F ELK | Planned functional milestones, not represented by empty integration scaffolds |\n| NATS \u002F OpenTelemetry \u002F OIDC | Planned durable events, tracing and production identity; absent from current runtime |\n\nSee docs\u002Fintegrations.md for all 12 requested DevOps technologies and their intended testable roles.\n\n## Security and limitations\n\nTest environments only; default dry-run; deny-by-default local roles. Protected namespace, opt-in, freshness, image identity, ownership, concurrency and approval checks precede dispatch. API clients cannot inject health or call execution\u002Fverification endpoints. Cancellation\u002Femergency stop cannot retract an in-flight Kubernetes HTTP request. Known GitOps metadata is rejected; operators must assure exclusive ownership.\n\nLocal tokens are not production identity. OIDC\u002FmTLS, tenant isolation, production TLS, image signature verification, normalized scalable storage, retention\u002Farchival and external tamper-resistant audit are incomplete. The host development process inherits kubeconfig rights. Keep it private and use a disposable context. Read SECURITY.md and docs\u002Fthreat-model.md before running.\n\nThe PostgreSQL JSON aggregate deliberately serializes writes and grows with retained audit; this is not a large-scale database design. The prototype has no outbound agent, two-cluster failover, cloud modules, actual billing, application request SLO evaluation, ELK ingestion or OTel traces. Envtest supplies rollout status explicitly: no pod scheduling, application recovery or RTO is implied. See implementation-status.json and docs\u002Fverification.md for implemented, partial, planned and blocked deliverables.\n\n## Development and contribution\n\nROADMAP.md prioritizes a live one-cluster demonstration before breadth. CONTRIBUTING.md describes checks and focused contribution opportunities. Changes to execution authority need tests and threat-model review. Issues, support and private security-reporting instructions are in .github\u002F, SUPPORT.md and SECURITY.md. No fabricated maintainers, customers or production deployments are listed.\n\nOriginal source is Apache-2.0; external components retain their licenses. NOTICE and docs\u002Frelease.md record remaining dependency\u002Fimage attribution and release gates. Nothing is published automatically. Local shutdown: `make down`; named Kind teardown: `make kind-down`. Database volumes are preserved by default.\n","TargetReconciliationService 是一个面向 Kubernetes 的可靠性控制平面，用于实现策略驱动的资源状态调和、自动化工作负载恢复、故障修复及可审计的基础设施运维。其核心基于 CRD（ReliabilityTarget）与 controller-runtime 构建，支持生成感知的状态条件、原子化镜像回滚、带审批的干运行执行、GitOps 边界隔离、事务性 PostgreSQL 审计日志，以及集成 Prometheus\u002FGrafana 的可观测性闭环。适用于平台工程团队在云原生环境中构建高可靠、可追溯、合规可控的运维控制面，尤其适合需严格变更审批、故障归因与操作留痕的中大型 Kubernetes 集群治理场景。",2,"2026-11-24 04:50:02","CREATED_QUERY"]