Add two-clone collision test proving beads multi-agent workflow failure
- Creates TestTwoCloneCollision integration test - Sets up 2 independent clones with git hooks and daemons - Both file issues with same ID (test-1) - Demonstrates databases don't converge after collision resolution - Clone A: test-1='Issue from clone A', test-2='Issue from clone B' - Clone B: test-1='Issue from clone B', test-2='Issue from clone A' - Git status shows dirty state in both clones - Test proves beads fails at basic multi-agent workflow Also adds --json flag to create, ready, and list commands for better test integration. Amp-Thread-ID: https://ampcode.com/threads/T-8fa0ab6c-2226-4f9b-8e11-14e1156537fc Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -63,6 +63,7 @@ var createCmd = &cobra.Command{
|
||||
externalRef, _ := cmd.Flags().GetString("external-ref")
|
||||
deps, _ := cmd.Flags().GetStringSlice("deps")
|
||||
forceCreate, _ := cmd.Flags().GetBool("force")
|
||||
jsonOutput, _ := cmd.Flags().GetBool("json")
|
||||
|
||||
// Validate explicit ID format if provided (prefix-number)
|
||||
if explicitID != "" {
|
||||
@@ -245,5 +246,6 @@ func init() {
|
||||
createCmd.Flags().String("external-ref", "", "External reference (e.g., 'gh-9', 'jira-ABC')")
|
||||
createCmd.Flags().StringSlice("deps", []string{}, "Dependencies in format 'type:id' or 'id' (e.g., 'discovered-from:bd-20,blocks:bd-15' or 'bd-20')")
|
||||
createCmd.Flags().Bool("force", false, "Force creation even if prefix doesn't match database prefix")
|
||||
createCmd.Flags().Bool("json", false, "Output JSON format")
|
||||
rootCmd.AddCommand(createCmd)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user