Implement initial scan logic and council formation for WHOOSH project kickoffs

- Replace incremental sync with full scan for new repositories
- Add initial_scan status to bypass Since parameter filtering
- Implement council formation detection for Design Brief issues
- Add version display to WHOOSH UI header for debugging
- Fix Docker token authentication with trailing newline removal
- Add comprehensive council orchestration with Docker Swarm integration
- Include BACKBEAT prototype integration for distributed timing
- Support council-specific agent roles and deployment strategies
- Transition repositories to active status after content discovery

Key architectural improvements:
- Full scan approach for new project detection vs incremental sync
- Council formation triggered by chorus-entrypoint labeled Design Briefs
- Proper token handling and authentication for Gitea API calls
- Support for both initial discovery and ongoing task monitoring

This enables autonomous project kickoff workflows where Design Brief issues
automatically trigger formation of specialized agent councils for new projects.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code
2025-09-12 09:49:36 +10:00
parent b5c0deb6bc
commit 56ea52b743
74 changed files with 17778 additions and 236 deletions

View File

@@ -6,22 +6,29 @@ RUN apk add --no-cache git ca-certificates tzdata
# Set working directory
WORKDIR /app
# Copy go mod files and vendor directory first for better caching
COPY go.mod go.sum ./
COPY vendor/ vendor/
# Copy BACKBEAT dependency first
COPY BACKBEAT-prototype ./BACKBEAT-prototype/
# Use vendor mode instead of downloading dependencies
# RUN go mod download && go mod verify
# Copy go mod files first for better caching
COPY go.mod go.sum ./
# Download and verify dependencies
RUN go mod download && go mod verify
# Copy source code
COPY . .
# Create modified group file with docker group for container access
# Use GID 998 to match the host system's docker group
RUN cp /etc/group /tmp/group && \
echo "docker:x:998:65534" >> /tmp/group
# Build with optimizations and version info
ARG VERSION=v0.1.0-mvp
ARG COMMIT_HASH
ARG BUILD_DATE
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
-mod=vendor \
-mod=mod \
-ldflags="-w -s -X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH} -X main.buildDate=${BUILD_DATE}" \
-a -installsuffix cgo \
-o whoosh ./cmd/whoosh
@@ -33,9 +40,9 @@ FROM scratch
COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# Copy passwd and group for non-root user
# Copy passwd and modified group file for non-root user with docker access
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY --from=builder /tmp/group /etc/group
# Create app directory structure
WORKDIR /app
@@ -44,8 +51,9 @@ WORKDIR /app
COPY --from=builder --chown=65534:65534 /app/whoosh /app/whoosh
COPY --from=builder --chown=65534:65534 /app/migrations /app/migrations
# Use nobody user (UID 65534)
USER 65534:65534
# Use nobody user (UID 65534) with docker group access (GID 998)
# Docker group was added to /etc/group in builder stage
USER 65534:998
# Expose port
EXPOSE 8080